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

Windows上架设Nginx及设定使用PHP

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

发表评论 共有 0 条评论)

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