云服务器开启swoole连接

1,swoole监听的端口没开

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

2, swoole 127.0.0.1修改成localhost

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

猜你喜欢

转载自www.cnblogs.com/flyfly123/p/12652931.html