主頁(yè) > 知識(shí)庫(kù) > rhel6.3使用yum安裝apache的方法

rhel6.3使用yum安裝apache的方法

熱門標(biāo)簽:美團(tuán) 服務(wù)器配置 硅谷的囚徒呼叫中心 外呼系統(tǒng) 家政服務(wù)網(wǎng)絡(luò) 百度競(jìng)價(jià)點(diǎn)擊價(jià)格的計(jì)算公式 解決方案 電話機(jī)器人搭建

1、安裝httpd軟件包:

Yum install httpd

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

[root@redhat Desktop]# /etc/init.d/httpd start

Starting httpd:                                            [  OK  ]

3、安裝mod-ssl軟件包

[root@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的配置文件:(注意打開(kāi)80端口)

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

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

[root@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è)試是否成功:

標(biāo)簽:撫州 臨沂 北海 南昌 烏蘭察布 韶關(guān) 邢臺(tái) 防城港

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《rhel6.3使用yum安裝apache的方法》,本文關(guān)鍵詞  ;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問(wèn)題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。
  • 相關(guān)文章
  • 收縮
    • 微信客服
    • 微信二維碼
    • 電話咨詢

    • 400-1100-266