#mysql 1、首先去mysql官网下载 http://www.mysql.com/downloads/ 选择最下面的Community (GPL) Downloads »社区版本,我的电脑是64位的,所以我下载了Windows (x86, 64-bit), ZIP Archive 2、把压缩文件解压到任意位置,我解压到了D:\mysql-5.7.16-winx64 3、path路径中追加;D:\mysql-5.7.16-winx64\bin 4、mysql根目录中把my-default.ini改名为my.ini,打开,在末尾增加 basedir = D:\mysql-5.7.16-winx64 datadir = D:\mysql-5.7.16-winx64\data early-plugin-load="" skip-grant-tables 5、将mysql安装为系统服务 mysqld -install ,启动mysql:net start mysql
#安装nginx
1、去官网下载nginx http://nginx.org/en/download.html,推荐稳定版
2、解压到任意目录,我解压到了D:\nginx-1.10.2
3、conf/nginx.conf 修改配置文件
location / {
root d:/www;
index index.html index.htm;
}
location ~ \.php$ {
root d:/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.exe启动服务
#安装php 1、http://www.php.net/downloads.php 下载的线程安全版本5.6 2、解压到任意位置,我解压到了D:\php-5.6.27,将php.ini-development改名为php.ini 3、修改php.ini cgi.fix_pathinfo=1, extension_dir = "D:/php-5.6.27/ext",打开mysql,mysqli的扩展 4、打开cgi监听端口 php-cgi.exe -b 127.0.0.1:9000-c D:\php-5.6.27\php.ini 5、重启nginx