第1章RH413环境搭建
一、环境部署
1、RHEL6.4 SERVER IP:10.10.10.221
2、RHEL6.4 CLIENT IP:10.10.10.223
步骤
1、RHEL6.4 SERVER创建YUM源
1)安装httpd服务
[root@teachers Packages]# rpm -ivh httpd-2.2.15-26.el6.x86_64.rpm
warning: httpd-2.2.15-26.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ########################################### [100%]
package httpd-2.2.15-26.el6.x86_64 is already installed
2)将相关rpm包拷贝到相应的路径
路径为:/var/www/html 下
[root@teachers Packages]# ll /var/www/html/
total 2955312
drwxr-xr-x. 12 root root 4096 Jan 16 13:53 iso
drwxr-xr-x. 3 root root 4096 Jan 16 13:46 rh413
3)配置httpd.conf文件
Listen 10.10.10.221:80
ServerName teachers.example.com:80
DocumentRoot "/var/www/html"
设置以上三行
4)重启 httpd 服务
[root@teachers Packages]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
5)配置YUM源文件
[root@teachers Packages]# cat /etc/yum.repos.d/aa.repo
[aa]
name=base
baseurl=http://10.10.10.221/iso
enabled=1
gpgcheck=0
[bb]
name=bb
baseurl=http://10.10.10.221/rh413/pub/rhel6/Errata
enabled=1
gpgcheck=0
[cc]
name=cc
baseurl=http://10.10.10.221/rh413/pub/rhel6/Kernel-Extras
enabled=1
gpgcheck=0
[dd]
name=dd
baseurl=http://10.10.10.221/rh413/pub/rhel6/Optional
enabled=1
gpgcheck=0
6)RHEL 6.4 测试YUM源 (IP:10.10.10.223)
[root@student yum.repos.d]# yum updateinfo
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Updates Information Summary: available
36 Security notice(s)
9 Critical Security notice(s)
11 Important Security notice(s)
16 Moderate Security notice(s)
22 Bugfix notice(s)
3 Enhancement notice(s)
updateinfo summary done
[root@student yum.repos.d]# yum updateinfo list
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
RHBA-2013:0659 bugfix autofs-1:5.0.5-74.el6_4.x86_64
RHSA-2013:0550 Moderate/Sec. bind-libs-32:9.8.2-0.17.rc1.el6.3.x86_64
RHSA-2013:0689 Important/Sec. bind-libs-32:9.8.2-0.17.rc1.el6_4.4.x86_64
RHSA-2013:0550 Moderate/Sec. bind-utils-32:9.8.2-0.17.rc1.el6.3.x86_64
RHSA-2013:0689 Important/Sec. bind-utils-32:9.8.2-0.17.rc1.el6_4.4.x86_64
RHSA-2013:0668 Moderate/Sec. boost-filesystem-1.41.0-15.el6_4.x86_64
RHBA-2013:0692 bugfix boost-filesystem-1.41.0-17.el6_4.x86_64
RHSA-2013:0668 Moderate/Sec. boost-system-1.41.0-15.el6_4.x86_64
RHBA-2013:0692 bugfix boost-system-1.41.0-17.el6_4.x86_64
RHBA-2013:0703 bugfix coreutils-8.4-19.el6_4.1.x86_64
RHBA-2013:0703 bugfix coreutils-libs-8.4-19.el6_4.1.x86_64
RHSA-2013:0580 Moderate/Sec. cups-1:1.4.2-50.el6_4.4.x86_64
RHSA-2013:0580 Moderate/Sec. cups-libs-1:1.4.2-50.el6_4.4.x86_64