ASP源码.NET源码PHP源码JSP源码JAVA源码DELPHI源码PB源码VC源码VB源码Android源码

win+Nginx+php+mysql 环境配置(2/3)

来源:网络整理     时间:2016-01-09     关键词:

本篇文章主要介绍了"win+Nginx+php+mysql 环境配置",主要涉及到方面的内容,对于PHPjrs看球网直播吧_低调看直播体育app软件下载_低调看体育直播感兴趣的同学可以参考一下: 1.准备工作  (1)PHP 版本5.6.17 下载地址 PHP官网  (2)Nginx 版本1.8.0 下载地址 Nginx官网  (3)MySQL 版...

    再往下,找到

    # pass the PHP scripts to FastCGI serverlistening on 127.0.0.1:9000
    #
    #location ~ \.php$ {
    #    root           html;
    #    fastcgi_pass   127.0.0.1:9000;
    #    fastcgi_index  index.php;
    #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
    #    include        fastcgi_params;
    #}

    先将前面的“#”去掉,同样将root  html;改为root   D:/wnmp/www;。再把标记为红色的/scripts改为“$document_root”,这里的    “$document_root”就是指前面“root”所指的站点路径,这是改完后的:

    # pass the PHP scripts to FastCGI serverlistening on 127.0.0.1:9000
    #
    location ~ \.php$ {
          root           D:/wnmp/www;
          fastcgi_pass   127.0.0.1:9000;
          fastcgi_index  index.php;
          fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
          include        fastcgi_params;
    }

  保存配置文件,就可以了。

  nginx+php的环境就初步配置好了,来跑跑看。我们可以输入命令

相关图片

相关文章