add mongodb service to centos boot start

文章来自我的博客:https://www.lwxshow.com/db/mongo/add-mongodb-service-to-centos-boot-start.html

添加mongodb服务到centos6.3开机启动项中

vi /etc/rc.local

/usr/local/mongodb/bin/mongod --dbpath=/usr/local/mongodb/data/ --logpath=/usr/local/mongodb/dblogs/mongo.log --fork


你可能感兴趣的:(mongodb,系统服务,lwxshow,舍得Share,大家学分享站)