杀死进程并重启Openresty

#!/bin/bash
ps -ef | grep nginx | gawk '{print$2}' | while read line 
do 
   kill -s 9 $line 
done
nginx -p /home/oupeng/github/Openresty/openresty-test/

猜你喜欢

转载自blog.csdn.net/smilesundream/article/details/80364975