Learn Linux environment deployment from scratch

Source: Internet
Author: User
Tags nameserver

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/4B/24/wKioL1QoM1PzffBfAAQVN3vxuYw807.jpg "style=" float: none; "title=" 1-13.png "alt=" Wkiol1qom1pzffbfaaqvn3vxuyw807.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/4B/22/wKiom1QoMyrj-JlSAARhPP6nhao040.jpg "style=" float: none; "title=" 2-1.png "alt=" Wkiom1qomyrj-jlsaarhpp6nhao040.jpg "/>

Enter the password to enter the desktop. , right-click open--terminal

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4B/22/wKiom1QoM6vCzD0eAAQ9MVQqUk0707.jpg "title=" 2-2. PNG "alt=" wkiom1qom6vczd0eaaq9mvqquk0707.jpg "/> Press Insert to adjust the cursor to the position shown in the figure, change 5 to 3, close the graphical interface, then press the colon, enter wq! save, and enter reboot restart

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4B/24/wKioL1QoNw6SVHD2AAD_BsheiSc031.jpg "title=" 2-3. PNG "alt=" Wkiol1qonw6svhd2aad_bsheisc031.jpg "/> Enter root and enter your password to enter the system

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/4B/23/wKiom1QoOLyxv0ZgAAEo0x49Sm0019.jpg "title=" 2-4. PNG "alt=" wkiom1qoolyxv0zgaaeo0x49sm0019.jpg "/>

To edit the network card configuration file


Vi/etc/sysconfig/network-script/ifcfg-eth0


Enter edit mode


Press the I key to edit


Modify


Device=eth0 #物理设备名

ipaddr=192.168.1.103 #IP地址

netmask=255.255.255.0 #掩码值

network=192.168.1.0 #网络地址 (not available)

broadcast=192.168.1.255 #广播地址 (not available)

gateway=192.168.1.1 #网关地址

Onboot=yes # [Yes|no] (whether the device is activated at boot time)

Userctl=no #[yes|no] (whether the device can be controlled by a non-root user)

Bootproto=static #[none|static|bootp|dhcp] (non-use protocol at boot | static Assignment | BOOTP protocol | DHCP protocol)


Then modify the DNS configuration file


Vi/etc/resolv.conf


Enter edit mode


Press the I key to edit


Modify


NameServer 202.109.14.5 #主DNS


NameServer 219.141.136.10 #次DNS


Search Localdomain


So after the network configuration is complete, you need to restart the Network service: Service network restart or/etc/init.d/network restart

Well, this time we will find, sometimes we from the VBox window to perform virtual machine operation is troublesome, after all, the mouse cut into the cut out (I am lazy) often to use the right ctrl. So, let's do the halt command shutdown first.

Then open cmd under Windows. Switch to your VBox installation directory, then execute vboxmanage STARTVM test-type headless command 650) this.width=650; src= http://s3.51cto.com/wyfs02/M00/ 4b/26/wkiol1qopvpj0ihtaabtd7nyts4240.jpg "title=" 2-5.png "alt=" Wkiol1qopvpj0ihtaabtd7nyts4240.jpg "/> We can then use Putty or Telnet to log in to our virtual machines. I use putty650 here) this.width=650; "Src=" http://s3.51cto.com/wyfs02/M01/4B/24/wKiom1QoPyqBno9DAAHnUaAwFzc168.jpg " Title= "2-6.png" alt= "wkiom1qopyqbno9daahnuaawfzc168.jpg"/> Enter your IP here

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4B/26/wKioL1QoP4LCD5jkAADpvA90A2s801.jpg "title=" 2-7. PNG "alt=" wkiol1qop4lcd5jkaadpva90a2s801.jpg "/>

So that the remote came up, and

Learn Linux environment deployment from scratch

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.