08-12-周三_14-20-35
This commit is contained in:
+2
-2
@@ -314,7 +314,7 @@ nginx: configuration file /etc/nginx/nginx.conf test is successful
|
||||
# 测试验证
|
||||
[root@localhost ~]# curl 172.16.175.129:8001
|
||||
Hello PC Website!
|
||||
[root@localhost ~]# curl -H 'Hostname: p.test.com' 172.16.175.129
|
||||
[root@localhost ~]# curl -H 'Hostname: m.test.com' 172.16.175.129
|
||||
Hello Moblie Website!
|
||||
[root@localhost ~]# curl 172.16.175.129:8003
|
||||
curl: (7) Failed to connect to 172.16.175.129 port 8003: Connection refused
|
||||
@@ -658,7 +658,7 @@ server {
|
||||
# 重新编译nginx,以前的配置文件不会丢失
|
||||
[root@localhost ~]# cd /usr/local/src
|
||||
[root@localhost src]# wget https://github.com/openresty/echo-nginx-module/archive/refs/heads/master.zip
|
||||
[root@localhost src]# unzip echo-nginx-module-master.zip
|
||||
|
||||
[root@localhost src]# mv echo-nginx-module-master echo-nginx-module
|
||||
[root@localhost src]# cd nginx-1.22.0
|
||||
[root@localhost nginx-1.22.0]# ./configure --prefix=/apps/nginx \
|
||||
|
||||
Reference in New Issue
Block a user