CentOS 6.5 + Nginx 1.8.0 + PHP 5.6(with PHP-FPM) 负载均衡源码安装 之 (四)问题汇总
2015-10-29 15:33
701 查看
关于外网无法访问虚拟机centos的问题
此一般由于centos默认防火墙配置,导致外部不允许访问80端口(或其他如9000端口)。解决方法如下:
1.加入80端口的防火墙规则
2.保存规则
3.重启防火墙
此一般由于centos默认防火墙配置,导致外部不允许访问80端口(或其他如9000端口)。解决方法如下:
1.加入80端口的防火墙规则
/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT
2.保存规则
service iptables save
3.重启防火墙
service iptables restart
相关文章推荐
- CentOS 6.5 + Nginx 1.8.0 + PHP 5.6(with PHP-FPM) 负载均衡源码安装 之 (三)Nginx负载均衡配置
- nginx配置详解
- Nginx后端节点健康检查
- Awstats 日志分析 Apache nginx
- CentOS 6.5 + Nginx 1.8.0 + PHP 5.6(with PHP-FPM) 负载均衡源码安装 之 (二)PHP(PHP-FPM)安装篇
- nginx根据日志清除缓存脚本
- nginx源码分析—数组结构ngx_array_t
- Running Jenkins behind Nginx
- nginx 编译 问题
- NGINX location 在配置中的优先级
- NGINX location 在配置中的优先级
- Nginx安装部署
- NGINX location 在配置中的优先级
- nginx 优化
- Nginx开启关闭脚本,php-cgi脚本
- nginx+ffmpeg筹建rtmp转播rtsp流的flash服务器
- nginx实现带参数目录域名重定向二级域名方法
- Nginx正则表达式之匹配操作符详解
- nginx用cookie控制访问权限实现方法
- nginx中给目录增加密码保护实现程序