ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
安装环境及配置yum #more /etc/redhat-release CentOS Linux release 7.2.1511 (Core) ```vi /etc/yum.repos.d/mongodb-org-3.2.repo ``` [mongodb-org-3.2] name=MongoDB Repository baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.2/x86_64/ gpgcheck=1 enabled=1 gpgkey=https://www.mongodb.org/static/pgp/server-3.2.asc 安装MongoDB yum -y install mongodb-org 验证安装结果 rpm -qa |grep mongodb 启动 /etc/init.d/mongod start --dbpath /home/mongodb/db --auth netstat -nltp|grep mongo 创建用户 mongo use admin db.createUser({user:"root",pwd:"123456",roles:["root"]}) //添加管理员 默认端口 27017