亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

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

  發(fā)布時間:2014-04-29 15:54:35   作者:佚名   我要評論
這篇文章主要介紹了rhel6.3使用yum安裝apache的方法,需要的朋友可以參考下

1、安裝httpd軟件包:

Yum install httpd

2、啟動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)建一個/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服務(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測試是否成功:

相關(guān)文章

最新評論