Centos 7.0 system installation and configuration graphic tutorial

Source: Internet
Author: User
Tags domain name server nameserver
Centos 7.0 system installation and configuration graphic tutorial

Note:

The latest version of centos 7.x is centos 7.0. The following describes how to install and configure centos 7.0.

The server settings are as follows:

Operating System: centos 7.0 64-bit

IP Address: 192.168.21.128

Gateway: 192.168.21.2

DNS: 8.8.8.8 8.4.4

Note:

If the production server is large memory (4 GB memory or above), it is recommended to install a 64-bit version CentOS-7.0-1406-x86_64-DVD.iso

1. Install centos 7.0

After the system is successfully guided, the following interface appears.

Interface Description:

Install centos 7 install centos 7

Test this Media & Install centos 7 test the installation file and install centos 7

Troubleshooting fault repair

Select the first item here, install centos 7, and press enter To Go To The following interface

System O & M www.osyunwei.com reminder: qihang01 original content©Copyright. For more information, see the source and source text chain.

Select language: Chinese-Simplified Chinese (China) # It is recommended to install the English version of the official production server

Continue

Select-system-installation location to go to the disk partition page.

Select-other storage options-partition-I Want to configure partitions. Click "finish" in the upper left corner To Go To The following interface.

System O & M www.osyunwei.com reminder: qihang01 original content©Copyright. For more information, see the source and source text chain.

Plan before partitioning

Swap # swap partition, usually set to 2 times the memory

/# All remaining space

Note: We recommend that you separate one/Data Partition for the production server to store data.

Click "+" in the lower left corner.

Mount point: swap

Expected capacity: 2048

Add a mount point, as shown in

System O & M www.osyunwei.com reminder: qihang01 original content©Copyright. For more information, see the source and source text chain.

Click "+" in the lower left corner.

Mount point :/

Expected capacity: 18.43 GB # all remaining space

Add a mount point, as shown in

Click "finish" in the upper left corner To Go To The following interface.

Accept the changes and go to the following interface.

Start installation # Pay attention to "software"-"software selection". By default, the installation is minimal, that is, you can set it yourself without installing the desktop environment.

Enter the following interface

Select-user settings-Root Password To Go To The following interface

Set Root Password

If the password length is less than 8 characters, the system will prompt you to confirm the password twice after "complete ".

After the installation is complete, the following interface is displayed.

Click restart

System restart

Enter the logon page

Enter the root account and press Enter.

Enter the root password set above and press Enter.

System logon successful

2. Set IP addresses and gateway DNS

Note: After centos 7.0 is installed by default, network connections are not automatically enabled!

CD/etc/sysconfig/network-scripts/# enter the network configuration file directory

VI ifcfg-eno16777736 # edit the configuration file and add to modify the following content

Hwaddr = 00: 0C: 29: 8d: 24: 73

Type = Ethernet

Bootproto = static # enable static IP addresses

Defroute = Yes

Peerdns = Yes

Peerroutes = Yes

20174_failure_fatal = No

Ipv6init = Yes

Ipv6_autoconf = Yes

Required 6_defroute = Yes

Ipv6_peerdns = Yes

20176_peerroutes = Yes

20176_failure_fatal = No

Name = eno16777736

UUID = ae0965e7-22b9-45aa-8ec9-3f0a20a85d11

Onboot = yes # enable network connection automatically

Ipaddr0 = 192.168.21.128 # Set the IP address

Prefixo0 = 24 # Set the subnet mask

Gateway0 = 192.168.21.2 # Set the Gateway

Dns1 = 8.8.8.8 # Set the primary DNS

Dns2 = 8.8.4.4 # Set backup DNS

: WQ! # Save and exit

Service Network restart # restart the network

Ping www.baidu.com # test whether the network is normal

Ip addr # view IP addresses

3. Set the host name to www

Hostname WWW # Set the host name to www

VI/etc/hostname # edit the configuration file

WWW # modify localhost. localdomain TO WWW

: WQ! # Save and exit

VI/etc/hosts # edit the configuration file

127.0.0.1 localhost WWW # modify localhost. localdomain TO WWW

: WQ! # Save and exit

Shutdown-R now # restart the system

Now, the installation and configuration illustration tutorial for centos 7.0 is complete!

 

 

Bytes -----------------------------------------------------------------------------------------------------
Bytes -----------------------------------------------------------------------------------------------------
Bytes -----------------------------------------------------------------------------------------------------
Bytes -----------------------------------------------------------------------------------------------------
Bytes -----------------------------------------------------------------------------------------------------
Bytes -----------------------------------------------------------------------------------------------------

 

Vmvare install the centos7 Virtual Machine and configure networking

Source: 79433113

Configure offline networking.

To test the connection, Ping www.baidu.com or ping 112.80.248.74. If the domain name cannot be resolved, move to the end of the article.

1. First, you must first open the vmvare service in the service.

 

Path: Task Manager> service.

2. Modify the vmvare connection.

Workstation-> Virtual Machine-> Settings,

 

If you have not set a vmvare connection in advance, go to edit-> set a bridge network in the virtual network editor,

 

3. Go to the centos7 command line interface and enter IP add

 

This is the IP connection in the Virtual Machine. Remember this name: enoxxxxxxxxx.

4. Enter CD/etc/sysconfig/network-scripts, enter the folder, and then ls to view the file directory.

 

Then you will find the IP connection you saw in the previous step. VI ifcfg-enoxxxxxxx to edit.

5. Edit it according to the information. Change bootproto to DHCP, and change one onboot to yes. Then SHIFT +: WQ is saved and exited.

 

6. Enter reboot to restart. Some systems are shutdown-R now. After restarting, enter Ping www.baidu.com.

If you are prompted that the domain name cannot be resolved, enter VI/etc/resolv. conf to add the Domain Name Server:

Nameserver 218.2.135.1

Nameserver 8.8.8.8

Save and try again.


Bytes -----------------------------------------------------------------------------------------------------
Bytes -----------------------------------------------------------------------------------------------------
Bytes -----------------------------------------------------------------------------------------------------
Bytes -----------------------------------------------------------------------------------------------------
Bytes -----------------------------------------------------------------------------------------------------
Bytes -----------------------------------------------------------------------------------------------------

 

Centos7 command line installation graphical user interface

Source: 79433307

After centos7 is installed, the command line interface is displayed after restart, so you want to change it to a graphical user interface.

 

If the graphic user interface is installed:

1. Check whether the graphic user interface has been installed in the system.

Use CTRL + ALT + FX, and X is 1234 to test whether the graphic user interface can be switched.

I switched to different command line interfaces, prompting you to log on.

2. After logging in, enter the init 5 or startx command in the command line to check whether the switch can be performed.

Record the running level:

Run level description: Use init X to switch the level. If you want to enter the GUI, enter init 5 to switch;

0. All processes will be terminated, and the machine will be stopped in an orderly manner. when the machine is shut down, the system will be in this running level 1 single user mode. It is used for system maintenance. Only a few processes run, and all services do not start the two-user mode. Like running level 3, the Network File System (NFS) service is not started in 3 multi-user mode. Allow multiple users to log on to the system. The default startup Level 4 is reserved for the User-Defined running level 5 Multi-user mode, and X-window is run after the system is started, A graphical logon window is provided. 6. All processes are terminated and the system restarts.


My prompt command not found. Despair =, so proceed to the next step.

3. I have a centos7 system, so I need to configure it in systemd.

1) First, Delete the existing symbolic link:
Rm/etc/systemd/system/default.tar get
2) then convert the default mode to the 5 mode, that is, the graphic user interface:

Ln-SF/lib/systemd/system/graphical.tar get/etc/systemd/system/default.tar get

Restart and enter reboot and press Enter.

Note: centos7 and later versions
Ln-SF/lib/systemd/system/multi-user.target/etc/systemd/system/default.tar GET command line
Ln-SF/lib/systemd/system/graphical.tar get/etc/systemd/system/default.tar get graphic interface

4. if the version is earlier than centos7

Command line interface: Modify the ID of the/etc/inittab file: 5: initdefault: This line is changed to ID: 3: initdefault:. The command line interface is directly displayed at the next startup.

Restore graphical interface: On the command line interface, change the ID: 3: initdefault: of the/etc/inittab to ID: 5: initdefault:. The graphic interface will be displayed after the next restart.

 

If the graphic user interface is not installed. First, you must connect to the Internet. If you are not connected to the Internet, go to my previous blog.

Then yum is required. If not, install Yum first.

1. Enter the following command in the command line to install the gnome package.

# Yum groupinstall "GNOME Desktop" "graphical administration tools"
2. Update the default startup interface of the system. For details, refer to the above section and refer to centos7.

# Ln-SF/lib/systemd/system/runlevel5.target/etc/systemd/system/default.tar get
Step 4: restart the machine, reboot, and succeed.

 

 

 

 

Centos 7.0 system installation and configuration graphic tutorial

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.