linux网络故障解决方法
2014-09-22 16:22
316 查看
1、linux本机能否访问httpd服务,判断linux本机能否访问www服务 wget http://localhost/index.html 2、远程客户端能否连接上,判断linux端口是否可以访问 telnet 192.168.10.10 80 能否远程telnet 登陆80端口,对应的服务器ip地址是192.168.10.10 3、IPTABLES 防火墙是否有限制 允许任何IP脚本:
iptables -I INPUT -p TCP --dport 80 -j ACCEPT
禁止任何IP脚本:
iptables -I INPUT -p TCP --dport 80 -j DROP
限制特定IP脚本:
iptables -I INPUT -s 192.168.1.18 -p TCP --dport 80 -j DROP
关键/开启防火墙命令centos7.0 用的命令跟之前版本不一致
# systemctl stop firewalld # systemctl disable firewalld # iptables-service # touch /etc/sysconfig/iptables # systemctl start iptables # systemctl enable iptables # touch /etc/sysconfig/ip6tables # systemctl start ip6tables # systemctl enable ip6table
可以参考 redhat 官网:
Chapter 3. The Apache HTTP Server
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Managing_Confined_Services/chap-Managing_Confined_Services-The_Apache_HTTP_Server.html网卡的几个关键位置
1、
vim /etc/udev/rules.d/70-persistent-net.rules
2、
cd /etc/sysconfig/network-scripts vim ifcfg-eth0
相关文章推荐
- Thinkpad在Linux下指点杆和无线网络的配置和故障解决方法
- linux网络故障解决方法
- Thinkpad在Linux下指点杆和无线网络的配置和故障解决方法
- 解决网络故障的一般方法
- 【Linux网络编程笔记】TCP短连接产生大量TIME_WAIT导致无法对外建立新TCP连接的原因及解决方法—基础知识篇
- windows8系统网络连接受限制或无法连接等故障的解决方法
- linux故障,无法启动的解决方法
- Linux系统常见故障的解决方法
- 求助网络打印机故障解决方法
- win7常出现的网络故障以及解决方法
- PXE 网络常见故障和解决方法
- 虚拟机中装Linux配置网络时提示:Device eth0 has different MAC address than expected 的解决方法
- 【Linux网络编程笔记】TCP短连接产生大量TIME_WAIT导致无法对外建立新TCP连接的原因及解决方法—实践篇
- Linux 系统启动故障解决方法
- 【四大方法轻松解决无线网络故障】
- linux网络配置、测试及故障诊断方法和工具三
- linux检测网络故障以及恢复网络的方法
- Redhat Enterprise Linux 5系统引导故障解决方法
- 关于Hyper-V热迁移中linux出现网络中断的解决方法
- Vmware 中Linux中NAT网络异常解决方法