nginx 基本命令:
查看Nginx的版本号:nginx -V
启动Nginx:start nginx
快速停止或关闭Nginx:nginx -s stop
正常停止或关闭Nginx:nginx -s quit
配置文件修改重装载命令:nginx -s reload
查看windows任务管理器下Nginx的进程命令:tasklist /fi "imagename eq nginx.exe"
1、下载nginx自然不必说了,自己百度吧
2、解压下载文件,cmd命令寻找nginx安装文件,执行start nginx
3、localhost
4、安装php(nginx配置启动php,以cgi运行php)
nginx配置文件是conf文件夹里的nginx.conf
查找文件字符
location /{
root html;
index index.html index.htm;
}
修改为:
location /{
root D:/wnmp/nginx-1.5.8/html; #网站根目录
index index.html index.htm inde.php; #添加index.php的默认页。
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000#
#location ~\.php$ {
# root html; # fastcgi_pass 127