11.10/11.11/11.12 安裝PHP5 11.13 安裝PHP7
去掉#
[root@lizhipenglinux01 ~]# /usr/local/apache2.4/bin/apachectl restart
httpd not running, trying to start
[root@lizhipenglinux01 ~]# /usr/local/apache2.4/bin/apachectl stop
[root@lizhipenglinux01 ~]# /usr/local/apache2.4/bin/apachectl start
刪除以後不通了
[root@lizhipenglinux01 ~]# /usr/local/apache2.4/bin/apachectl -t 檢查配置文件語法是否對
Syntax OK
[root@lizhipenglinux01 ~]# /usr/local/apache2.4/bin/apachectl graceful 重新加載配置文件,並不會重啟服務
[root@lizhipenglinux01 ~]# vim /usr/local/apache2.4/conf/extra/httpd-vhosts.conf
[root@lizhipenglinux01 ~]# /usr/local/apache2.4/bin/apachectl -t
Syntax OK
[root@lizhipenglinux01 ~]# /usr/local/apache2.4/bin/apachectl graceful
[root@lizhipenglinux01 ~]# curl -x192.168.5.128:80 abc.com
abc.com[root@lizhipenglinux01 ~]# curl -x192.168.5.128:80 www.abc.com
abc.com[root@lizhipenglinux01 ~]# curl -x192.168.5.128:80 www.abcd.com
abc.com[root@lizhipenglinux01 ~]# curl -x192.168.5.128:80 www.abcde.com
abc.com[root@lizhipenglinux01 ~]# curl -x192.168.5.128:80 www.example.com
111.com[root@lizhipenglinux01 ~]#
11.10/11.11/11.12 安裝PHP5 11.13 安裝PHP7