Prerequisite:
Java
Apache
Download tomcat
http://mirror.fibergrid.in/apache/tomcat/tomcat-7/v7.0.70/bin/apache-tomcat-7.0.70.tar.gz
step 1: mkdir -p /usr/apache
step2: cd /usr/apache
wget tomcat.tar
step3: Extract tar file
tar -xvzf apache-tomcate file
[root@rhel6 apache]# ls
apache-tomcat-7.0.68 apache-tomcat-7.0.68.tar.gz
[root@rhel6 apache]# cd apache-tomcat-7.0.68
[root@rhel6 apache-tomcat-7.0.68]# pwd
/usr/apache/apache-tomcat-7.0.68
[root@rhel6 apache-tomcat-7.0.68]#
step4: start tomcat service
[root@rhel6 bin]# pwd
/usr/apache/apache-tomcat-7.0.68/bin
[root@rhel6 bin]# sh startup.sh
Using CATALINA_BASE: /usr/apache/apache-tomcat-7.0.68
Using CATALINA_HOME: /usr/apache/apache-tomcat-7.0.68
Using CATALINA_TMPDIR: /usr/apache/apache-tomcat-7.0.68/temp
Using JRE_HOME: /usr/java/jdk1.7.0_21/bin/java
Using CLASSPATH: /usr/apache/apache-tomcat-7.0.68/bin/bootstrap.jar:/usr/apache/apache-tomcat-7.0.68/bin/tomcat-juli.jar
Tomcat started.
[root@rhel6 bin]#
Following directories will be created:
[root@master apache-tomcat]# ls
bin conf lib LICENSE logs NOTICE RELEASE-NOTES RUNNING.txt temp webapps work
[root@master apache-tomcat]#
make ipaddress:
[root@rhel6 conf]# pwd
/usr/apache/apache-tomcat-7.0.68/conf/server.xml
[root@rhel6 conf]#
Add Ipaddress ipaddress="192.168.0.10"
vim server.xml
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
ipaddress="192.168.0.10"
redirectPort="8443" />
connectionTimeout="20000"
ipaddress="192.168.0.10"
redirectPort="8443" />
Added following line in tomcat_users.xml
<role rolename="manager-gui"/>
<user username="tomcat" password="s3cret" roles="manager-gui"/>
Verify on browser http://ip:8080
No comments:
Post a Comment