CentOS网络问题汇总
一、Windows下无法访问CentOS网络
1.查看防火墙
#/etc/init.d/iptables status
#/etc/init.d/iptabels stop // 关闭防火墙
#iptables -I INPUT -p TCP --dport 80 -j ACCEPT (允许80端口通过防火墙)
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/目录。
转载于:https://www.cnblogs.com/sylar-liang/p/4576078.html
CentOS网络问题汇总相关推荐
- 计算机网络对口题目,2011-2015计算机对口升学网络试题汇总.doc
2011-2015计算机对口升学网络试题汇总 2011-2015对口升学 计算机网络试题及答案汇总 2017年9月30日整理 (2011年河北省普通高等学校对口招生考试计算机网络试题及答案:) 一.选 ...
- Centos系统服务FAQ汇总(下)
Centos系统服务FAQ汇总 1.22 无人职守安装问题汇总 1.22.1 安装系统时提示PXE-E32:TFTP open timeout TFTP"Open" 查看发现xi ...
- CentOS网络配置解决方案
CentOS网络配置解决方案 https://blog.csdn.net/heyabo/article/details/8035927 关于centos网络配置的方法,网上文档很多,但基本上都是一些操 ...
- CentOS网络设置 couldn‘t resolve host ‘mirrorlist.centos.org问题解决
CentOS网络设置 couldn't resolve host 'mirrorlist.centos.org问题解决 参考文章: (1)CentOS网络设置 couldn't resolve hos ...
- VM centos网络配置
vm默认dhcp来分配ip. 首先,安装完成后,确定vm使用的是nat形式:在本机ipconfig查看vnet8 的ip地址,直接设置其静态ip地址.(例如:ip地址 192.168.128.1,子网 ...
- Centos网络连不上网络
Centos网络连不上网络 使用centos一直连不上网络 1.使用桥接模式复制本地网络 2.更改网卡文件信息 3.进入root模式 4.用vi命令查看ens33文件 5.两个属性调整.BOOTPRO ...
- ZT: 回顾2007:新兴网络服务汇总(完整篇)
注:此系列文章"回顾2007:新兴网络服务汇总"原文发布于WappBlog上,共12篇 -1月 2月 3月 4月 5月 6月 7月 8月 9月 10月 11月 12月. 上次在回顾 ...
- CentOS网络设置
CentOS网络设置 这里介绍一下Linux下的网络设置文件,这是网络计算机服务器的前提条件. 1.网络的基本设置 我们在设置网络环境的时候,提前要弄清楚以下的相关信息. IP IP地址 ...
- CentOS网络配置步骤
CentOS网络设置 1.CentOS安装完成时是处于无法上网状态的,例如ping百度时 [root@localhost ~ ] ping www.baidu.com ping : www.baidu ...
- VirtualBox虚拟机安装centos网络配置
VirtualBox虚拟机安装centos网络配置 我的问题是:我通过虚拟机安装的centos系统,想要ping www.baidu.com,一直ping不通,然后在本地电脑用ifconfig查看我的 ...
最新文章
- Hinton胶囊理论代码开源,上线即受热捧
- 学习busybox源码与移植
- Ceph Luminous安装指南
- 淮海工学院计算机宿舍住b几,淮海工学院本部2009-操作系统试卷B
- 在ubuntu16.04上安装java和elastic search
- eoeAndroid开发者大会
- html清除内部所有补白,如何清除行内元素之间的HTML空白
- linux如何卸载光驱显示busy,关于linux卸载设备时的busy问题处理
- 监控摄像头接入流媒体服务器的几种方式
- 什么是冬至?冬至的由来?
- 为什么专业工程师对前端开发不屑一顾?
- 操作系统中阻塞和挂起的区别和联系
- 计算机组成与体系结构
- 2017百度之星资格赛总结
- 最新版《神经网络和深度学习》中文版.pdf
- 抖音为什么这么火?抖音用户暴涨的秘密在哪?
- MyBatis关联对象查询
- 【Python代码】文件查重(01)-简易版
- java商品搜索功能_JavaWeb实现简单查询商品功能
- 1718: 大鱼吃小鱼