- 博客(1)
- 收藏
- 关注
原创 JAVA远程调用服务器的shell脚本
1.利用Linux Shell写了两个脚本,一个是重启进程,一个是关闭进程代码如下:#!/bin/bashpid=$(ps -ef | grep "test" | grep -v grep | awk '{print $2}')#echo "$pid"if [ -z "$pid" ];then echo "没有此进程" exit 1fifor id in $piddo kill -9 $id echo "$id"“已经被杀死”donenohup jav
2020-08-06 09:52:19 1016
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人