我已经用这个程序安装了monogodb: Mongodb on Debian
服务mongod正在运行。
$ service mongod status
mongod.service - High-performance, schema-free document-oriented database
Loaded: loaded (/lib/systemd/system/mongod.service; disabled)
Active: active (running) since Fri 2016-11-04 09:29:04 CET; 1 weeks 5 days ago
Main PID: 957 (mongod)
CGroup: /system.slice/mongod.service
└─957 /usr/bin/mongod --quiet --config /etc/mongod.conf
Nov 04 09:29:04 serv01 systemd[1]: Started High-performance, schema-free document-oriented database.
我没有找到此实例的init脚本:
$ service --status-all | grep mon
[ + ] smartmontools
和whereis mongod
:
mongod: /usr/bin/mongod /etc/mongod.conf /usr/share/man/man1/mongod.1.gz
mongod init脚本存储在哪里?