RH413企业安全加固 第1章 RH413环境搭建

1RH413环境搭建

 

一、环境部署

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


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

随行之旅

python国产化自动化

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值