linux安装mongodb
2017-11-06 本文已影响0人
yuanyb
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 &