多应用+插件架构,代码干净,支持一键云编译,码云点赞13K star,4.8-4.12 预售价格198元 广告
## 1 mongdb.dll下载 (1). 打开phpinfo 查看 nts(非线程) 还是 ts (线程),然后查看操作位数 注: 86 等于 32 位 ,和你的windows系统64 or 32位无关。比如我的: ![](https://img.kancloud.cn/a6/1b/a61ba05157bcd7c7f8d2670bc3cd80c0_936x506.png) (2). [链接](https://pecl.php.net/package/mongodb/1.2.9/windows)选择对应版本 ![](https://img.kancloud.cn/48/52/48522bb7e8970e38a01ae824dfd21f95_940x622.png) (3). 把文件解压出来 php\_mongodb.dll 文件复制到php安装目录下的 ext 目录下(我的是: F:\\phpStudy\\php\\php-7.0.12-nts\\ext) 打开php.ini 配置文件增加行 : extension=php_mongodb.dll (4).重启,再打开phpinfo() 查看是否有mongodb扩展,出现下图则安装成功 ![](https://img.kancloud.cn/c4/cc/c4cc497373713dfb9dd24d01322706e6_535x300.png) ## 2 配置并启动 (1).配置环境变量到安装目录的bin下 ![](https://img.kancloud.cn/cc/9f/cc9fc95d227719724be04c0ed4a03844_718x92.png) ![](https://img.kancloud.cn/9c/3a/9c3aa75916b922787e680284fae23e90_481x341.png) (2).启动服务 mongod.exe ![](https://img.kancloud.cn/7d/7c/7d7c4e639da75205dded48b21bd52240_1287x681.png)![](https://img.kancloud.cn/7d/7c/7d7c4e639da75205dded48b21bd52240_1287x681.png) (3).启动客户端 mongo.exe ![](https://img.kancloud.cn/93/90/93909a3a2538ae8831440fb9b81af4b5_625x158.png) (4).开启php扩展 ![](https://img.kancloud.cn/b0/12/b01240bb09472aa4b5572bace44018d5_151x1166.png)