CentOS下安装Tomcat并配置环境变量(改默认端口8(2)

[hadoop@HadoopMaster app]$ cd tomcat-7.0.73/
[hadoop@HadoopMaster tomcat-7.0.73]$ ll
total 116
drwxr-xr-x. 2 hadoop hadoop 4096 Feb 25 19:18 bin
drwxr-xr-x. 2 hadoop hadoop 4096 Nov 8 05:30 conf
drwxr-xr-x. 2 hadoop hadoop 4096 Feb 25 19:18 lib
-rw-r--r--. 1 hadoop hadoop 56846 Nov 8 05:30 LICENSE
drwxr-xr-x. 2 hadoop hadoop 4096 Nov 8 05:27 logs
-rw-r--r--. 1 hadoop hadoop 1239 Nov 8 05:30 NOTICE
-rw-r--r--. 1 hadoop hadoop 8965 Nov 8 05:30 RELEASE-NOTES
-rw-r--r--. 1 hadoop hadoop 16195 Nov 8 05:30 RUNNING.txt
drwxr-xr-x. 2 hadoop hadoop 4096 Feb 25 19:18 temp
drwxr-xr-x. 7 hadoop hadoop 4096 Nov 8 05:29 webapps
drwxr-xr-x. 2 hadoop hadoop 4096 Nov 8 05:27 work
[hadoop@HadoopMaster tomcat-7.0.73]$

  第七步:配置tomcat的环境变量和内存设置

在这里,虽然是在CentOS即,Linux系统下,其实跟,windows下的tomcat环境变量,配置大同小异。

  Tomcat *的安装和运行(绿色版和安装版都适用) Tomcat的配置文件详解

CentOS下安装Tomcat并配置环境变量(改默认端口8

[hadoop@HadoopMaster tomcat-7.0.73]$ ll
total 116
drwxr-xr-x. 2 hadoop hadoop 4096 Feb 25 19:18 bin
drwxr-xr-x. 2 hadoop hadoop 4096 Nov 8 05:30 conf
drwxr-xr-x. 2 hadoop hadoop 4096 Feb 25 19:18 lib
-rw-r--r--. 1 hadoop hadoop 56846 Nov 8 05:30 LICENSE
drwxr-xr-x. 2 hadoop hadoop 4096 Nov 8 05:27 logs
-rw-r--r--. 1 hadoop hadoop 1239 Nov 8 05:30 NOTICE
-rw-r--r--. 1 hadoop hadoop 8965 Nov 8 05:30 RELEASE-NOTES
-rw-r--r--. 1 hadoop hadoop 16195 Nov 8 05:30 RUNNING.txt
drwxr-xr-x. 2 hadoop hadoop 4096 Feb 25 19:18 temp
drwxr-xr-x. 7 hadoop hadoop 4096 Nov 8 05:29 webapps
drwxr-xr-x. 2 hadoop hadoop 4096 Nov 8 05:27 work
[hadoop@HadoopMaster tomcat-7.0.73]$ cd bin
[hadoop@HadoopMaster bin]$ ll
total 792
-rw-r--r--. 1 hadoop hadoop 27100 Nov 8 05:29 bootstrap.jar
-rw-r--r--. 1 hadoop hadoop 13981 Nov 8 05:29 catalina.bat
-rwxr-xr-x. 1 hadoop hadoop 21646 Nov 8 05:29 catalina.sh
-rw-r--r--. 1 hadoop hadoop 1647 Nov 8 05:30 catalina-tasks.xml
-rw-r--r--. 1 hadoop hadoop 24283 Nov 8 05:29 commons-daemon.jar
-rw-r--r--. 1 hadoop hadoop 204944 Nov 8 05:29 commons-daemon-native.tar.gz
-rw-r--r--. 1 hadoop hadoop 2040 Nov 8 05:29 configtest.bat
-rwxr-xr-x. 1 hadoop hadoop 1922 Nov 8 05:29 configtest.sh
-rwxr-xr-x. 1 hadoop hadoop 7888 Nov 8 05:29 daemon.sh
-rw-r--r--. 1 hadoop hadoop 2091 Nov 8 05:29 digest.bat
-rwxr-xr-x. 1 hadoop hadoop 1965 Nov 8 05:29 digest.sh
-rw-r--r--. 1 hadoop hadoop 3430 Nov 8 05:29 setclasspath.bat
-rwxr-xr-x. 1 hadoop hadoop 3547 Nov 8 05:29 setclasspath.sh
-rw-r--r--. 1 hadoop hadoop 2020 Nov 8 05:29 shutdown.bat
-rwxr-xr-x. 1 hadoop hadoop 1902 Nov 8 05:29 shutdown.sh
-rw-r--r--. 1 hadoop hadoop 2022 Nov 8 05:29 startup.bat
-rwxr-xr-x. 1 hadoop hadoop 1904 Nov 8 05:29 startup.sh

-rw-r--r--. 1 hadoop hadoop 38202 Nov 8 05:29 tomcat-juli.jar
-rw-r--r--. 1 hadoop hadoop 391853 Nov 8 05:29 tomcat-native.tar.gz
-rw-r--r--. 1 hadoop hadoop 4021 Nov 8 05:29 tool-wrapper.bat
-rwxr-xr-x. 1 hadoop hadoop 5024 Nov 8 05:29 tool-wrapper.sh
-rw-r--r--. 1 hadoop hadoop 2026 Nov 8 05:29 version.bat
-rwxr-xr-x. 1 hadoop hadoop 1908 Nov 8 05:29 version.sh
[hadoop@HadoopMaster bin]$

  

CentOS下安装Tomcat并配置环境变量(改默认端口8

CentOS下安装Tomcat并配置环境变量(改默认端口8

Java_OPTS="-Xms512m -Xmx1024m -Xss1024K -XX:PermSize=512m -XX:MaxPermSize=1024m"
export TOMCAT_HOME=/home/hadoop/app/tomcat-7.0.73
export CATALINA_HOME=/home/hadoop/app/tomcat-7.0.73
export JRE_HOME=/home/hadoop/app/jdk1.7.0_79/jre
export JAVA_HOME=/home/hadoop/app/jdk1.7.0_79

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/9279c516173e1da469bd5fde6e087873.html