Apache Tomcat™ is an open source software implementation of the Java Servlet, JavaServer Pages, Java Expression Language and Java WebSocket technologies. The Java Servlet, JavaServer Pages, Java Expression Language and Java WebSocket specifications are developed under the Java Community Process.
Apache Tomcat is developed in an open and participatory environment and released under the Apache License version 2. Apache Tomcat is intended to be a collaboration of the best-of-breed developers from around the world. We invite you to participate in this open development project. To learn more about getting involved, click here.
Apache Tomcat powers numerous large-scale, mission-critical web applications across a diverse range of industries and organizations. Some of these users and their stories are listed on the PoweredBy wiki page.
Apache Tomcat, Tomcat, Apache, the Apache feather, and the Apache Tomcat project logo are trademarks of the Apache Software Foundation.
Download:
Binary core distribution
http://a.mbbsindia.com/tomcat/tomcat-7/v7.0.68/bin/apache-tomcat-7.0.68.tar.gz
[root@rhel6 usr]# mkdir apache_tomcat
[root@rhel6 usr]# cd apache_tomcat/
[root@rhel6 apache_tomcat]# ls
[root@rhel6 apache_tomcat]# wget http://a.mbbsindia.com/tomcat/tomcat-7/v7.0.68/bin/apache-tomcat-7.0.68.tar.gz
--2016-03-14 23:21:23-- http://a.mbbsindia.com/tomcat/tomcat-7/v7.0.68/bin/apache-tomcat-7.0.68.tar.gz
Resolving a.mbbsindia.com... 103.27.233.42
Connecting to a.mbbsindia.com|103.27.233.42|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8900822 (8.5M) [application/x-gzip]
Saving to: “apache-tomcat-7.0.68.tar.gz”
2% [> ] 225,322 81.2K/s
Step2:
[root@rhel6 apache_tomcat]# ls
apache-tomcat-7.0.68.tar.gz
[root@rhel6 apache_tomcat]# tar -xzf apache-tomcat-7.0.68.tar.gz
[root@rhel6 apache_tomcat]# ls
apache-tomcat-7.0.68 apache-tomcat-7.0.68.tar.gz
[root@rhel6 apache_tomcat]#
Apache Tomcat is developed in an open and participatory environment and released under the Apache License version 2. Apache Tomcat is intended to be a collaboration of the best-of-breed developers from around the world. We invite you to participate in this open development project. To learn more about getting involved, click here.
Apache Tomcat powers numerous large-scale, mission-critical web applications across a diverse range of industries and organizations. Some of these users and their stories are listed on the PoweredBy wiki page.
Apache Tomcat, Tomcat, Apache, the Apache feather, and the Apache Tomcat project logo are trademarks of the Apache Software Foundation.
Download:
Binary core distribution
http://a.mbbsindia.com/tomcat/tomcat-7/v7.0.68/bin/apache-tomcat-7.0.68.tar.gz
[root@rhel6 usr]# mkdir apache_tomcat
[root@rhel6 usr]# cd apache_tomcat/
[root@rhel6 apache_tomcat]# ls
[root@rhel6 apache_tomcat]# wget http://a.mbbsindia.com/tomcat/tomcat-7/v7.0.68/bin/apache-tomcat-7.0.68.tar.gz
--2016-03-14 23:21:23-- http://a.mbbsindia.com/tomcat/tomcat-7/v7.0.68/bin/apache-tomcat-7.0.68.tar.gz
Resolving a.mbbsindia.com... 103.27.233.42
Connecting to a.mbbsindia.com|103.27.233.42|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8900822 (8.5M) [application/x-gzip]
Saving to: “apache-tomcat-7.0.68.tar.gz”
2% [> ] 225,322 81.2K/s
Step2:
[root@rhel6 apache_tomcat]# ls
apache-tomcat-7.0.68.tar.gz
[root@rhel6 apache_tomcat]# tar -xzf apache-tomcat-7.0.68.tar.gz
[root@rhel6 apache_tomcat]# ls
apache-tomcat-7.0.68 apache-tomcat-7.0.68.tar.gz
[root@rhel6 apache_tomcat]#
step3:
[root@rhel6 apache_tomcat]# cd apache-tomcat-7.0.68
[root@rhel6 apache-tomcat-7.0.68]# ls
bin conf lib LICENSE logs NOTICE RELEASE-NOTES RUNNING.txt temp webapps work
[root@rhel6 apache-tomcat-7.0.68]# pwd
/usr/apache_tomcat/apache-tomcat-7.0.68
[root@rhel6 apache-tomcat-7.0.68]# cd bin/
[root@rhel6 bin]# pwd
/usr/apache_tomcat/apache-tomcat-7.0.68/bin
[root@rhel6 bin]# ls
bootstrap.jar commons-daemon-native.tar.gz digest.sh startup.bat tool-wrapper.sh
catalina.bat configtest.bat setclasspath.bat startup.sh version.bat
catalina.sh configtest.sh setclasspath.sh tomcat-juli.jar version.sh
catalina-tasks.xml daemon.sh shutdown.bat tomcat-native.tar.gz
commons-daemon.jar digest.bat shutdown.sh tool-wrapper.bat
[root@rhel6 bin]#
Step 4: Catalina path
vim /etc/bashrc
export CATALINA_HOME=/usr/apache_tomcat/apache-tomcat-7.0.68
export PATH=$PATH:${CATALINA_HOME}
export CATALINA_BASE=/usr/apache_tomcat/apache-tomcat-7.0.68
export PATH=$PATH:${CATALINA_BASE}
[root@rhel6 bin]#
Start service
[root@rhel6 apache-tomcat-7.0.68]# cd $CATALINA_HOME
[root@rhel6 apache-tomcat-7.0.68]# cd /usr/apache_tomcat/apache-tomcat-7.0.68/bin/
[root@rhel6 bin]# ls
bootstrap.jar catalina-tasks.xml configtest.bat digest.bat setclasspath.sh startup.bat tomcat-native.tar.gz version.bat
catalina.bat commons-daemon.jar configtest.sh digest.sh shutdown.bat startup.sh tool-wrapper.bat version.sh
catalina.sh commons-daemon-native.tar.gz daemon.sh setclasspath.bat shutdown.sh tomcat-juli.jar tool-wrapper.sh
[root@rhel6 bin]# sh startup.sh
Using CATALINA_BASE: /usr/apache_tomcat/apache-tomcat-7.0.68
Using CATALINA_HOME: /usr/apache_tomcat/apache-tomcat-7.0.68
Using CATALINA_TMPDIR: /usr/apache_tomcat/apache-tomcat-7.0.68/temp
Using JRE_HOME: /usr/java/jdk1.7.0_21
Using CLASSPATH: /usr/apache_tomcat/apache-tomcat-7.0.68/bin/bootstrap.jar:/usr/apache_tomcat/apache-tomcat-7.0.68/bin/tomcat-juli.jar
Tomcat started.
[root@rhel6 bin]#
Port 8080
For Credential
Copy
<role rolename="manager-gui"/>
<user username="tomcat" password="s3cret" roles="manager-gui"/>
Paste on server following
[root@rhel6 conf]# pwd
/usr/apache_tomcat/apache-tomcat-7.0.68/conf
[root@rhel6 conf]#
[root@rhel6 conf]# ls
Catalina catalina.policy catalina.properties context.xml logging.properties server.xml tomcat-users.xml web.xml
[root@rhel6 conf]#
vim tomcat-users.xml
add lines
<!--
NOTE: The sample user and role entries below are wrapped in a comment
and thus are ignored when reading this file. Do not forget to remove
<!.. ..> that surrounds them.
-->
<role rolename="manager-gui"/>
<user username="tomcat" password="tomcat" roles="manager-gui"/>
<!--
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
Give Username and password
save and quit
->
Modify conf/server.xml
<Connector port="8080" protocol="HTTP/1.1"
address="192.168.61.12"
connectionTimeout="20000"
redirectPort="8443" />
<!-- A "Connector" using the shared thread pool-->
save and quit
and restart tomcat service




No comments:
Post a Comment