夸克资源网_专注收集迅雷资源-夸克网盘资源|下载

Windows上架设Nginx及设定使用PHP

GQI夸克资源网_专注收集迅雷资源-夸克网盘资源|下载
感觉比Apache简单多,不过option设定太少安全性有待考量GQI夸克资源网_专注收集迅雷资源-夸克网盘资源|下载

PHP安装及设定好后GQI夸克资源网_专注收集迅雷资源-夸克网盘资源|下载

再继续安装Nginx http://www.nginx.com GQI夸克资源网_专注收集迅雷资源-夸克网盘资源|下载

这个网站有安装档可以直接安装https://kevinworthington.com/ nginx-for-windows/ GQI夸克资源网_专注收集迅雷资源-夸克网盘资源|下载

设定档参考https://www.nginx.com/resources/wiki/start/topics/examples/phpfastcgionwindows/GQI夸克资源网_专注收集迅雷资源-夸克网盘资源|下载

建立start-php-fcgi.bat GQI夸克资源网_专注收集迅雷资源-夸克网盘资源|下载

@ECHO OFF GQI夸克资源网_专注收集迅雷资源-夸克网盘资源|下载

ECHO Starting PHP FastCGI... GQI夸克资源网_专注收集迅雷资源-夸克网盘资源|下载

set PATH=C:PHP;%PATH% GQI夸克资源网_专注收集迅雷资源-夸克网盘资源|下载

c:inRunHiddenConsole.exe C:PHPphp-cgi.exe -b 127.0 .0.1:9000 GQI夸克资源网_专注收集迅雷资源-夸克网盘资源|下载

最重要是要去启动php-cgi.exe GQI夸克资源网_专注收集迅雷资源-夸克网盘资源|下载

其中RunHiddenConsole.exe去上面参考设定档下载,可随意放置(记得路径) GQI夸克资源网_专注收集迅雷资源-夸克网盘资源|下载

start-php-fcgi.bat加入开机启动GQI夸克资源网_专注收集迅雷资源-夸克网盘资源|下载

接着修改nginx.conf设定GQI夸克资源网_专注收集迅雷资源-夸克网盘资源|下载

主要修改这段,将注解拿掉GQI夸克资源网_专注收集迅雷资源-夸克网盘资源|下载

# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 GQI夸克资源网_专注收集迅雷资源-夸克网盘资源|下载

GQI夸克资源网_专注收集迅雷资源-夸克网盘资源|下载

location ~ .php$ { GQI夸克资源网_专注收集迅雷资源-夸克网盘资源|下载

root C:/PHP; GQI夸克资源网_专注收集迅雷资源-夸克网盘资源|下载

fastcgi_pass 127.0.0.1:9000; GQI夸克资源网_专注收集迅雷资源-夸克网盘资源|下载

fastcgi_index index.php; GQI夸克资源网_专注收集迅雷资源-夸克网盘资源|下载

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;GQI夸克资源网_专注收集迅雷资源-夸克网盘资源|下载

include fastcgi_params; GQI夸克资源网_专注收集迅雷资源-夸克网盘资源|下载

}GQI夸克资源网_专注收集迅雷资源-夸克网盘资源|下载

设定完成后启动nginx,开启浏览器测试127.0.0.1GQI夸克资源网_专注收集迅雷资源-夸克网盘资源|下载

版权声明:站内所有文章皆来自网络转载,只供模板演示使用,并无任何其它意义!

发表评论 共有 0 条评论)

联系客服
网站客服 业务合作 Q交流群
123456789
公众号
公众号
公众号
返回顶部