首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >sudo systemctl mongod重启终止mongod,不再重启

sudo systemctl mongod重启终止mongod,不再重启
EN

Stack Overflow用户
提问于 2017-11-28 08:08:23
回答 0查看 949关注 0票数 0

我使用these instructions在我的ubuntu16.04机器上安装了mongodb,但有一点不同:我用sudo systemctl mongod start运行mongodb进程,从我所读到的来看,它在ubuntu16.04上运行得更好。我摆弄了一下,创建了一个用户,添加了

security: authentication: 'enabled'

编辑:

security: authorization: 'enabled'

/edit

(使用2个空格、4个空格和一个制表符迭代)到/etc/mongod.conf,然后使用以下命令重新启动

sudo systemctl mongod restart

但是现在和netstat -tupln确认一下,mongod没有运行。我也尝试用sudo systemctl mongod start重新启动,但也不起作用。任何指导都将不胜感激。

EN

回答

页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47521898

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档