CentOS Network Problem Summary

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.