One, unable to access the CentOS network under Windows
1. View the firewall
#/etc/init.d/iptables status
#/etc/init.d/iptabels Stop//firewall off
#iptables-I input-p TCP--dport 80-j ACCEPT
2. View httpd Status
#/etc/init.d/httpd status
#/etc/init.d/httpd Restart//Direct restart
3. Try to refresh the webpage. (check if IP is wrong)
Second, CentOS7 minimal installation on no ifconfig command
#yum provides ifconfig
Or
#yum Whatprovides Ifconfig
#yum-y Install Net-tools
#ifconfig-A Can
can refer to:
http://blog.163.com/aaron_yuan/blog/static/16519523220148215950996/
Third, CentOS can ping through windows, but Windows cannot ping CentOS. (under VirtualBox virtual machine)
WORKAROUND: Set the network as a bridge network card, then perform
#service Network Restart
At this point, Windows has access to CentOS, but CentOS cannot ping windows.
D. Enable Apache to boot with the system
#chkconfig--levels 235 httpd on
Or
#chkconfig httpd on
Configuration complete, restart Apache
#/etc/init.d/httpd restart
In CentOS, the default root directory for Apache is/var/www/html, configuration file/etc/httpd/conf/httpd.conf, and other configurations stored in the/etc/httpd/conf.d/directory.
CentOS Network Problem Summary