java - linux下启动tomcat

访问量: 64

1. 要安装好jdk 

2. 设置好 JAVA_HOME变量

3. 下载tomcat 

4. 解压缩,可以看到目录:

siwei@siwei-linux:/workspace/coding_tools/tomcat8$ ls bin conf lib LICENSE logs NOTICE RELEASE-NOTES RUNNING.txt temp webapps work

5. 为bin 目录下的 catalina.sh 和 startup.sh 加上执行权限:

$ chmod +x bin/catalina.sh
$ chmod +x bin/startup.sh

6. 输入 $ ./bin/startup.sh 即可。

siwei@siwei-linux:/workspace/coding_tools/tomcat8/bin$ ./startup.sh 
Using CATALINA_BASE:   /workspace/coding_tools/tomcat8
Using CATALINA_HOME:   /workspace/coding_tools/tomcat8
Using CATALINA_TMPDIR: /workspace/coding_tools/tomcat8/temp
Using JRE_HOME:        /workspace/coding_tools/jdk1.8.0_101
Using CLASSPATH:       /workspace/coding_tools/tomcat8/bin/bootstrap.jar:/workspace/coding_tools/tomcat8/bin/tomcat-juli.jar
Tomcat started.

7. 就可以看到 localhost:8080 已经跑起了tomcat了。

Screenshot From 2017 06 29 14 20 42 Tomcat Run

订阅/RSS Feed

Subscribe

分类/category