Step by step you install CentOS 6.6 system

in #steemit6 years ago

Description:
Up to now, the latest version of CentOS 6.x is CentOS 6.6, and the detailed installation and configuration process of CentOS 6.6 is described below
Server related Settings are as follows:
Operating system: CentOS 6.6 64-bit
IP address: 192.168.21.129
Gateway: 192.168.21.2
DNS: 8.8.8.8 8.8.4.4
Remark:
CentOS 6.6 system image has 32-bit and 64-bit versions, and there's a minimal version optimized for the server
If the production server is large memory (more than 4G memory), it is recommended to install centos-6.5-x86_64-water.iso
Download address:
32-bit and 64 - bit version: http://www.linuxdown.net/CentOS/2014/1029/3417.html

  1. The computer memory of CentOS 6.6 system must be equal to or greater than 628M (minimum memory 628M) to enable the graphical installation mode;
  2. CentOS 6.6 system installation mode is divided into: graphic installation mode and text installation mode;
  3. CentOS 6.6 text installation mode does not support custom partitions. It is recommended to use the graphical installation mode.
    5, CentOS 6.6 system operation mode is divided into: with a graphical interface, can use the mouse to operate graphical methods, and without a graphical interface, direct use command line mode of text (CentOS minimal version is the default text works, in the process of system installation without system operation mode of the custom option).
  4. Install CentOS 6.6

Successfully boot the system with a CD and the following interface will appear43D45A10-175E-41CB-A62D-D7BE8F4CF7E8.jpeg
Interface description:
Install or upgrade an existing system to Install or upgrade an existing system
The install system with basic video driver adopts basic video card driver during installation
Rescue installed system enters system repair mode
Boot from local drive exits the installation and starts from the hard drive
Memory test Memory detection
Select the first option here, install or upgrade the existing system, and return.
If there is a question about testing CD media, select Skip to Skip the test.
C2D2F269-78DA-433D-A803-C0A1492DB64B.jpeg
The following interface appears
CBD31621-E849-446A-A4F2-F9634E998A7C.jpeg
Next
652BE49E-E457-4005-876F-CA13C4757E72.jpeg
The production server of English (English) # is recommended to install the English version
Next
6AF3006D-FFD3-436B-86FA-C5F52290DB00.jpeg
Keyboard option: u.s.glish
Next
221C6833-0335-4D67-AEBC-C548FD378026.jpeg
Select the first item, the basic storage device
Next
00BC160F-B0DF-4932-9793-D9FCC6F619F1.jpeg
Select item 1: Yes, ignore all data
Next
B948E642-8A86-4E3B-9FFD-3C1ED1B80C78.jpeg
Set the host name, which is the default, and modify it when the installation is complete
Next
A9D6A112-129F-4A2E-9534-9E7FA9860A92.jpeg
Time zone selection: Asia/Shanghai
"System clock user UTC" # cancels the previous tick and does not use UTC time
D6B31F70-843A-4C72-9445-B951265FF4CB.jpeg
Set the root password
Next
1888A59A-1B32-46DD-8462-2E47A6963C58.jpeg
Note: if your password is too simple, the system will automatically prompt: your password is not secure enough, too simple/systematized
Here, select "Use Anyway" and Use it Anyway
The production environment must have strong and complex passwords
Next
6863F921-A39D-4825-BCA5-24CA3FC61A60.jpeg
Select the last item, Create Custom Layout to Create Custom partitions
Next
91E7B552-332A-45A8-B096-FCB83F444E8C.jpeg
You can see the capacity of the hard drive, which I'm showing here is 20 gigabytes, now custom partition.
Note: before partitioning, you need to plan your own partition. How do you do it
My partition here is as follows:
20 gigabytes of hard disk
Swap #2048M, usually set to twice memory
/ # all space left
Special instructions:

For formally produced servers, it is important to partition the data disks separately to ensure data integrity in case of a system failure. Let's say I divide it by another one
/data is dedicated for storing data.
9C9510F9-CF84-41E0-9E19-F2C405A96CDA.jpeg
Select the Free Free partition and click Create
Select the Standard Partition of the Standard Partition and click Create8D1E00C9-6FD3-4760-85A6-EBF626B777C6.jpeg
File system type: swap
Size: 2048
Other options are available by default
Sure OK
B8F31979-E12C-4E7A-B3BF-5AFE87D648AE.jpeg
Continue to select the Free Free Free partition and click Create
D73E728E-50EA-4C27-99ED-E869C7953AEE.jpeg
Select the Standard Partition of the Standard Partition and click Create
E63BA49C-98A2-4B2C-B816-F7086A98AAF2.jpegMount point: /
File system type: ext4
Select use all available space
Other options are available by default
Sure OK
8B38CDE9-67F6-4CAC-B7AC-EAD0E4BD2976.jpeg
After the partition is created, as shown above, click Next
EE544FCB-1613-413D-AB5B-C5CAE5350D79.jpeg
Click Format to Format
5B8BAC0E-1624-4688-8FDB-A08A57F43DB8.jpeg
Select "Write changes to disk" to Write the changes to disk
Select "Write changes to disk" to Write the changes to disk
C665BA89-C2A6-4947-BC74-532F23421331.jpeg
The default
Next
F55DFF03-E390-4D36-9291-741B3D7569C2.jpeg
Start the installation
E11D64CC-A631-4193-80F9-1F5B79E89EFE.jpeg
The installation is complete
Reboot at Reboot, Reboot at Reboot
4D9E281F-3B2B-45F6-8BD2-A1DC2BAA02CB.jpeg
After restarting, the following login screen appears0F6B5F4B-B6C1-4A41-8EBD-16EC1A4B282E.jpeg
Enter the root and password of the account and log in the system successfully, as shown in the figure below:
F5D2CE44-3F88-4B8A-BC5E-A23A6E3F55B8.jpeg
System installation completed
Set IP address, gateway and DNS

Convention:
The first network card is the external network
The second network card is an internal network (a machine without an external network also has to configure the internal network on the second network card).
Explanation: after the default installation, CentOS 6.6 does not automatically open the network connection!
Enter the account root
Enter the password set during the installation process and log in to the system
Vi /etc/sysconfig/network-scripts/ifcfg-eth0 # edit the configuration file to add and modify the following
BOOTPROTO=static # enables static IP addresses
ONBOOT=yes # opens automatic network connection enablement
IPADDR=192.168.21.129 # set IP address
Set subnet mask = 255.255.0 #
GATEWAY=192.168.21.2 # setup GATEWAY
DNS1=8.8.8 # setting the primary DNS
DNS2=8.8.4.4 # setup standby DNS
IPV6INIT=no # forbid IPV6
: wq! # save exit
Service ip6tables stop # IPV6 service
Chkconfig ip6tables off # disables IPV6 startup
Service yum-updatesd stop # shutdown system automatically updates
Chkconfig yum-updatesd off # disables startup
Service network restart # restart network connection
Ifconfig # looks at the IP address
Set the host name

Convention:
Host name naming specification: business. Computer room. Main and standby. Domain name
The host is set to bbs.hz.m.osyunwei.com
1, the hostname "bbs.hz.m.osyunwei.com"
Set the host to bbs.hz.m.osyunwei.com

  1. Vi /etc/sysconfig/network # edit configuration file
    The HOSTNAME = bbs.hz.m.osyunwei.com
    Change the localhost-localdomain to bbs.hz.m.osyunwei.com
    : wq! # save exit
  2. Vi /etc/hosts # edit the configuration file
    127.0.0.1 localhost at bbs.hz.m.osyunwei.com
    Change the localhost-localdomain to bbs.hz.m.osyunwei.com
    : wq! # save exit
    Shutdown -r now # restart the system
    So far, CentOS 6.6 system installation and configuration has been completed
Sort:  

Congratulations @hahapp9174! You received a personal award!

1 Year on Steemit

Click here to view your Board

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @hahapp9174! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!