nginx windows

  nginx on the window needed for the operation 1.17.3 above.

  nginx start:

    1: Go to the installation directory, double-click nginx.exe. There is a window flashed, this time a browser to access localhost: 80 nginx can see the welcome page.

      

 

    2: enter cmd. Execute the command: start nginx. The same can be run.

      

  nginx View status:

    FIGS above and browser can be verified.

  nginx other commands:

    nginx -s stop forcibly stopped.

    nginx -s quit more peaceful.

    nginx -s reload based on the updated configuration file, to stop the current peace process. Restart a new process.

    nginx -s reopen      re-opening log files.

  

  nginx important document.

    Log. nginx_root / logs

    Profile. Location: nginx_root / conf / nginx.conf

    nginx process file. Location: ngixn_root / logs / nginx.pid

  nginx process file.

    Very simple, PID only the current nginx process (process) is.

    As shown below, windows in type filename command to view the contents of the file. PID function is to mark the current id nginx process. Such as, nginx -s stop, nginx -s quit, nginx -s reload command will stop the current process. But if there is no PID, you do not know which process to stop. This is nginx.pid role. 

     Nginx each restart a process, it will delete ngin.pid file. After starting a new process, and then create the file.

 

    Here we performed nginx.pid file nginx -s quit logs folder. It has been deleted.

    However, the implementation tasklist / fi after "imagename eq ngixn.exe", you can still see the content output. I do not know why. I may be right before the start of nginx. Yes, before I installed the 1.12.x, after the start accessing localhost: 80 does not output. The new index.html file is not OK. Then a few commands on nginx unfamiliar, so we installed a new.

 

 

     

 

      

 

 

 

 

 

    

 

Guess you like

Origin www.cnblogs.com/JasonChen92/p/nginx.html