首页 > 其他 > 详细

CentOS网络问题汇总

时间:2015-06-15 01:42:21      阅读:232      评论:0      收藏:0      [点我收藏+]

一、Windows下无法访问CentOS网络

1.查看防火墙

#/etc/init.d/iptables status

#/etc/init.d/iptabels stop // 关闭防火墙

#iptables -I INPUT -p TCP --dport 80 -j ACCEPT

2.查看httpd状态

#/etc/init.d/httpd status

#/etc/init.d/httpd restart // 直接重启

3.刷新网页试试。(检查IP是否输错)

 

二、CentOS7最小化安装上无ifconfig命令

#yum provides ifconfig

or

#yum whatprovides ifconfig

#yum -y install net-tools

#ifconfig -a 即可

可以参考:

http://blog.163.com/aaron_yuan/blog/static/16519523220148215950996/

 

三、CentOS能ping通Windows,但Windows无法ping通CentOS。(virtualBox虚拟机下)

解决:将网络设置为 桥接网卡, 再执行

#service network restart 即可

此时,Windows能访问CentOS,但CentOS不能ping通Windows了。

 

四、让apache 随系统启动

#chkconfig --levels 235 httpd on

or

#chkconfig httpd on

配置完毕,重启apache

#/etc/init.d/httpd restart

在CentOS中,apache的默认根目录是/var/www/html,配置文件/etc/httpd/conf/httpd.conf,其他配置存储在/etc/httpd/conf.d/目录。

 

CentOS网络问题汇总

原文:http://www.cnblogs.com/sylar-liang/p/4576078.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!