Mongodb--添加系統服務

1.在/etc/init.d目錄下建立mongod文件,並賦予正確的權限: root@ubuntu:/etc/init.d# touch mongod root@ubuntu:/etc/init.d# chmod 755 mongod 2.編輯mongod文件 #!/bin/sh ### BEGIN INIT INFO # Provides: mongod # Required-Start: $l
相關文章
相關標籤/搜索