在阿里云上安的 CentOs7, mongodb 版本 2.4.9
CentOs7
2.4.9
安装在了 /usr/local/mongodb/ 下
/usr/local/mongodb/
手动启动是没有问题的
在/etc/rc.d/rc.local中添加了
/etc/rc.d/rc.local
/usr/local/mongodb/bin/mongod --dbpath=/usr/local/mongodb/db --logpath=/usr/local/mongodb/logs/mongodb.log
难道跟IP有关系吗?
我记得这样设置没有问题啊,求解
Just done it yesterday, probably sudo service mongo xxx, please check the official documentation
Just done it yesterday, probably sudo service mongo xxx, please check the official documentation