Remember a tangled virtual machine Linux network configuration

Source: Internet
Author: User

To talk about why this is the problem of network configuration, but also from the configuration of DNF (game login), since the Linux server is used by others to set up a good end, extranet access and need to configure the PHP Gateway access page,

Helpless computer is a PC, in the distribution of large-scale telecommunications network, there is no way to only use nat123 penetrate the intranet, tangled is 80 port and bad application, modified the Linux Apache httpd access port,

Vi/etc/httpd/conf/httpd.conf

Search Listen, the back of the 80 changed to 8080, ah ha, this can finally access to the/var/www/html/function.php file, but not long, access is able to access, but this cause shows that the MySQL connection successful

Where did the message go, after a constant attempt to find that the pit Dad's server only installed PHP, there is no installation of MySQL plugin support. Helpless can only reinstall, but found no way to use the Yum command installation, view

Current system uses the Yum source, well, CentOS 5.8 of the Yum source is basically extinct, finally found a Yum address, to the following directory modified by the default Yum source Centos-base.repo

cd/etc/yum.repos.d/
Yum Clean All
Yum Makecache

Still helpless error, incredibly found that this machine Linux is not on the net, I this tangled ah, the problem how more and more, still more and more far away. Let's get to the point, because the virtual machine uses the NAT method to connect, and gives

Fixed IP address: 192.168.200.131, I only hope that on the original basis as little as possible to modify to avoid any other problems, reconfigure the virtual machine's network Guan Ru is 192.168.200.2,

Then enter Linux, to the System network card path to find the network card, modify the Ifcfg-eth0 settings as follows

CD/ETC/SYSCONFIG/NETWORK-SCRIPTSVI Ifcfg-eth0

Found, still do not, continue to Baidu said to change resolv.conf, OK, then continue to change.

Again in ping www.baidu.com, or not, this time I was running, this time to try to ping my native IP (192.168.200.1) is a pass, Ping Gateway 192.168.200.2 is also pass, this time is true

There is nothing to do, can only find Baidu big guy for help.

Kung Fu is not a conscientious, finally found, the original also missed a place, see

Vi/etc/sysconfig/network

This is finally able to on Baidu. Because I was just contact with Linux, no system of learning, only one step 100 degrees, it is really tangled anomaly.

Remember a tangled virtual machine Linux network configuration

Related Article

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.