美文网首页我爱编程
linux安装mongodb

linux安装mongodb

作者: yuanyb | 来源:发表于2017-11-06 18:43 被阅读0次

1.下载mongodb
https://www.mongodb.com/download-center/enterprise/releases

2.安装
yum install net-snmp
yum install cyrus-sasl
yum install cyrus-sasl-plain
yum install cyrus-sasl-gssapi
rpm -ivh mongodb-enterprise-server-3.4.10-1.el7.x86_64.rpm

3.启动
mkdir -p /usr/local/mongodb/data/db
mkdir -p /usr/local/mongodb/logs
vi /sys/kernel/mm/transparent_hugepage/enabled

nohup mongod --dbpath /usr/local/mongodb/data/db -logpath=/usr/local/mongodb/logs/mongodb.log &

相关文章

网友评论

    本文标题:linux安装mongodb

    本文链接:https://www.haomeiwen.com/subject/bdzlmxtx.html