[root@ngiam-01 ~]# systemctl stop mongod.service Warning: mongod.service changed on disk. Run 'systemctl daemon-reload' to reload units.
时间: 2024-03-28 17:42:28 浏览: 126
这个警告是因为mongod.service的文件被修改了,但systemd没有重新加载它。您可以通过运行以下命令来重新加载systemd配置文件并重启mongod服务:
```
sudo systemctl daemon-reload
sudo systemctl restart mongod
```
这将重新加载mongod.service文件,并重新启动mongod服务。
相关问题
服务启动报错:Jun 13 16:34:51 ngiam-02 mongod[24156]: ERROR: child process failed, exited with error ...r 1 Jun 13 16:34:51 ngiam-02 mongod[24156]: To see additional information in this output, s...on. Jun 13 16:34:51 ngiam-02 systemd[1]: mongod.service: control process exited, code=exite...s=1 Jun 13 16:34:51 ngiam-02 systemd[1]: Failed to start MongoDB Database Server. Jun 13 16:34:51 ngiam-02 systemd[1]: Unit mongod.service entered failed state. Jun 13 16:34:51 ngiam-02 systemd[1]: mongod.service failed.
这个错误提示是 MongoDB 数据库服务启动失败了。可能是由于一些配置问题,或者是由于其他进程占用了 MongoDB 的端口。你可以尝试查看 MongoDB 的日志文件,看是否有更具体的错误信息,或者查看系统日志文件,看是否有其他进程占用了 MongoDB 的端口。同时,你也可以检查 MongoDB 的配置文件,确保配置正确。
TASK [jingantech.nexus.nexus : Extract ../accessory/nexus-3.37.3-02-unix-centos7.tar.gz to /opt/offline] *************************** An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option fatal: [ngiam-02]: FAILED! => {"changed": false, "msg": "Could not find or access '../accessory/nexus-3.37.3-02-unix-centos7.tar.gz'\nSearched in:\n\t/home/taapp/deploy-ngiam/collections/ansible_collections/jingantech/nexus/roles/nexus/files/../accessory/nexus-3.37.3-02-unix-centos7.tar.gz\n\t/home/taapp/deploy-ngiam/collections/ansible_collections/jingantech/nexus/roles/nexus/../accessory/nexus-3.37.3-02-unix-centos7.tar.gz\n\t/home/taapp/deploy-ngiam/collections/ansible_collections/jingantech/nexus/roles/nexus/tasks/files/../accessory/nexus-3.37.3-02-unix-centos7.tar.gz\n\t/home/taapp/deploy-ngiam/collections/ansible_collections/jingantech/nexus/roles/nexus/tasks/../accessory/nexus-3.37.3-02-unix-centos7.tar.gz\n\t/home/taapp/deploy-ngiam/playbooks/files/../accessory/nexus-3.37.3-02-unix-centos7.tar.gz\n\t/home/taapp/deploy-ngiam/playbooks/../accessory/nexus-3.37.3-02-unix-centos7.tar.gz on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option"}
这是一个 Ansible 的错误信息,看起来是在执行 jingantech.nexus.nexus 这个角色时出现的问题。具体错误是:无法找到或访问 '../accessory/nexus-3.37.3-02-unix-centos7.tar.gz' 文件。这个错误提示了在多个路径下搜索了这个文件但都没有找到,如果你在使用一个模块并期望文件存在于远程主机上,可以考虑使用 remote_src 选项。
阅读全文