1. 程式人生 > >liunx 部署 spring boot

liunx 部署 spring boot

txt ren href java包 remote linux 登錄 god warning

技術分享圖片

Xshell for Xmanager Enterprise 4 (Build 0232)
Copyright (c) 2002-2014 NetSarang Computer, Inc. All rights reserved.

Type `help‘ to learn how to use Xshell prompt.
Xshell:\>

Connecting to 192.168.0.51:22...解釋:連接到本地服務
Connection established.
To escape to local shell, press ‘Ctrl+Alt+]‘.

WARNING! The remote SSH server rejected X11 forwarding request.

Last login: Sun Jul 8 22:39:02 2018 from 192.168.1.180 解釋:上次登錄
[root@bogon ~]# ll 解釋:查看本目錄下的文件
total 177792
-rw-r--r-- 1 root root 16415 Dec 25 2017 192.168.0.5120171225.txt
-rw-------. 1 root root 1155 Mar 6 2017 anaconda-ks.cfg
-rw-r--r-- 1 root root 130116403 Oct 11 2017 driftBottleCurrentEntity.json
-rwxr--r-- 1 root root 51914595 Aug 10 2017 hwlm-goddess-0.0.2-SNAPSHOT.jar
[root@bogon ~]# cd /opt/app/hwlm-bootdo 解釋:cd進入指定目錄查看本目錄下
[root@bogon hwlm-bootdo]# ll 解釋:查看本目錄下的文件
total 192
drwxr-xr-x 4 root root 40 Jul 8 22:40 applog
-rw------- 1 root root 135398 Jul 8 23:06 nohup.out
[root@bogon hwlm-bootdo]# ps -ef | grep bootdo 解釋:ps -ef | grep 檢索進程是否存
root 33479 1 2 22:40 ? 00:00:46 java -jar bootdo-1.6.9.jar
root 33674 33617 0 23:07 pts/0 00:00:00 grep --color=auto bootdo
[root@bogon hwlm-bootdo]# kill 33479 解釋:kill 殺掉進程
[root@bogon hwlm-bootdo]# ps -ef | grep bootdo
root 33479 1 2 22:40 ? 00:00:46 java -jar bootdo-1.6.9.jar
root 33679 33617 0 23:07 pts/0 00:00:00 grep --color=auto bootdo
[root@bogon hwlm-bootdo]# kill -9 33479 解釋:kill -9強制 殺掉進程
[root@bogon hwlm-bootdo]# ps -ef | grep bootdo 解釋:ps -ef | grep 檢索進程是否存
root 33682 33617 0 23:07 pts/0 00:00:00 grep --color=auto bootdo
[root@bogon hwlm-bootdo]# nohup java -jar bootdo-1.6.9.jar & 解釋:nohup java -jar 持續啟動java包 用途:LINUX命令用法,不掛斷地運行命令
[1] 33683
[root@bogon hwlm-bootdo]# nohup: ignoring input and appending output to ‘nohup.out’

[root@bogon hwlm-bootdo]#
[root@bogon hwlm-bootdo]#
[root@bogon hwlm-bootdo]# ps -ef | grep bootdo 解釋:ps -ef | grep 檢索進程是否存
root 33683 33617 99 23:08 pts/0 00:00:05 java -jar bootdo-1.6.9.jar
root 33696 33617 0 23:08 pts/0 00:00:00 grep --color=auto bootdo
[root@bogon hwlm-bootdo]#

liunx 部署 spring boot