标签:style blog class code java color
只需将启动的命令写入/etc/rc.
local
如让mongodb开机自启动:
echo "/usr/local/mongodb/bin/mongod --dbpath=/usr/local/mongodb/data/db --logpath=/usr/local/mongodb/logs/mongodb.log --fork" >> /etc/rc.local
Linux将进程写入开机自启动,布布扣,bubuko.com
标签:style blog class code java color
原文地址:http://www.cnblogs.com/zrp2013/p/3714985.html