我的 systemctl 服务显示已禁用。我希望我的服务在重启后自行启动。
service mongoport status
● mongoport.service - MongoDB Database Server
Loaded: loaded (/lib/systemd/system/mongoport.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: https://docs.mongodb.org/manual
我尝试启用该服务但出现此错误,在启用该服务之前我是否遗漏了什么。
systemctl enable mongoport.service
Synchronizing state of mongoport.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable mongoport
update-rc.d: error: mongoport Default-Start contains no runlevels, aborting.