Linux Learning Advanced, System installation and IP configuration

Source: Internet
Author: User


Novice First Contact Linu,x the process of learning Linux by using a blog, that is, to share knowledge and to monitor their progress through such a platform. I majored in the University for International trade, engaged in a year of foreign trade work, after the decision to switch to the IT industry, so selected Linux operations this work. I enrolled in a class last week and learned to record it as a new starting point.


One, Linux installation

The choice is VMware virtual machine, serial code is from Baidu search, usable, after downloading the Centos6.5 version, follow the operation prompt installs, is simpler.

Steps:

Turn on virtual machine-install media (OK skip Skip)-"next-"-"American English-" Basic storage Device-"is-" ignore-"next-" Shanghai-"root user password (with password)-" Create a custom layout

-"Create standard partition 1/boot EXT4 400M create swap swap partition (and memory swap) memory twice times 2048

-"Remaining space distribution/(root) can encrypt and force the primary partition-" format-"Use boot loader password without first hook-" single user mode password operating system-"minimal minimal installation (other software Yum Tool area installation)

Development tools add-on development inside


Second, IP configuration


Select the bridging mode and then set the computer as a static IP address.


View all startup non-starting NIC IP commands are: ipconfig-a

After entering the system, the IP address can be obtained automatically by Dhclient command.

You can also configure the NIC file Vi/etc/sysconfig/network-scipts/ifcfg-eth0

Device=eth0 Device Type

Hwaddr=00:0c:29:6e:fa:72 MAC Address

Type=ethernet Network Type

uuid=39ce84c1-fa27-43f9-9af7-da94c12e775e

Onboot=yes Boot auto Start change to No is no boot start

Nm_controlled=yes

BOOTPROTO=DHCP through DHCP to obtain the IP, change to static IP, you need to manually set the IP


To set the IP method manually: Add the following line in the network card configuration file

ipaddr=192.168.1.101 IP address (dhclient automatic acquisition)

netmask=255.255.255.0 Subnet Mask

gateway=192.168.1.1 Gateway

dns1=192.168.137.1 (as with IP)

dns2=8.8.8.8


ESC exits edit mode

: Wq Save and exit

Restart the NIC

Service Network restart



Bridging mode is not required to share a local connection. Bridge mode, the gateway settings are consistent with the real-machine gateway.

This article is from the "12117893" blog, please be sure to keep this source http://12127893.blog.51cto.com/12117893/1859924

Linux Learning Advanced, System installation and IP configuration

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.