linux运维 - Centos7 安装Mongodb3.2.6 启动异常
天蓬老师
天蓬老师 2017-05-02 09:18:46
0
0
526

在CentOs7x64下,安装mongodb3.2.6版本,无法启动成功。

报以下错误

# systemctl status mongod.service ● mongod.service - Mongodb Loaded: loaded (/usr/lib/systemd/system/mongod.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since 六 2016-05-21 18:39:18 CST; 27s ago Process: 3813 ExecStart=/bin/su - mongodb -c /www/server/mongodb/bin/mongod --config /www/server/mongodb/mongodb.conf (code=exited, status=1/FAILURE) Process: 3812 ExecStartPre=/bin/rm -rf /www/data/mongodb/mongod.lock (code=exited, status=0/SUCCESS) Main PID: 3510 (code=exited, status=1/FAILURE) systemd[1]: Starting Mongodb... su[3813]: (to mongodb) root on none systemd[1]: mongod.service: control process exited, code=exited status=1 systemd[1]: Failed to start Mongodb. systemd[1]: Unit mongod.service entered failed state. systemd[1]: mongod.service failed. ------------------------------- # vi /etc/systemd/system/multi-user.target.wants/mongod.service [Unit] Description=Mongodb After=network.target remote-fs.target nss-lookup.target [Service] Type=forking PIDFile=/www/server/mongodb/mongodb.pid ExecStartPre=/bin/rm -rf /www/data/mongodb/mongod.lock ExecStart=/bin/su - mongodb -c "/www/server/mongodb/bin/mongod --config /www/server/mongodb/mongodb.conf" ExecStop=/bin/kill -2 $MAINPID KillMode=process KillSignal=SIGQUIT TimeoutStopSec=5 PrivateTmp=true [Install] WantedBy=multi-user.target
天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

répondre à tous (0)
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!