How to Install Tomcat-Java on Plain linux server

Site Admin
Posts: 67
Joined: Fri May 31, 2013 1:04 pm

How to Install Tomcat-Java on Plain linux server

Postby hr-ethadmin » Wed Oct 02, 2013 11:31 am

groupadd -g 220 tomcat
useradd -u 220 -g tomcat -c "Tomcat" -r -d /usr/local/tomcat -s "/sbin/nologin" tomcat
cd /usr/local/
wget ... .28.tar.gz
cd /usr/local/jakarta-tomcat-5.0.28
tar xzvf jakarta-tomcat-5.0.28
chown -R tomcat:tomcat /usr/local/jakarta-tomcat-5.0.28
ln -s /usr/local/jakarta-tomcat-xxx /usr/local/tomcat


First u need to install jdk (Depending on version which you want) and you will get it here:
Then download apache tomcat and just untar it.
Download link:
Then go to bin folder and start tomcat.
That time you need to set JAVA_HOME PATH which you can set as follows:
When u ll install jdk check java path using which java command
Then if u get java path as : /usr/bin/java
Then set JAVA_HOME Path using below command:
Export JAVA_HOME=/usr
Then start tomcat as follows:
./bin/ start

Return to “Hostripples dedicated Servers (Linux/Windows)”

Who is online

Users browsing this forum: No registered users and 1 guest