In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article shares with you the content of a sample analysis of the installation and configuration of the CentOS 7.3.1611 system. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Description:
Up to now, the latest version of CentOS 7.x is CentOS 7.3.1611. The specific installation and configuration process of CentOS 7.3.1611 is described below.
Server-related settings are as follows:
Operating system: CentOS 7.3.1611
IP address: 192.168.21.130
Gateway: 192.168.21.2
DNS:8.8.8.8 8.8.4.4
Note:
The CentOS 7.x series only has 64-bit systems, not 32-bit systems. The production server recommends installing the CentOS-7-x86_64-Minimal-1611.iso version
First, install CentOS 7.3.1611
After successfully booting the system, the following interface appears
Interface description:
Install CentOS 7 # install CentOS 7
Test this media & install CentOS 7 # Test the installation files and install CentOS 7
Troubleshooting # fix the fault
Select the first item here, install CentOS 7, enter, and enter the interface below
Language selection interface, the official production server is recommended to install the English version.
Continue, continue.
Select-system SYSTEM- installation location INSTALLTION DESTINATION, enter the disk partition interface
Select-other storage options Other Storage Options- partition Partitoning- I want to configure partition I will configure partitioning
Click "finish Done" in the upper left corner to enter the following interface
The new mount point uses the following partition scheme: standard Standard Partition
Complete Done
Plan before zoning
Swap # swap partition, generally set to 2 times memory
/ # all remaining space
Note: it is recommended to divide the production server into a separate / data partition to store data
Click the "+" sign in the lower left corner
Mount point: swap
Expected capacity: 2048
Add a mount point, as shown in the following figure
Continue to click the "+" sign in the lower left corner.
Mount point: /
Expected capacity: leave blank # default to all remaining space
Add a mount point, as shown in the following figure
Click "finish Done" in the upper left corner to enter the following interface
Accept the change to Accept Changes and go to the following interface
Software SOFTWARE "-" Software Select SOFTWARE SELECTION ", we use the Minimal version, and the default is minimized installation.
After setting up, click Done
Start installing Begin Installation
Enter the interface below
Select-the user sets the USER SETTINGS-ROOT password and goes to the following interface
Set Root password
If the password length is less than 5 characters, you will be prompted to press "finish" twice to confirm, and the installation will continue.
After the installation is complete, you will enter the following interface
Restart Reboot
Enter the login interface
Enter the account number into root and enter enter.
Then enter the root password set above and enter enter.
System login succeeded
2. Set the IP address and gateway DNS
Description: CentOS 7.x does not automatically open the network connection after it is installed by default!
Cd / etc/sysconfig/network-scripts/ # enter the network profile directory
Vi ifcfg-ens33 # Edit the configuration file to add and modify the following
BOOTPROTO=static # enable static IP address
ONBOOT=yes # enable automatically enable network connection
IPADDR0=192.168.21.130 # set IP address
PREFIXO0=24 # set the subnet mask
GATEWAY0=192.168.21.2 # set Gateway
DNS1=8.8.8.8 # set the main DNS
DNS2=8.8.4.4 # set backup DNS
: wq! # Save exit
Service network restart # restart the network
Ping www.baidu.com # Test whether the network is working
Ip addr # View IP address
3. Set the host name to www
Hostname www # set the hostname to www
Vi / etc/hostname # Edit configuration file
Www # change localhost.localdomain to www
: wq! # Save exit
Vi / etc/hosts # Edit configuration file
127.0.0.1 localhost www # modify localhost.localdomain to www
: wq! # Save exit
4. Change the name of the network card ifcfg-ens33 to ifcfg-eth0
In the CentOS 7.x system, the network card naming rules are redefined, which may be "ifcfg-ens33" and so on. Let's change the network card to ifcfg-eth0.
1 、 cd / etc/sysconfig/network-scripts/
Mv ifcfg-ens33 ifcfg-eth0 # change the name
Vi ifcfg-eth0 # Editing
NAME=eth0 # modification
DEVICE=eth0 # modification
: wq! # Save exit
2. Edit vi / etc/sysconfig/grub #
Add a "net.ifnames=0 biosdevname=0" to the "GRUB_CMDLINE_LINUX" variable
: wq! # Save exit
3. Run the command: grub2-mkconfig-o / boot/grub2/grub.cfg # regenerate the grub configuration and update the kernel parameters
4. Add rules for udev
Create a network card rule "70-persistent-net.rules" in the "/ etc/udev/rules.d" directory and write the following statement:
SUBSYSTEM== "net", ACTION== "add", DRIVERS== "? *", ATTR {address} = = "00:0c:29:1e:a3:77", ATTR {type} = = "1", KERNEL== "eth*", NAME= "eth0"
# ATTR {address} = = "00:0c:29:1e:a3:77" is the MAC address of the Nic
Cd / etc/udev/rules.d
Vi 70-persistent-net.rules # add
SUBSYSTEM== "net", ACTION== "add", DRIVERS== "? *", ATTR {address} = = "00:0c:29:1e:a3:77", ATTR {type} = = "1", KERNEL== "eth*", NAME= "eth0"
: wq! # Save exit
Shutdown-r now # restart the system
The network card has been changed to eth0
Thank you for reading! This is the end of the article on "sample Analysis of CentOS 7.3.1611 system installation and configuration". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.