摘要: #杀掉8080端口的进程 netstat -nlp |grep :8080 |grep -v grep|awk '{print $7}' |awk -F '/' '{print $1}' |xargs kill -9 #查询包含tomcat的进程号 ps -ef|grep tomcat|grep - 阅读全文
posted @ 2018-03-01 17:56 blange 阅读(639) 评论(0) 推荐(0)
摘要: 我们来用swoole这个php扩展实现一个简单的客户端和服务器,并且让它们进行简单的交流 首先,我们先来实现客户端(命名为:client.php): <?php $client = new swoole_client(SWOOLE_SOCK_TCP); if (!$client->connect(' 阅读全文
posted @ 2018-03-01 15:14 blange 阅读(181) 评论(0) 推荐(0)