运行sudo service mongod start生成Failed to start mongod.service: Unit mongod.service is masked.
运行systemctl list-unit-files确实显示
mongod.service masked
mongodb.service enabled 运行sudo systemctl unmask mongod不会产生任何错误,但也不会更改任何内容。
我在file /lib/systemd/system/mongod.service检查了一个符号链接,但它是empty。
我还尝试删除mongod.service并重新创建它。
有没有人对还能尝试什么有什么建议?
发布于 2019-12-03 15:51:09
尝试运行systemctl enable mongod.service。也许能行。
https://askubuntu.com/questions/1193483
复制相似问题