当前位置: 首页 > 后端技术 > PHP

mongodb在window下安装测试

时间:2023-03-30 02:54:36 PHP

工具准备https://www.mongodb.com/download-center#下载社区服务器wgethttps://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.6.5-signed.msi#下载compass图形化管理工具wgethttps://downloads.mongodb.com/compass/beta/mongodb-compass-community-1.14.0-beta.2-win32-x64.exe?_ga=2.32424510.1600486838.1528162084-24234926.1528162084#这里解释一下为什么需要重新下载指南针。下面将说明如何在不勾选指南针的情况下安装社区服务器版本。接下来,安装指南针并启动mongodb以创建配置文件。dbdepot\mongodb\demo\log\mongod.logstorage:dbPath:D:\dbdepot\mongodb\demo注册服务mongod.exe--config"D:\dbdepot\mongodb\demo.cfg"--install--serviceName"mongodb_demo1"--serviceDisplayName"mongodb_demo1"startmongoservicenetstartmongodb_demo1netstopmongodb_demo1installphpextension#https://pecl.php.net/package/mongodb下载mongodb对应的dll文件php.iniextension=php_mongodb.dllwindowphp环境下apache或php-fpm