Centos7-Nginx无法登入,iptables处于失效状态的解决方法之一

简介:

Centos7-Nginx无法登入配置正确,考虑是80端口未开放

查看iptables状态

systemctl status iptables

开放443端口(HTTPS)

iptables -A INPUT -p tcp --dport 443 -j ACCEPT

保存上述规则

service iptables save

开启服务

systemctl restart iptables.service
相关文章
|
前端开发 Java 应用服务中间件
Nginx访问异常的解决方法
Nginx访问异常的解决方法
|
Shell Linux
Centos7:“Entering emergency mode. Exit the shell to continue”错误解决方法
想过很多朋友有遇到这种情况,就是正在远程使用centos7系统时,一旦让远程虚拟机或服务器断电或强制关机,那么再次重启时就会出现“Entering emergency mode. Exit the shell to continue.”的错误。
14348 1
Centos7:“Entering emergency mode. Exit the shell to continue”错误解决方法
关于 CentOS8出现“Error: Failed to download metadata for repo ‘AppStream‘: xxxx” 的解决方法
关于 CentOS8出现“Error: Failed to download metadata for repo ‘AppStream‘: xxxx” 的解决方法
11488 0
关于 CentOS8出现“Error: Failed to download metadata for repo ‘AppStream‘: xxxx” 的解决方法
|
应用服务中间件 nginx
nginx405异常原因与解决方法,最详细解释
nginx405异常原因与解决方法,最详细解释
1524 1
|
Linux 开发工具
centos7 中文乱码解决方法
centos7 中文乱码解决方法
1286 1
|
Linux 开发工具 数据安全/隐私保护
CentOS7报错:“xxx is not in the sudoers file. This incident will be reported“解决方法
CentOS7报错:“xxx is not in the sudoers file. This incident will be reported“解决方法
2947 1
|
缓存 Linux 开发工具
CentOS7 安装KDE报错的解决方法:Loaded plugins:fastestmirror,langpacks There is no installed group.
CentOS7 安装KDE报错的解决方法:Loaded plugins:fastestmirror,langpacks There is no installed group.
1435 0
|
前端开发 应用服务中间件 Apache
【nginx】405 not allowed问题解决方法
【nginx】405 not allowed问题解决方法
2182 0
|
Linux 测试技术 Shell
Centos7下安装Dogtail GUI自动化测试工具并打开sniff工具过程中遇到的问题解决方法
Centos7下安装Dogtail GUI自动化测试工具并打开sniff工具过程中遇到的问题解决方法
1203 0
Centos7下安装Dogtail GUI自动化测试工具并打开sniff工具过程中遇到的问题解决方法
|
安全 应用服务中间件 网络安全
用Nginx在win2008服务器部署ssl后xmlhttp异常(msxml6.dll 错误 ‘80072f7d‘ )的解决方法
用Nginx在win2008服务器部署ssl后xmlhttp异常(msxml6.dll 错误 ‘80072f7d‘ )的解决方法
725 1
用Nginx在win2008服务器部署ssl后xmlhttp异常(msxml6.dll 错误 ‘80072f7d‘ )的解决方法