码迷,mamicode.com
首页 > 其他好文 > 详细

安装tomcat8

时间:2015-06-12 15:10:01      阅读:116      评论:0      收藏:0      [点我收藏+]

标签: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

安装tomcat8

标签:tomcat

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!