Description
As of the current Rhel 6.x latest version of Rhel 6.5, the following describes the Rhel 6.5 of the specific installation configuration process
Server-related settings are as follows:
Operating system: RHEL 6.5 64-bit
IP Address: 192.168.0.54
Gateway: 192.168.0.1
dns:8.8.8.8 8.8.4.4
Note:
rhel-server-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 Rhel-server-6.5-x86_64-dvd.iso
I. Installation of RHEL 6.5
Successfully booting the system with CD, the following interface appears
System Yun-wei Www.111cn.net warm reminder: qihang01 original Content © Copyright, reproduced please specify the source and the original link
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 the host name, either by default or by customizing
Next
Time zone Selection: Asia/shanghai Asia/Shanghai
Cancel the tick in front of System clock user UTC and do not use UTC time
Next
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.
Next
Select the last item, create custom Layout the Customize layout
Next
You can see the capacity of the hard disk, I am showing here is 16G, 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 16G
Swap 2G #一般设置为内存的2倍
/14G #剩余所有空间
Special note: For the official 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, a /data can be divided to store data specifically.
Select Free partition, click Create, select Standard partition Standard Partition, and then click Create
FileSystem type File System Type:swap
Size size:1024
Other options can be done by default
Ok OK
Continue to select Free partition, click 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
Point "format" formatting
Select ' Write changes to disk ' to write modifications to disks
Default Next
The default is: First, basic server
If it is the first time study, suggest a choice: Desktop desktop
If it is used as a formal server, the recommended option:Minimal minimum
Here choose:minimal
Next
Start installation
Being installed
Installation Complete
Point "Reboot" reboot, System automatically reboot
After reboot, the following login interface appears
Second, set IP address, gateway DNS
Description: RHEL 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.0.54 #设置IP地址
netmask=255.255.255.0 #设置子网掩码
gateway=192.168.0.1 #设置网关
dns1=8.8.8.8 #设置主DNS
dns2=8.8.4.4 #设置备DNS
: wq! #保存退出
Service Network restart #重启网络连接
Ping www.111cn.net #测试网络是否正常
Ifconfig #查看IP地址
Configuring local yum sources using system mirroring files
1, use WinSCP.exe tool upload system image file Rhel-server-6.5-x86_64-dvd.iso to/usr/local/src directory
2. Connect to Rhel server remotely using Putty.exe tool
3. Mount System image files
Mkdir/media/cdrom #新建镜像文件挂载目录
CD/USR/LOCAL/SRC #进入系统镜像文件存放目录
LS #列出目录文件, you can see the system image file just uploaded
Mount-t iso9660-o loop/usr/local/src/rhel-server-6.5-x86_64-dvd.iso/media/cdrom #挂载系统镜像
Cd/media/cdrom #进入挂载目录, use the LS command to see that a file exists
Note:umount/media/cdrom #卸载系统镜像
4, set up automatically mounted system image files
Vi/etc/fstab #添加以下代码. Enable automatic mount on boot
/usr/local/src/rhel-server-6.5-x86_64-dvd.iso/media/cdrom iso9660 defaults,ro,loop 0 0
: wq! #保存退出
Note: iso9660 use df-t to view devices
5. Configure local Yum Source
cd/etc/yum.repos.d/ #进入yum配置目录
Touch Rhel-media.repo #建立yum配置文件
VI Rhel-media.repo #编辑配置文件, add the following
[Rhel-media]
name=red Hat Enterprise Linux 6.5 #自定义名称
Baseurl=file:///media/cdrom #本地光盘挂载路径
Enabled=1 #启用yum源, 0 is not enabled, 1 is enabled
Gpgcheck=1 #检查GPG-key,0 for no check, 1 for inspection
Gpgkey=file:///media/cdrom/rpm-gpg-key-redhat-release #GPG-key Path
: wq! #保存退出
6, use the Yum command to install the software automatically
Yum Clean all #清除yum缓存
Yum Makecache #缓存本地yum源中的软件包信息
Yum install httpd #安装apache
Chkconfig httpd on #设为开机启动
/ETC/INIT.D/HTTPD Start #启动apache
Vi/etc/sysconfig/iptables #配置防火墙, open port 80.
-A input-m state--state new-m tcp-p TCP--dport 80-j ACCEPT #允许80端口通过防火墙
: wq! #保存退出
/etc/init.d/iptables Restart #最后重启防火墙使配置生效
Open http://192.168.0.54/as shown in the following illustration:
Extended reading: Set host name to www
Hostname www #设置主机名为www
Vi/etc/sysconfig/network #编辑配置文件
Hostname=www #修改localhost. Localdomain for www
: wq! #保存退出
Vi/etc/hosts #编辑配置文件
127.0.0.1 www localhost #修改localhost. localdomain for www
: wq! #保存退出
Shutdown-r now #重启系统
at this point, the RHEL 6.5 system installation Diagram tutorial completes the original text from: osyunwei.com