在阿里云服务器中设置安全组安全
将swoole_http_server("127.0.0.1",9501);中的127.0.0.1换成localhost服务器
$http = new swoole_http_server("localhost", 9501);