Liunx16.04安装Apache-tomcat

来源:互联网 发布:中讯软件集团 编辑:程序博客网 时间:2024/06/08 16:16

1.下载地址:
http://www-eu.apache.org/dist/tomcat/tomcat-8/v8.5.16/bin/apache-tomcat-8.5.16.tar.gz

2、解压文件:tar xzvf apache-tomcat-8.5.16.tar.gz
3、进入解压文件:
cd apache-tomcat-8.5.16
cd bin

4、./startup.sh启动tomcat;
5、注意:tomcat启动首先找java_home环境变量中的jre.提前安装JDK.
安装过程:http://blog.csdn.net/qq_32261399/article/details/74504037

6、如果指定tomcat安装的配置路径,需要在系统环境变量中设置:
CATALINA_HOME=apache-tomcat-8.5.16(最好不要指定)
7、tomcat默认从此文件中启动加载配置文件.
启动成功后打开浏览器访问:http://localhost:8080,显示Apache页面.

8、如果安装过程中出现端口8080冲突,可以更改端口设置,修改/apache-tomacat- 8.5.16/conf/server.conf中大约60行左右的端口8080/改为其他如:8081等…