欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

rhel6.3如何使用yum安裝Apache

  發(fā)布時(shí)間:2014-12-25 11:27:58   作者:佚名   我要評(píng)論
rhel是Red Hat公司的Linux系統(tǒng),下面小編要給大家介紹的是rhel6.3如何使用yum安裝Apache,感興趣的朋友可以看看

  rhel是Red Hat公司的Linux系統(tǒng),而yum則是在其系統(tǒng)下的shell前端軟件包管理器,下面小編要給大家介紹的是rhel6.3如何使用yum安裝Apache,一起來學(xué)習(xí)下吧。

  1、安裝httpd軟件包:

  Yum install httpd

  2、啟動(dòng)apache服務(wù):

 ?。踨oot@redhat Desktop]# /etc/init.d/httpd start

  Starting httpd: [ OK ]

  3、安裝mod-ssl軟件包

 ?。踨oot@redhat Desktop]# yum install mod_ssl –y

  4、創(chuàng)建一個(gè)/date/www/html的目錄、并且修改安全上下文:

  Chcon –t httpd_sys_content_t /date/ -R(l臨時(shí)修改都行)

  5、在/date/www/html下添加一個(gè)apache可執(zhí)行的文件:

  6、在/var/www/html下添加一個(gè)可執(zhí)行的文件

  7、配置Apache的配置文件:(注意打開80端口)

 如何在rhel6.3上安裝配置Apache

  8、配置ssl的配置文件:(注意添加 加密那2行)

 如何在rhel6.3上安裝配置Apache 

  9、重啟apache服務(wù):

 ?。踨oot@redhat conf.d]# /etc/init.d/httpd restart

  Stopping httpd: [ OK ]

  Starting httpd: [ OK ]

  [root@redhat conf.d]#

  10、配置域名解析:/etc/hosts

  apache.example.com 192.168.0.1

  redhat.example.com 192.168.0.1

  11測(cè)試是否成功:

 如何在rhel6.3上安裝配置Apache
 

 如何在rhel6.3上安裝配置Apache

  上面就是rhel6.3使用yum安裝Apache的方法介紹了,本文介紹的只是rhel6.3版本的安裝步驟,其他版本的可以做個(gè)參考,不一定能夠安裝成功。

相關(guān)文章

最新評(píng)論