1. The Ubuntu version is 16.04. It is installed on the VMWare virtual machine. After entering the graphical interface, everything is normal. You can access the Internet. apache mysql php is running normally. Use the command sudo init 1 in the terminal to enter the command line interface. The system cannot access the Internet. Turn on The function of apche mysql is normal
2. Use the ifconfig command to check that the virtual machine uses NAT mode and the address is normal, 192.168.126.128. It can be accessed through IP on the host
3. On the graphical interface, mysql can be accessed through 127.0 .0.1 ip address to connect, you can only use localhost to access from the command line
1. The Ubuntu version is 16.04. It is installed on the VMWare virtual machine. After entering the graphical interface, everything is normal. You can access the Internet. apache mysql php is running normally. Use the command sudo init 1 in the terminal to enter the command line interface. The system cannot access the Internet. Turn on The function of apche mysql is normal
2. Use the ifconfig command to check that the virtual machine uses NAT mode and the address is normal, 192.168.126.128. It can be accessed through IP on the host
3. On the graphical interface, mysql can be accessed through 127.0 .0.1 ip address to connect, you can only use localhost to access from the command line
Change to bridge mode and ping the host ip