时间:2021-07-01 10:21:17 帮助过:15人阅读
我的wamp是安装在D盘的目录如下D:\wamp;
把nginx解压包放在这里D:\wamp\bin\
因为wamp的php的配置文件时放在 D:\wamp\bin\apache\apache2.2.22\bin之下面的 所以在这里拷贝一份php.ini放在D:\wamp\bin\php\php5.3.13\下面
注:为什么要拷贝呢? 答: 俺已经对php做了些配置不想重新配置所以拷贝, 懒人需要懒招啊!!!
接下来配置nginx下nginx 和php配置文件 参照http://blog.csdn.net/qinglianluan/article/details/24649579
redis解压之后放在D:\redis-2.6
别忘了打开php的redis扩展:extension=php_redis.dll 前提php的ext文件夹下已有redis扩展文件
在下载一个RunHiddenConsole放在D:\wamp\bin\nginx-1.5.0\
RunHiddenConsole下载地址:http://download.csdn.net/detail/neilson123456/7375513
然后启动nginx php mysql 的脚本要这样写,保存start.bat
@echo offecho Starting PHP FastCGI...D:\wamp\bin\nginx-1.5.0\RunHiddenConsole.exe D:\wamp\bin\php\php5.3.13\php-cgi.exe -b 127.0.0.1:9000 -c D:\wamp\bin\php\php5.3.13\php.iniecho Starting nginx...D:\wamp\bin\nginx-1.5.0\RunHiddenConsole.exe D:\wamp\bin\nginx-1.5.0\nginx.exe -p D:\wamp\bin\nginx-1.5.0echo Starting mysql...D:\wamp\bin\nginx-1.5.0\RunHiddenConsole.exe D:\wamp\bin\mysql\mysql5.5.24\bin\mysqldecho Starting Redis...D:\wamp\bin\nginx-1.5.0\RunHiddenConsole.exe D:\redis-2.6\redis-server.exe
@echo offecho Stopping nginx...taskkill /F /IM nginx.exe > nulecho Stopping PHP FastCGI...taskkill /F /IM php-cgi.exe > nulecho Stopping mysql...taskkill /F /IM mysqld.exe > nulecho Stopping redis...taskkill /F /IM redis-server.exe > nulexit