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.
我有一个需要启动的服务列表,但它们是初创公司是相互依赖的。意思是,只有在第一个服务启动后,才会发生第二个服务启动。简而言之,需要维持秩序。
RHEL 7 中有没有办法实现这一点?
使用 systemd 单元及其Wants和After指令。有关详细信息,请参阅在 Unix 和 Linux 上配置 systemd 服务的顺序。
Wants
After
有关语法和其他一般信息的说明,另请参阅创建和修改 Systemd 单元文件。