LMS知識社群各系上網率圖資處首頁登入
03. MongoDB
by 洪瑞展 2019-05-22 08:54:28, 回應(0), 人氣(483)
#設定mongodb-org.repo
vim /etc/yum.repos.d/mongodb-org.repo

#新增下列內容
[mongodb-org-4.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.0/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.0.asc

#安裝mongodb-org
yum install mongodb-org -y

#啟用與設定開起啟動mongodb
chkconfig --add mongod
systemctl daemon-reload
systemctl enable mongod.service
systemctl start mongod.service