mongodb 在window下安装测试
工具准备
https://www.mongodb.com/download-center # 下载community server wget https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.6.5-signed.msi # 下载compass 图形化管理工具 wget https://downloads.mongodb.com/compass/beta/mongodb-compass-community-1.14.0-beta.2-win32-x64.exe?_ga=2.32424510.1600486838.1528162084-24234926.1528162084 # 这里解释下为什么要重新下载compass, 下面会说明
安装
安装community server版本
不要勾选compass,一路next
安装compass
一路next
启动mongodb
创建配置文件
systemLog: destination: file path: D:\dbdepot\mongodb\demo\log\mongod.log storage: dbPath: D:\dbdepot\mongodb\demo
注册服务
mongod.exe --config "D:\dbdepot\mongodb\demo.cfg" --install --serviceName "mongodb_demo1" --serviceDisplayName "mongodb_demo1"
启动mongo服务
net start mongodb_demo1 net stop mongodb_demo1
安装php扩展
# https://pecl.php.net/package/mongodb 下载mongodb 对应window下php环境的dll文件 php.ini extenstion = php_mongodb.dll 重启apache或php-fpm
相关推荐
lbyd0 2020-11-17
BigYellow 2020-11-16
sushuanglei 2020-11-12
我心似明月 2020-11-09
zhushenghan 2020-11-09
sunnnyduan 2020-10-16
不要皱眉 2020-10-14
xiaohai 2020-09-29
songxiugongwang 2020-09-22
萌亖 2020-09-17
LuckyLXG 2020-09-08
sdmzhu 2020-09-01
mkhhxxttxs 2020-09-16
xiaohai 2020-09-16
newcome 2020-09-09
jaylong 2020-08-19
大秦铁骑 2020-08-19
thatway 2020-08-19