https://blog.csdn.net/zjiang1994/article/details/72876193
https://blog.csdn.net/bruce_wang_janet/article/details/8104495
https://blog.csdn.net/zjiang1994/article/details/72878374
https://blog.csdn.net/liuensong/article/details/15338951
https://www.cnblogs.com/Li-Cheng/p/4399149.html
nginx直接官网下载 不分64、32位的,下载后就能用
http://nginx.org/en/download.html
注意配置document_root,否则php-cgi启动不起来
# 配置FastCGI,PHP 脚本请求全部转发到 FastCGI处理
location ~ \.php$ { root html; # 设置监听端口 fastcgi_pass 127.0.0.1:9000; # 设置nginx的默认首页文件(上面已经设置过了,可以删除) fastcgi_index index.php; proxy_read_timeout 150; # 设置脚本文件请求的路径 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; # 引入fastcgi的配置文件 include fastcgi_params; }运行nginx:
D:/www/nginx-0.7.61>start nginx.exe
运行php_cgi:
D:/www/php>php-cgi -b 9000 -q
测试是否安装成功 :localhost:81/phpinfo.php
然后弄批处理文件
https://blog.csdn.net/johnnycode/article/details/40148171
php的运行原理、cgi对比fastcgi以及php-cgi和php-fpm之间的联系区别
mod-php,mod-fastcgi,php-fpm 三种模式
http://www.360doc.com/content/16/0611/13/12146850_566738546.shtml
https://blog.csdn.net/belen_xue/article/details/65950658
http://www.360doc.com/userhome/12146850
Linux安装配置php-fpm来搭建Nginx+PHP的生产环境
https://www.jb51.net/article/77486.htm
查看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"
Windows下Nginx的启动、停止等命令
在Windows下使用Nginx,我们需要掌握一些基本的操作命令,比如:启动、停止Nginx服务,重新载入Nginx等,下面我就进行一些简单的介绍。1、启动:C:\server\nginx-1.0.2>start nginx或C:\server\nginx-1.0.2>nginx.exe2、停止:C:\server\nginx-1.0.2>nginx.exe -s stop或C:\server\nginx-1.0.2>nginx.exe -s quit注:stop是快速停止nginx,可能并不保存相关信息;quit是完整有序的停止nginx,并保存相关信息。3、重新载入Nginx:C:\server\nginx-1.0.2>nginx.exe -s reload当配置信息修改,需要重新载入这些配置时使用此命令。 4、重新打开日志文件:C:\server\nginx-1.0.2>nginx.exe -s reopen5、查看Nginx版本:f:
cd wnmp/nginx1.15.2
C:\server\nginx-1.0.2>nginx -v
C:\nginx-1.15.2>tasklist /fi "imagename eq nginx.exe"Image Name PID Session Name Session# Mem Usage=============== ======== ============== ========== ============nginx.exe 652 Console 0 2 780 Knginx.exe 1332 Console 0 3 112 K
nginx -s stop | fast shutdown |
nginx -s quit | graceful shutdown |
nginx -s reload | changing configuration, starting new worker processes with a new configuration, graceful shutdown of old worker processes |
nginx -s reopen | re-opening log files |
2. 查看当前端口号的应用程序
tasklist | findstr “9372”
3. 杀掉当前程序
方式一:taskkill /f /t /im adb.exe
方式二:进程管理器-》进程-》当前进程-》结束
windows 使用 xxfpm 解决 php-cgi 进程自动关闭
https://www.cnblogs.com/grimm/p/9070502.html