lua.txt 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. [root@192 conf]# vi nginx.conf
  2. [root@192 conf]# vi nginx.conf
  3. [root@192 conf]# cd ../sbin/
  4. [root@192 sbin]# ./nginx
  5. nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
  6. nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
  7. nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
  8. nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
  9. nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
  10. nginx: [emerg] still could not bind()
  11. [root@192 sbin]# ^C
  12. [root@192 sbin]# ./nginx -s reload
  13. [root@192 sbin]# curl -i http://192.168.154.132:80/ordertmall
  14. HTTP/1.1 200 OK
  15. Server: openresty/1.15.8.1
  16. Date: Fri, 28 Feb 2020 10:22:19 GMT
  17. Content-Type: application/octet-stream
  18. Transfer-Encoding: chunked
  19. Connection: keep-alive
  20. 302
  21. [root@192 sbin]# cd ../sbin/
  22. [root@192 sbin]# cd ../logs/
  23. [root@192 logs]# vi access.log
  24. [root@192 logs]# vi access.log
  25. [root@192 logs]# cd ../
  26. [root@192 nginx]# cd conf/
  27. [root@192 conf]# vi nginx.conf
  28. [root@192 conf]# cd ../sbin/
  29. [root@192 sbin]# ./nginx -t
  30. nginx: the configuration file /opt/mbgw/nginx/conf/nginx.conf syntax is ok
  31. nginx: configuration file /opt/mbgw/nginx/conf/nginx.conf test is successful
  32. [root@192 sbin]# ./nginx -s reload
  33. [root@192 sbin]# curl -i http://192.168.154.132:80/ordertmall
  34. HTTP/1.1 200 OK
  35. Server: openresty/1.15.8.1
  36. Date: Fri, 28 Feb 2020 10:30:01 GMT
  37. Content-Type: application/octet-stream
  38. Transfer-Encoding: chunked
  39. Connection: keep-alive
  40. 302
  41. [root@192 sbin]# cd ../conf/
  42. [root@192 conf]# vi nginx.conf
  43. [root@192 conf]# cd ../sbin
  44. [root@192 sbin]# ./nginx -t
  45. nginx: the configuration file /opt/mbgw/nginx/conf/nginx.conf syntax is ok
  46. nginx: configuration file /opt/mbgw/nginx/conf/nginx.conf test is successful
  47. [root@192 sbin]# ./nginx -s reload
  48. [root@192 sbin]# curl -i http://192.168.154.132:80/ordertmall
  49. HTTP/1.1 200 OK
  50. Server: openresty/1.15.8.1
  51. Date: Fri, 28 Feb 2020 10:32:27 GMT
  52. Content-Type: application/octet-stream
  53. Transfer-Encoding: chunked
  54. Connection: keep-alive
  55. 302
  56. [root@192 sbin]# cd ../logs/
  57. [root@192 logs]# vi access.log
  58. [root@192 logs]#