swoole可以用80端口吗

swoole可以用80端口吗

swoole可以用80端口吗?

Swoole 绑定域名 80 端口 (nginx 监听转发)

启动 Swoole 的 http server,可以使用 IP + 端口 进行访问

swoole可以用80端口吗

创建 Nginx 虚拟域名

vim swotp.liuguofeng.com.conf
server     {         listen 80;         server_name swotp.liuguofeng.com ;         index index.html index.htm index.php default.html default.htm default.php;         root  /home/wwwroot/swoole_thinkphp.liuguofeng.com;         location / {                 if (!-e $request_filename) {                 proxy_pass http://127.0.0.1:8811;                 }         }     }

swoole可以用80端口吗

重启 Nginx,DNS 指向 IP 

swoole可以用80端口吗

以上就是

© 版权声明
THE END
喜欢就支持一下吧
点赞10 分享