[Linux] (1) Installation

VMware virtual machine to install Linux, IP address appears as 127.0.0.1 solutions

① open the virtual machine, click on the navigation bar "virtual machine ( M )", select "Set (S) ..."

② the "Network Adapter" connection mode, select the "bridge mode"

③ into the Linux system, the command input line VI / etc / sysconfig / Network-scripts / the ifcfg-eth0 , press the "Enter" key

Note: between the "vi" and "/ etc" there is a space!

④ After the document appears in the figure, press the "A" key, enter INSERT mode, a moving direction and → ↓ keys, the "ONBOOT = no" modify "ONBOOT = yes". When finished, click the "Esc" key to exit INSERT mode.

Hold down the shift key and click on ":" Release the shift key, enter "wq", click "Enter" to save content changes and exit.

⑤ at the command line Service Network restart , which is the command to restart the service. Restart, enter ifconfig at the command line, you can see to the right IP.

 

Guess you like

Origin www.cnblogs.com/yadiel-cc/p/11131687.html