Unable to access the Internet under Ubuntu16.04 command line

WBOY
Release: 2016-07-06 13:51:13
Original
1772 people have browsed it

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

Reply content:

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

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template