CentOS 6.5 System Installation Configuration illustration tutorial (detailed text)

Source: Internet
Author: User



Description



Up to now CentOS 6.x is the latest version of CentOS 6.5, and the following is a description of the specific installation configuration process for CentOS 6.5



Server-related settings are as follows:



Operating system: CentOS 6.5 64-bit



IP Address: 192.168.21.129



Gateway: 192.168.21.2



dns:8.8.8.8 8.8.4.4



Note:



CentOS 6.5 System Image has 32-bit and 64-bit two versions, production server if large memory (4G or more memory)



We recommend installing the 64-bit version Centos-6.5-x86_64-bin-dvd1.iso



Attached: CentOS 6.5



32-bit:



Http://mirror.centos.org/centos/6.5/isos/i386/CentOS-6.5-i386-bin-DVD1to2.torrent



64-bit:



Http://mirror.centos.org/centos/6.5/isos/x86_64/CentOS-6.5-x86_64-bin-DVD1to2.torrent



1, the CentOS 6.5 system image has two, the installation system only uses the first mirror, namely Centos-6.5-i386-bin-dvd1.iso (32 bit) or Centos-6.5-x86_64-bin-dvd1.iso (64 bit), The second image is the system comes with a software installation package;



2, the installation of the CentOS 6.5 system computer memory must be equal to or greater than 628M (minimum memory 628M) to enable the graphics installation mode;



3, CentOS 6.5 text installation mode does not support custom partitions, we recommend the use of graphical installation mode installation;



4, CentOS 6.5 system installation method is divided into: Graphics installation mode and text installation mode;



5, CentOS 6.5 system operation mode is divided into: with a graphical interface, you can use the mouse to manipulate the graphical way and without a graphical interface, directly with the command line operation of the text mode (specific system operating mode, you can customize the process of the system installation);



First, install CentOS 6.5



To successfully boot the system with the CD, the following interface will appear






Interface Description:



Install or upgrade an existing system installation or upgrade of existing systems



Install the system with basic video driver during installation with the base graphics driver



Rescue installed system to enter the repair mode



Boot from local drive exits installation from hard disk boot



Memory Test RAM Test



Select the first item here, install or upgrade the existing system, enter.



If there is a question about whether to test the CD media, select "Skip" to skip the test.






The following interface appears






Next






Select language: Chinese (中文版) #生产服务器建议安装英文版本



Next






Keyboard selected as: U.s.english



Next






Select the first item, basic storage device



Next






Select the first item: Yes, ignoring all data



Next






Set the hostname, here default, and then modify after the installation is complete



Next






Time zone selection: etc/gmt +8 Beijing time Zone



Tick in front of "System clock user UTC", using UTC time






Set Root password



Next






Note: If you use a password that is too simple, the system will automatically prompt you: Your password is not secure, too simplistic/systematized



Choose "Use anyway" here anyway



Production environments must have strong, complex passwords



Next






Select the last item, create custom Layout, creating a customized partition



Next






Can see the capacity of the hard disk, I show here is 25G, now custom partition.



Note: Before partitioning, you should plan well, how to partition



My partition here is as follows:



HDD Total 25G



/boot #128M



/#the remaining space



Special Note:



For the official production of the server, remember that the data disk must be partitioned separately, to prevent problems in the system to ensure the integrity of the data. For example, you can divide a



/data is dedicated to storing data.



The swap partition is not partitioned, and for large memory servers, the swap partition may not be set, or after determining the amount of memory the system needs to use,



Add swap again






With free partition selected, click Create



Select Standard Partition Partition, click Create






mount point:/boot



File system type: ext3



Size size:128



Other options default to



Ok OK






Keep the free partition selected, click Create






Select Standard Partition Partition, click Create






mount point:/



File system type: EXT4



Check "Use all available space"



Other options default to



Ok OK






After creating the partition, as shown, then click Next






Default Yes #Prompt no swap partition created , followed by create






Point "format" formatting






Select ' Write changes to disk ' to write modifications to disk






Default



Next






The default is: First, desktop desktops



Choose here: Minimal min



Next



Note: You can click Customize now, select the SDK software to install



You can also install packages by using Yum Source, RPM, or compile when needed.






Start installation






Installation Complete



Point "Reboot" reboot, automatic system restart






After restarting, the following login screen appears






System Installation Complete



Second, set the IP address, gateway, DNS



Conventions:



The first network card is the external network



The second network card for the intranet (no external network of the machine will also be configured in the network on the second NIC)



Description: CentOS 6.5 is installed by default and does not automatically open the network connection!



Enter account root



Then enter the password set during installation and log in to the system



Vi/etc/sysconfig/network-scripts/ifcfg-eth0 #Edit the configuration file, add modify the following content
Bootproto = static - enable static IP address
Onboot = yes - enable automatic network connection
IPADDR = 192.168.21.129 - set IP address
Netmask = 255.255.255.0 set subnet mask
Gateway = 192.168.21.2 - set gateway
Dns1 = 8.8.8.8 set primary DNS
Dns2 = 8.8.4.4 set standby DNS
Ipv6init = no - Disable IPv6
: WQ! Save exit
Service ip6tables stop - stop IPv6 service
Chkconfig ip6tables off - Disable IPv6 boot
Service yum-updatesd stop - shut down system automatic update
Chkconfig Yum updatesd off disable startup
Service network restart? Restart network connection
Ifconfig - view IP address
Third, set the host name
Conventions:
Hostname naming specification: Business-Computer room-Master Preparation-domain name
The host name is set here: bbs.hz.m.osyunwei.com
1, hostname "bbs.hz.m.osyunwei.com"
#Set the host name to bbs.hz.m.osyunwei.com
2. VI / etc / sysconfig / Network - edit the configuration file
Hostname= bbs.hz.m.osyunwei.com
#Modify localhost. Localdomain to bbs.hz.m.osyunwei.com
: WQ! Save exit
3. VI / etc / hosts edit the configuration file
127.0.0.1 bbs.hz.m.osyunwei.com localhost
#Modify localhost. Localdomain to bbs.hz.m.osyunwei.com
: WQ! Save exit
Shutdown-r now? Restart the system
Iv. increasing the Swap partition
You need to add 1024M of swap space after determining the memory that the server needs to use
Specific operation:
1, DD if = / dev / zero of = / TMP / swap BS = 1m count = 1024m ා create 1024m file block
2. Mkswap / TMP / swap - create swap file
3. Swapon / TMP / swap - activate the swap file
4. Swapon-s view swap
5, modify the/etc/fstab file, add the following content, so that the system boot automatically start
VI / etc / fstab ා add the following code at the end
/tmp/swap Swap swap default 0 0
: WQ! Save exit



At this point, the CentOS 6.5 system installation configuration is complete



CentOS 6.5 System Installation Configuration illustration tutorial (detailed text)


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.