云服务器开启swoole连接

1,swoole监听的端口没开

在腾讯云控制台中 配置安全组  添加入站规则   0.0.0.0/0   ---->  tcp:9501

 

2, swoole 127.0.0.1修改成localhost

$http = new swoole_http_server("localhost", 9501);

posted @ 2020-04-07 13:42  程序员小艺  阅读(255)  评论(0编辑  收藏  举报