tomcat linux server deployment

1. The packet generation war
Here Insert Picture Description
Here Insert Picture Description

Here Insert Picture Description
Here Insert Picture Description

2. Locate the war generated by the ssh package uploaded to the server
3. Place the bag on the war in tomcat webapp directory
4. Start tomcat

bin directory

./startup.sh 
# 查看tomcat进程id
ps -ef | grep tomcat

# 杀死tomcat进程(初始为关闭),xxx位tomcatid,-9为强制杀死,sudo为使用管理员权限
sudo kill -9 XXX

# 重启tomcat,使用sudo管理员权限重启tomcat是因为,tomcat设置http监听80端口,80端口需要管理员去那先才能开启

#查看80端口

netstat -apn|grep 80

# 查看tomcat日志,tail为查看命令,-f为滚屏效果
tail -f   logs/catalina.out

5. Remote Access (plus war package name after 8080)
Here Insert Picture Description

Published 14 original articles · won praise 1 · views 2244

Guess you like

Origin blog.csdn.net/weixin_42458562/article/details/104871451