时间:2021-07-01 10:21:17 帮助过:3人阅读
Mariadb安装文档
- <code class="language-shell">vim /etc/yum.repos.d/mongodb.repo
- [MongoDB]
- name=MongoDB
- baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.4/x86_64/
- enabled=1
- gpgcheck=0
- yum install mongodb-org -y
- systemctl start mongod.service
- mongo --port 27017 #通过命令行登录mongo,建立用户。
- > use admin
- > db.createUser({user: ‘admin‘, pwd: ‘admin123‘,roles:[{role:‘root‘,db:‘admin‘}]})
- Successfully added user: {
- "user" : "admin",
- "roles" : [
- {
- "role" : "root",
- "db" : "admin"
- }
- ]
- }
- vim /etc/mongod.conf
- net:
- port: 27017
- bindIp: 0.0.0.0 # 修改,配置远程连接ip
- security: #添加
- authorization: enabled #添加权限认证配置
- systemctl restart mongod.service</code>
可视化管理工具下载地址
安装文档
安装数据库
标签:enable ODB com -o lease hub role mysq bin