腾讯云配置tomcat

在服务器上部署tomcat


1.安装tomcat


   去官网下载好,解压安装,网上有很多教程,这里就不多写了


2.tomcat默认是启用8080端口  用winscp工具 修改端口为80 或者用命令 

               netstat -tunlp 查看启用的端口号

               cd tomcat-tomcat-9.0.6/conf

        然后 vim  server.xml   

                 按键盘 i 修改  port 为80

               然后按esc 退出::wq

 



3.重新启动tomcat

进到 usr/local/tomcat/bin 目录下,运行脚本./startup.sh 即可,要停止就是./shutdown.sh

浏览器输入:http://外网IP:80

注意;如果外网IP无法访问tomcat 需要在控制台配置一下安全组


参考链接:https://blog.csdn.net/TheBlackbeard/article/details/52549763

                  https://blog.csdn.net/github_39533414/article/details/79675678






猜你喜欢

转载自blog.csdn.net/github_39533414/article/details/79676788