标签:
jdk:配置: http://www.cnblogs.com/liunanjava/p/4296540.html
地址: http://tomcat.apache.org/download-80.cgi
tar -zxvf apache-tomcat-8.0.18.tar.gz
sudo mv ~/Downloads/apache-tomcat-8.0.18/ /usr/local/develoment/ ln0491@ln0491-virtual-machine:/$ ll /usr/local/develoment/ 总用量 157148 drwxr-xr-x 4 root root 4096 2月 20 21:21 ./ drwxr-xr-x 12 root root 4096 2月 20 16:41 ../ drwxrwxr-x 9 ln0491 ln0491 4096 2月 20 21:19 apache-tomcat-8.0.18/ drwxr-xr-x 8 uucp 143 4096 12月 18 12:53 jdk1.8.0_31/ -rw-r--r-- 1 root root 160901914 2月 20 15:46 jdk-8u31-linux-x64.tar.gz ln0491@ln0491-virtual-machine:/$
cd /usr/local/develoment/apache-tomcat-8.0.18/bin/ ./startup.sh //启动服务
在IE中输入:http://localhost:8080/
./shutdown.sh
usr/bin目录增加软件连接
就可以在任何地方输入starup.sh启动,shutdown.sh来关闭
vi /home/ln0491/.bashrc //在path中增加路径
在path路径中增加tomcat的bin目录:/usr/local/develoment/apache-tomcat-8.0.18/bin/
export JAVA_HOME=/usr/local/develoment/jdk1.8.0_31/ export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar export PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:/usr/local/eclipse/:/usr/local/develoment/apache-tomcat-8.0.18/bin/
source .bashrc
现在在任何位置都可以值输入startup.sh 来启动tomcat,同时也也可以输入shutdown.sh 来关闭tomcat
标签:
原文地址:http://www.cnblogs.com/bokejiayuan/p/4350865.html