Tomcat安装配置
It has been 399 days since the last update, the content of the article may be outdated.
0.下载解压安装包
bash
1 | wget https://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-9/v9.0.31/bin/apache-tomcat-9.0.31.tar.gz |
1.将解压好的文件夹拷贝到指定位置并启动
bash
1 | mv apache-tomcat-9.0.31 /usr/local/tomcat |
2.检查是否安装成功。
或者在终端中输入
bash
1 | $~ curl 127.0.0.1:8080 |
3.编写快速启动脚本
创建
bash
1 | cd /etc/rc.d/init.d/ |
编辑文件
bash
1 | vim tomcat |
Tomcat快捷启动命令
bash
1 | service tomcat start |
4.开机自启动
bash
1 | chkconfig --add tomcat |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.