linux shell 写swoole重启脚本 代码如下<pre>#!/bin/shkill `lsof -t -i:9501`sleep 2php /data/web/mircoweb/wwwroot/Public/swoole.phpsleep 1netstat -ntlp</pre>
如果不支持lsof命令 那就yum install lsof安装下吧