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

Windows上架设Nginx及设定使用PHP

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

发表评论 共有 0 条评论)

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