Configuring CENTOS7 server under VMware (iii)

Source: Internet
Author: User
Tags virtual environment

Recently has been more lazy, until now to do a summary: After the first few days of configuration, finally put all the environment are set up. Now let's sum up the hole that I had walked through.

I. Network problem: CENTOS7 cannot be networked

Can not be divided into two reasons, one is the virtual machine Network setup problems, the second is CENTOS7 network configuration problems.

CENTOS7 analysis of the reasons, enter the command on the CENTOS7 terminal: systemctl restart network; see information to troubleshoot errors

Bo Friends Program: http://www.bubuko.com/infodetail-1981393.html, provides a partial solution, which modifies the "Ifcfg-eth0" part of the personal feel inappropriate, my Centos7 does not have the file, but " eno16777736 "file is equivalent to" Ifcfg-eth0 ", no need to add" ifcfg-eth0 "file.

Virtual Machine Network setup issues, generally in the virtual machine--editor----Virtual network editor This place is set, mainly bridge, Nat two ways. The general default is the way the bridge is bridged.

Bo Friends Program: http://blog.csdn.net/a785975139/article/details/53023590, the method provided is very useful to me.

Two. Set Static IP issues:

Since I have always wanted to use the tool Xshell5 in the host side to control the CENTOS7, so need to configure a static IP, otherwise the IP has been changed, the connection is very troublesome. In fact, the idea is very simple, consider a comprehensive point, need to modify 3 places. First, the virtual machine's virtual environment is configured into NAT mode, many tutorials on the web. Second, modify the CENTOS7 network configuration file: Is the configuration "ifcfg-" the beginning of the file, different people are not the same, some "ifcfg-eth0", some "ifcfg-eth1", My Is "ifcfg-eno16777736", as long as there is a can, Modify the inside of the gateway and other parameters can become static IP; Thirdly, modify the IP address of the host virtual network (I just because this IP address and CENTOS7 address is not the same frequency band, it has been connected to the network, and then here toss for a long time)

Bo Friends Program: http://blog.csdn.net/liaomin416100569/article/details/44421969, this set static IP, and my first two blog posts have detailed settings.

Three. Turn on the SSH service

Although set up static IP, also can surf the internet, but the host still can't access to CENTOS7, then you have to consider whether to open the SSH service, only open, in order to host and Centos7 only possible unicom.

Bo Friends Program: http://blog.csdn.net/trackle400/article/details/52755571, the inside of the very detailed, to me a great help.

Quad, firewall issues

After installing Tomcat, I actually couldn't access the Tomcat homepage and queried for half a day before I knew it was Centos7 's firewall was not turned on.

Bo Friends Program: Https://www.cnblogs.com/moxiaoan/p/5683743.html, according to the Bo Friend's Terminal command, minutes to solve the problem.

In fact, the whole installation process, I also encountered a lot of other small problems, nor timely record down, after so many days, also forget, more pity. A good memory is better than a rotten pen. My intention was to deploy a Web project to the local server, where the blogger (http://blog.csdn.net/gebitan505/article/details/54599598) blog also helped me a lot, Thank the above Bo friends for their experience sharing.

Configuring CENTOS7 server under VMware (iii)

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.