Description
As of the current CentOS 6.x latest version of CentOS 6.5, the following describes the CentOS 6.5 of the specific installation configuration process
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 mirroring has 32-bit and 64-bit two versions, production server if it is large memory (more than 4G memory)
It is recommended that you install the 64-bit version Centos-6.5-x86_64-bin-dvd1.iso
Attached: CentOS 6.5 Download Address
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, CentOS 6.5 system mirrors have two, the installation system only uses the first mirror, namely Centos-6.5-i386-bin-dvd1.iso (32 bits) or Centos-6.5-x86_64-bin-dvd1.iso (64 bit), The second mirror is the system with its own software installation package;
2, the installation of CentOS 6.5 system computer memory must be equal to or greater than 628M (minimum memory 628M) in order to enable graphics installation mode;
3, CentOS 6.5 text installation mode does not support custom partitions, it is recommended to use Graphics installation mode installation;
4, CentOS 6.5 system installation mode is divided into: Graphics installation mode and text installation mode;
5, CentOS 6.5 system operation 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 operation mode, you can in the system installation process in the custom selection);
I. Installation of CentOS 6.5
Successfully booting the system with CD, the following interface appears
Interface Description:
Install or upgrade an existing system to install or upgrade existing systems
Basic graphics drivers for install system with basic video driver during installation
Rescue installed system to enter Systems Repair mode
Boot from local drive exit install boot from hard drive
Memory Test Memory Test
Here, select the first item, install or upgrade your existing system, and enter.
If there is a question about whether to test the CD media, skip the test here.
The following interface appears
Next
Select the language as: Chinese (Chinese) #生产服务器建议安装英文版本
Next
Keyboard selected as: U.s.english
Next
Select the first item, basic storage device
Next
Select first item: Yes, ignore all data
Next
Set host name, this is the default, the installation is completed and then modified
Next
Time zone selection: etc/gmt +8 Beijing time Zone
"System Clock user UTC" Check in front, use UTC time
Set Root password
Next
Note: If you use a password that is too simple, the system will automatically prompt: Your password is not safe enough, too simplistic/systematic
Choose "Use anyway" here anyway.
Production environment must have strong and complex passwords
Next
Select the last item, create custom Layout creates a customized partition
Next
You can see the capacity of the hard disk, I am showing here is 25G, now customize the partition.
Note: Before partitioning, you have to plan yourself first, how to partition
My section here is as follows:
Hard Drive Total 25G
/boot #128M
/ #剩余所有空间
Special Note:
For the formal production of the server, remember that the data disk must be partitioned separately to prevent system problems, to ensure the integrity of the data. For example, you can divide another
/data is dedicated to storing data.
There is no partitioning of the swap, for large memory servers, you can not set the swap partition, or after determining the amount of memory the system needs to use,
Add swap again
Select Free partition, click Create
Select Standard Partition Standard Partition, point create
Mount point:/boot
File system type: ext3
Size size:128
Other options can be done by default
Ok OK
Continue to select Free partition, click Create
Select Standard Partition Standard Partition, point create
mount point:/
File system type: EXT4
Select "Use all available space"
Other options can be done by default
Ok OK
After you create the partition, as shown in the previous illustration, then click Next
The default Yes #提示没有创建swap分区, which is later created
Point "format" formatting
Select ' Write changes to disk ' to write modifications to disks
Default
Next
The default is: First, desktop desktop
Here choose: Minimal Minimum
Next
Note: You can click Customize now to select the Development Toolkit software you need to install,
You can also install packages by Yum Source, RPM, or compilation when needed.
Start installation
Installation Complete
Point "Reboot" reboot, System automatically reboot
After reboot, the following login interface appears
System Installation Complete
Second, set IP address, gateway, DNS
Conventions:
The first network card is an external network
The second network card for the intranet (no external network of the machine will also be configured in the second network card)
Description: CentOS 6.5 installed after the default is not automatically open the network connection!
Enter account root
Enter the password you set during Setup and log in to the system
Vi/etc/sysconfig/network-scripts/ifcfg-eth0 #编辑配置文件, add modify the following
Bootproto=static #启用静态IP地址
Onboot=yes #开启自动启用网络连接
ipaddr=192.168.21.129 #设置IP地址
netmask=255.255.255.0 #设置子网掩码
gateway=192.168.21.2 #设置网关
dns1=8.8.8.8 #设置主DNS
dns2=8.8.4.4 #设置备DNS
Ipv6init=no #禁止IPV6
: wq! #保存退出
Service ip6tables Stop #停止IPV6服务
Chkconfig ip6tables off #禁止IPV6开机启动
Service yum-updatesd Stop #关闭系统自动更新
Chkconfig yum-updatesd off #禁止开启启动
Service Network restart #重启网络连接
Ifconfig #查看IP地址
Third, set the host name
Conventions:
Host name specification: business, engine room, main preparation, domain name
This sets the host name: BBS.HZ.M. Your site
1, hostname "BBS.HZ.M. Your website"
# Set the host name to BBS.HZ.M. Your site
2, vi/etc/sysconfig/network #编辑配置文件
Hostname= BBS.HZ.M. Your website
#修改localhost. Localdomain for BBS.HZ.M. Your website
: wq! #保存退出
3, vi/etc/hosts #编辑配置文件
127.0.0.1 bbs.hz.m. Your website localhost
#修改localhost. Localdomain for BBS.HZ.M. Your website
: wq! #保存退出
Shutdown-r now #重启系统
Iv. increasing the Swap partition
You need to increase 1024M of swap space after determining the memory that the server needs to use
Specific actions:
1, DD If=/dev/zero of=/tmp/swap bs=1m count=1024m #创建1024M的文件块
2, Mkswap/tmp/swap #创建swap文件
3, Swapon/tmp/swap #激活swap文件
4, swapon-s #查看swap
5, modify the/etc/fstab file, add the following content, let the system boot automatically start
Vi/etc/fstab #在最后添加下面代码
/tmp/swap Swap default 0 0
: wq! #保存退出
At this point, the CentOS 6.5 system installation configuration is complete