How to install Tomcat 6 on RHEL 6 or CentOS 6

Here are some steps to install Tomcat 6 on Red Hat 6 (or CentOS 6).


First we are going to prepare the repository:

yum install yum-priorities
rpm -Uvh
rpm -Uvh
rpm -Uvh

Next we will install Java and Tomcat 6:

yum -y install java
yum -y install tomcat6 tomcat6-webapps tomcat6-admin-webapps

Finally we can launch Tomcat 6:

service tomcat6 start

To connect to Tomcat, just browse to port 8080 on the server, for example:

Here are a couple of diagnostic commands to test that Tomcat is running:

# service tomcat6 status
tomcat6 (pid 17318) is running... [ OK ]
# netstat -nlp|grep 800
tcp 0 0* LISTEN xxxxx/java
tcp 0 0* LISTEN xxxxx/java
# netstat -nlp|grep 8080
tcp 0 0* LISTEN xxxxx/java

File Structure

The Red Hat file structure is different than the default file structure Tomcat 6 has when installing from source. Here is the file structure that is used when installing with this method:

/etc/tomcat6 (this is where the main tomcat config files reside)
/var/lib/tomcat6 (this is where you will add and/or change most of your files)

Here is an article that explains how to add support for JConsole debugging and/or monitoring to Tomcat:

The domain names registered with you, are they automatically renewed?

Yes, as long as your account is in good standing, we make sure that we renew your domain names. Here is how it works:

  • 30 to 90 days before expiration, we bill your account for the renewal fee
  • once your account is billed, we renew your domain
  • you pay your bill as usual

To access your domain management tools, please visit the NewPush Customer Portal Tools.

Install Packages on OpenBSD 4.x and OpenBSD 5.x

To install binary packages on OpenBSD, the package manager needs to have the correct download URL.  This URL changes based on OpenBSD version and architecture.  Here is how to set it independently:

export PKG_PATH=$(uname -r)/packages/$(machine -a)/

Once that is done, the pkg_add command will work. In fact all pkg_* commands will work.

OpenVPN connects, but no ping

OpenVPN connection issue on Windows Vista and Windows 7



When connecting to an OpenVPN tunnel on Windows Vista or Windows 7, the OpenVPN GUI shows the connection as successful, but the protected network can not be reached.


Start OpenVPN as administrator. This is necessary even of the account launching OpenVPN is an administrator level account. If the OpenVPN GUI is already running, quit the application. Before launching OpenVPN GUI, right click, and select “Run As Administrator”.

There is a way to make this permanent in the Windows application properties:

Right click on the OpenVPN GUI icon, then click on Properties, and on the Compatibility tab. Tick the “Run this program as an administrator box.”