Yesterday I installed CentOS7 under VMware. I wanted to use ftp to transfer the tomcat package, but I found that ftp was not installed. I used the " At first I thought it was a problem with the mirror server, but after pinging it I found that I couldn't connect to the network at all. Since many settings are default, and the virtual machine is also in default NAT mode, sharing the network with the host computer, it should not be a problem with VMware settings. After consulting a lot of information on the Internet, the final cause turned out to be the default installation. The specific solution is as follows: Enter the network configuration List directory contents: ls (L next to K, not 1 or i) Then check the files in the directory and find an Use the "vi" command to open for editing:
A long string of English will appear, but it is enough to understand the last line. It will prompt us to press Enter to continue. Just press "ENTER" Now the cursor is positioned on the last line, change ONBOOT=no to ONBOOT=yes Enter the command: :wq to save
Finally, enter the command: service network restart Summarize The above is the quick solution to the problem that CentOS cannot access the Internet in VMware introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: A brief analysis of the knowledge points of exporting and importing MySQL data
>>: Detailed explanation of the differences between js array find, some, filter, and reduce
Previous: Markup Language - Phrase Elements Origin...
Table of contents 1. Error phenomenon 2. Error An...
This article shares the specific code for impleme...
Definition of Generics // Requirement 1: Generics...
Table of contents frame First-class error reporti...
Reinventing the wheel, here we use repackaging to...
1. position : fixed Locked position (relative to ...
Table of contents Preface –link Custom Network As...
1. haslayout and bfc are IE-specific and standard ...
Ubuntu install jdk: [link] Install Eclipse on Ubu...
Overview I believe we often encounter such scenar...
Docker installs MySQL version 8.0.20 for your ref...
How to determine whether a variable is empty in s...
Run cmd with administrator privileges slmgr /ipk ...
Recently, there is a need to automatically search...