首页 > 其他 > 详细

安装tomcat8

时间:2015-06-12 15:08:28      阅读:113      评论:0      收藏:0      [点我收藏+]

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

安装tomcat8

原文:http://hj192837.blog.51cto.com/655995/1661189

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!