This is partially noted in some earlier posts, but the full detail is missing…
sudo /sbin/iptables -I INPUT 1 -p tcp –dport 8080 -j ACCEPT
sudo /sbin/iptables -I INPUT 1 -p tcp –dport 80 -j ACCEPT
sudo iptables -t nat -A PREROUTING -p tcp -m tcp –dport 80 -j REDIRECT –to-ports 8080
sudo service iptables save
sudo service iptables restart
CentOS6 with OpenJDK 6 previously installed…Jenkins failed to build a project because it couldn’t find javac. Today’s lesson, OpenJDK is just the JRE package. You need to install java-1.6.0-openjdk-devel to get a real JDK.
the rub — be sure to run
sudo yum install java-1.6.0-openjdk-devel
…hmmm…had updates this post will some config files and must not have hit Update…will fix tomorrow when I can grab the files again…
and here’s a sample from my /etc/httpd/conf/vhosts/a-vhost-config.conf:
ProxyRequests Off AddDefaultCharset Off Order deny,allow Allow from all ProxyPass / ajp://localhost:8019/ ProxyPassReverse / ajp://localhost:8019/
# Define 1 real worker using ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8019
(because the mac changed)
…and the mac address in the eth0 config file at /etc/sysconfig/network-scripts/ifconfig-eth0 needs to match the mac address in the rules file at /etc/udev/rules.d/70-persistent-net.rules…
The gist is…
You can edit the /etc/udev/rules.d/70-persistent-net.rules or you can delete the rules and Linux will configure it on the next boot.
Or bypass the whole issue and use the same mac address as the original vm…which shouldn’t be a problem behind different NAT firewalls(?)
During an install from the minimal CentOS iso, I forgot to set eth0 to connect automatically. Since the default setting on CentOS is for eth0 to be disabled, this resulted in having to remember how to use vi to edit /etc/sysconfig/network-scripts/ifcfg-eth0 to update the configuration.
Update the following:
…and restart the network. NM_CONTROLLED turned out to be a big deal, because until I updated that from yes to no, I wasn’t getting an IPv4 address. And IPv6 wasn’t getting any name resolution. Don’t know if that was due to my host (this was a VirtualBox instance that I’m setting up as a demo for a friend, and I don’t know what the IPv6-ability of my old sitting around on the couch laptop is) or an issue with my 1st gen Time Capsule with integrated olde-school Air Port…