rhel6.3使用yum安裝apache的方法
1、安裝httpd軟件包:
Yum install httpd
2、啟動apache服務:
[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)建一個/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端口)

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

9、重啟apache服務:
[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測試是否成功:


版權聲明:本站文章來源標注為YINGSOO的內(nèi)容版權均為本站所有,歡迎引用、轉載,請保持原文完整并注明來源及原文鏈接。禁止復制或仿造本網(wǎng)站,禁止在非maisonbaluchon.cn所屬的服務器上建立鏡像,否則將依法追究法律責任。本站部分內(nèi)容來源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來,僅供學習參考,不代表本站立場,如有內(nèi)容涉嫌侵權,請聯(lián)系alex-e#qq.com處理。
關注官方微信