Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 8 台服务器连接到一个集群。在其中一台服务器上,我有 DirectAdmin 来控制所有配置(通过 NFS 安装的配置文件)。一切正常,除了在配置更新后重新启动服务。如何在所有 8 台服务器上强制重启服务?
要在您的服务器上重新启动服务,您需要登录它,我建议您在其中一台服务器上创建 bash 脚本并执行它,您可以设置 SSH 密钥以将您的另一台服务器从您的一台服务器登录到其他服务器,以便您的 bash 脚本将能够在所有其他服务器上重新启动您的服务。