employment-subject-serve-1.0-SNAPSHOT.jar 服务端包同上(端口是10003)
查看jar是否存在
[root@node04 app]# cd /root/employment-subject-serve-1.0-SNAPSHOT/app
[root@node04 app]# ls
employment-subject-serve-1.0-SNAPSHOT.jar employment-subject-serve-1.0-SNAPSHOT-release.zip maven-archiver
[root@node04 app]#
netstat -tunlp |grep 10003 查看进程是否存在
employment-subject-serve-1.0-SNAPSHOT.jar employment-subject-serve-1.0-SNAPSHOT-release.zip maven-archiver
[root@node04 app]# cd ..
[root@node04 employment-subject-serve-1.0-SNAPSHOT]# netstat -tunlp |grep 10003
tcp6 0 0 :::10003 :::* LISTEN 22809/java
存在杀死进程
tcp6 0 0 :::10003 :::* LISTEN 22809/java
[root@node04 employment-subject-serve-1.0-SNAPSHOT]# kill -9 22809
启动项目
[root@node04 employment-subject-serve-1.0-SNAPSHOT]# nohup ./start.sh &
employment-subject-ui-1.0-SNAPSHOT.jar 客户端包同上(端口是10005)
文件授权(chmod 777 start.sh
[root@node04 employment-subject-ui-1.0-SNAPSHOT]# cd ../employment-subject-serve-1.0-SNAPSHOT
[root@node04 employment-subject-serve-1.0-SNAPSHOT]# ls
app docker-compose.yml employment-subject-ui.log image-build.sh image-push.sh nohup.out start.sh
cfg employment-subject-serve.log image-build.bat image-push.bat logs start.bat tmp
[root@node04 employment-subject-serve-1.0-SNAPSHOT]# chm
chmem chmod
[root@node04 employment-subject-serve-1.0-SNAPSHOT]# chmod 777 start.sh
[root@node04 employment-subject-serve-1.0-SNAPSHOT]# ls
app docker-compose.yml employment-subject-ui.log image-build.sh image-push.sh nohup.out start.sh
cfg employment-subject-serve.log image-build.bat image-push.bat logs start.bat tmp
网友评论