标签:tomcat
Installing JDK8
rpm -ivh jdk-8u40-linux-x64.rpm
echo ‘export JAVA_HOME=/usr/java/default‘ >> /etc/profile.d/java.sh
echo ‘export PATH=$JAVA_HOME/bin:$PATH‘ >> /etc/profile.d/java.sh
source /etc/profile.d/java.sh
java -version
Installing Apache Tomcat 8
cd /opt
tar zxf /root/apache-tomcat-8.0.23.tar.gz
cd apache-tomcat-8.0.23/bin/
./startup.sh
http://Your-IP-Address:8080
home page:/opt/apache-tomcat-8.0.9/webapps/ROOT/
Setup Tomcat User Accounts
vi /opt/apache-tomcat-8.0.23/conf/tomcat-users.xml
<role rolename="manager-gui"/>
<user username="manager" password="manager" roles="manager-gui"/>
<role rolename="admin-gui"/>
<user username="admin" password="admin" roles="admin-gui"/>
</tomcat-users>
./shutdown.sh
./startup.sh
To get some information about your running Tomcat server and your computer, run
/opt/apache-tomcat-8.0.23/bin/version.sh
开机启动:
vi /etc/rc.local
/opt/apache-tomcat-8.0.23/bin/startup.sh
本文出自 “Ilovecat(个人笔记)” 博客,请务必保留此出处http://hj192837.blog.51cto.com/655995/1661189
标签:tomcat
原文地址:http://hj192837.blog.51cto.com/655995/1661189