Two problems that are prone to occur in the first contact with linux

Solution for "Unable to connect to MKS: Too many socket connection attempts, giving up" when starting the VM

a. Shut down the virtual machine in question

b. Open in sequence:

"My Computer" -> "Management" -> "Services and Applications" -> "Services" c. Right-click to start the following services:

VMware Authorization Service
VMware DHCP Service
VMware NAT Service
VMware USB Arbitration Service
VMware Workstation Server

Select all of the above to enable

How to set up automatic network connection at startup

First log in with the root account

Modify /etc/sysconfig/network-scripts/ifcfg—(centos6 is eth0, centos7 is ens33)

Opening the file will show the following

DEVICE=eth0
HWADDR=00:0C:29:08:12:5C
TYPE=Ethernet
UUID=e0d9d65e-1bf9-4264-9d38-b4b68e92c97e
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=dhcp

Change the onboot=no to onboot=yes

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325531541&siteId=291194637