系統之家 - 系統光盤下載網站!

當前位置:系統之家 > 系統教程 > rhel6.3上安裝Apache

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

時間:2014-12-24 16:30:16 作者:qipeng 來源:系統之家 1. 掃描二維碼隨時看資訊 2. 請使用手機瀏覽器訪問: https://m.xitongzhijia.net/xtjc/20141224/33349.html 手機查看 評論

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

  1、安裝httpd軟件包:

  Yum install httpd

  2、啟動apache服務:

 。踨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)建一個/date/www/html的目錄、并且修改安全上下文:

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

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

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

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

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

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

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

  9、重啟apache服務:

 。踨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測試是否成功:

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

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

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

發(fā)表評論

0

沒有更多評論了

評論就這些咯,讓大家也知道你的獨特見解

立即評論

以上留言僅代表用戶個人觀點,不代表系統之家立場

其他版本軟件

熱門教程

人氣教程排行

Linux系統推薦

官方交流群 軟件收錄