Redis、MongoDB在Windows下的安装和启动
MongoDb的安装和使用1.下载地址:https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.2.21-sign
MongoDb 的安装和使用
1. 下载地址:https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.2.21-signed.msi
2. 安装解压后特别要注意两个文件:
mongo.exe:客户端程序
mongod.exe:服务端程序
3. 在 bin 的同级目录创建 data/log和 data/db 两个文件夹分别用来存放日志和数据库
4. 创建配置文件:
systemLog:
destination: file
path: D:\developer\env\MongoDB\data\log\mongod.log
storage:
dbPath: D:\developer\env\MongoDB\data\db
5. 安装为服务:(需要使用管理员权限)
D:\developer\env\MongoDB\bin\mongod.exe --config "D:\developer\env\MongoDB\mongod.cfg" --install
6. 服务相关命令
启动服务:net start MongoDB
关闭服务:net stop MongoDB
移除服务:D:\developer\env\MongoDB\bin\mongod.exe --remove
Redis
1. 下载安装包:https://github.com/tporadowski/redis/releases
2. 安装为服务
redis-server --service-install redis.windows.conf
3. 服务相关命令:
net start redis
net stop redis
参考链接
http://www.macrozheng.com/#/architect/mall_arch_03?id=redis%e7%9a%84%e5%ae%89%e8%a3%85%e5%92%8c%e5%90%af%e5%8a%a8
http://www.macrozheng.com/#/architect/mall_arch_08?id=mongodb
相关文章
- okhttp、okhttp3使用post方式发送form-data数据
- JAVA字符串逗号分隔并对每个字符串添加引号
- [Docker系列] Install BaoTa with Docker
- [信创系列]银河麒麟安装nodejs18和npm2,并启动对应工程
- EasyExcel导出Excel并合并单元格
- Python3安装pip及pip安装whl包
- [Ubuntu系列]Ubuntu 安装 Harbor
- [Ubuntu系列]Ubuntu 安装 docker 及修改 docker 存储位置
- [Centos系列]CentOS 修改 DNS
- [Centos系列]source /etc/profile 无法永久生效问题
发表评论
评论列表
- 这篇文章还没有收到评论,赶紧来抢沙发吧~