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

Windows上架设Nginx及设定使用PHP

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

发表评论 共有 0 条评论)

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