标签:win direct 复制 curl bsp extension 网站 clu 线程
1、下载需要的软件包
http://windows.php.net/download/
http://nginx.org/en/download.html
extension_dir = "D:/nmp/php54/ext" session.save_path = "D:/nmp/php54/tmp" extension=php_curl.dll extension=php_gd2.dll extension=php_mbstring.dll extension=php_mysql.dll extension=php_mysqli.dll extension=php_pdo_mysql.dll date.timezone = PRC enable_dl = On cgi.force_redirect = 0 cgi.fix_pathinfo=1 fastcgi.impersonate = 1 cgi.rfc2616_headers = 1
listen 80; server_name localhost; #设置编码 charset utf-8; location / { #设置网站根目录 root D:/wwwroot; #添加index.php index index.html index.htm index.php; }
location ~ \.php$ { #设置为网站根目录 root D:/wwwroot; #fastcgi监听的端口,与php的cgi启动时指定的要一致 fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; #$document_root就是指前面root所指的站点路径 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; }
> php-cgi.exe -b 127.0.0.1:9000 -c D:/nmp/php54/php.ini
> nginx.exe -p D:/nmp/nginx18
stop是快速停止nginx,可能并不保存相关信息
> nginx.exe -s stop
quit是完整有序的停止nginx,并保存相关信息
> nginx.exe -s quit
重新载入nginx
> nginx.exe -s reload
标签:win direct 复制 curl bsp extension 网站 clu 线程
原文地址:http://www.cnblogs.com/jkko123/p/6351707.html