[root@192 conf]# vi nginx.conf [root@192 conf]# vi nginx.conf [root@192 conf]# cd ../sbin/ [root@192 sbin]# ./nginx nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] still could not bind() [root@192 sbin]# ^C [root@192 sbin]# ./nginx -s reload [root@192 sbin]# curl -i http://192.168.154.132:80/ordertmall HTTP/1.1 200 OK Server: openresty/1.15.8.1 Date: Fri, 28 Feb 2020 10:22:19 GMT Content-Type: application/octet-stream Transfer-Encoding: chunked Connection: keep-alive 302 [root@192 sbin]# cd ../sbin/ [root@192 sbin]# cd ../logs/ [root@192 logs]# vi access.log [root@192 logs]# vi access.log [root@192 logs]# cd ../ [root@192 nginx]# cd conf/ [root@192 conf]# vi nginx.conf [root@192 conf]# cd ../sbin/ [root@192 sbin]# ./nginx -t nginx: the configuration file /opt/mbgw/nginx/conf/nginx.conf syntax is ok nginx: configuration file /opt/mbgw/nginx/conf/nginx.conf test is successful [root@192 sbin]# ./nginx -s reload [root@192 sbin]# curl -i http://192.168.154.132:80/ordertmall HTTP/1.1 200 OK Server: openresty/1.15.8.1 Date: Fri, 28 Feb 2020 10:30:01 GMT Content-Type: application/octet-stream Transfer-Encoding: chunked Connection: keep-alive 302 [root@192 sbin]# cd ../conf/ [root@192 conf]# vi nginx.conf [root@192 conf]# cd ../sbin [root@192 sbin]# ./nginx -t nginx: the configuration file /opt/mbgw/nginx/conf/nginx.conf syntax is ok nginx: configuration file /opt/mbgw/nginx/conf/nginx.conf test is successful [root@192 sbin]# ./nginx -s reload [root@192 sbin]# curl -i http://192.168.154.132:80/ordertmall HTTP/1.1 200 OK Server: openresty/1.15.8.1 Date: Fri, 28 Feb 2020 10:32:27 GMT Content-Type: application/octet-stream Transfer-Encoding: chunked Connection: keep-alive 302 [root@192 sbin]# cd ../logs/ [root@192 logs]# vi access.log [root@192 logs]#