http://localhost/pages/books.html
发布运行时会存在端口占用的情况
查询被占用的端口号,然后杀死进程
D:\Java\SpringBoot\daily_demo02\day63_springboot_ssmp\target>netstat -ano |findstr "80"
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 5108
D:\Java\SpringBoot\daily_demo02\day63_springboot_ssmp\target>taskkill -f -pid "5108"
成功: 已终止 PID 为 5108 的进程。
netstat -ano
netstat -ano | findstr “端口号”
tasklist | findstr “进程PID号”
tasklist -f -fid “进程PID号”
tasklist -f -t -im “进程名称”
// 关闭防火墙
[root@mycentos7 jar]# systemctl stop firewalld
[root@mycentos7 ~]# nohup java -jar day63_springboot_ssmp-0.0.1-SNAPSHOT.jar > server.log 2>&1 &
[1] 3764
[root@mycentos7 ~]# ps -ef | grep "java -jar"
root 3764 1 13 09:13 ? 00:00:14 java -jar day63_springboot_ssmp-0.0.1-SNAPSHOT.jar
root 3981 3933 0 09:15 pts/0 00:00:00 grep --color=auto java -jar
[root@mycentos7 ~]# kill -9 3764
[root@mycentos7 ~]# ps -ef | grep "java -jar"
root 3999 3933 0 09:15 pts/0 00:00:00 grep --color=auto java -jar