liunx 部署 spring boot

2018/07/09 11:23
阅读数 85

 

 

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]#

 

展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部