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

Windows上架设Nginx及设定使用PHP

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

发表评论 共有 0 条评论)

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