1、查看进程
netstat -ntlp
2、杀掉进程
kill -9 xxxxx
3、启动项目
nohup java -jar demo.jar --server.port=8080 --spring.profiles.active=test & tail -f nohup.out
nohup java -jar demo.jar --server.port=8080 --spring.profiles.active=pro & tail -f nohup.out
4、查看启动日志动态100行
tail -f -n 100 internal.log
tail -f internal.log