nginx+阿里云服务器公网ip不能访问
1.首先排查配置文件是否正确
nginx -t
2.在阿里云控制台,安全组内添加nginx的端口规则
3.检查防火墙
systemctl status firewalld.service
4.查看nginx运行状态
systemctl status nginx
注意:网上排查方法很多,我遇到坑的一点,全部按照做完之后,服务都重启了,还是不能访问,重启了下服务器好了
1.首先排查配置文件是否正确
nginx -t
2.在阿里云控制台,安全组内添加nginx的端口规则
3.检查防火墙
systemctl status firewalld.service
4.查看nginx运行状态
systemctl status nginx
注意:网上排查方法很多,我遇到坑的一点,全部按照做完之后,服务都重启了,还是不能访问,重启了下服务器好了