I want to change Apache2.2 to Nginx for a few days. Today I will try it. Found a stable version: 1.4.1 http://nginx.org/download/nginx-1.4.1.zip
The configuration is very simple, that is, it is troublesome to manage nginx and php-cgi processes.
However, it is very easy to click bat. Paste your two bat files for managing nginx and php-cgi.
1. Start_nginx_php-cgi.bat
The code is as follows: |
Copy code |
@ Echo off Echo Starting PHP FastCGI... RunHiddenConsole E:/AppServ/php5/php-cgi.exe-B 127.0.0.1: 9000-c E:/AppServ/php5/php. ini Echo Starting nginx... Start "" E:/AppServ/nginx/nginx.exe Exit |
2. Stop_nginx_php-cgi.bat
The code is as follows: |
Copy code |
@ Echo off Echo Stopping nginx... Tskill nginx Echo Stopping PHP FastCGI... Tskill php-cgi Exit |
Note: These two batchfiles are stored in the same directory as nginx.exe. however, nginx.exe cannot find its configuration file. You can also specify nginx. conf at the moment, but this is too troublesome. Please lose the directory location. Besides, the shortcut in win is still well established, and the entire quick link is OK.