1. ダウンロード:
http://nginx.org/download/nginx-1.8.0.zip
2. 次の場所に解凍します:
D:/nginx-1.8.0
3.
cd nginx start nginx
127.0.0.1 にアクセスするだけです。
nginx -s stop // 停止nginx nginx -s reload // 重新加载配置文件 ,只能在运行时执行 nginx -s quit // 退出nginx
location / { root D:/html; index index.html index.htm inde.php; }
5. PHP サポートをセットアップします
location ~ \.php$ { root D:/html; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; }