1. cd e:\Nginx
    2. cd nginx-1.16.1
    3. start nginx
    4. tasklist /fi "imagename eq nginx.exe" //查看进程
    5. nginx -t -c ./conf/nginx.conf //检查配置文件
    6. nginx -s reload //重启服务
    7. nginx -s stop //快速停止
    8. nginx -s quit //完整有序的停止
    9. server {
    10. listen 80;
    11. server_name tf.local.msshuo.cn;
    12. #server_name kf.local.msshuo.cn;
    13. #charset koi8-r;
    14. #access_log logs/host.access.log main;
    15. location / {
    16. root E:\\mly\\ad_dist;
    17. #root E:\mly\kf_dist;
    18. index index.html index.htm;
    19. }
    20. #error_page 404 /404.html;
    21. # redirect server error pages to the static page /50x.html
    22. #
    23. error_page 500 502 503 504 /50x.html;
    24. location = /50x.html {
    25. root html;
    26. }