【问题标题】:how to continue a bash script after it reboots the machine from the command after the reboot command?如何在重新启动命令后从命令重新启动计算机后继续执行 bash 脚本?
【发布时间】:2015-11-19 17:37:36
【问题描述】:

我正在编写一个用于安装和设置 docker 并运行应用程序的 bash 脚本。该脚本需要重新启动系统,并且应该在重新启动后继续。我是 BASH 新手,请帮我解决这个问题。

谢谢。

【问题讨论】:

    标签: linux bash shell docker


    【解决方案1】:

    尝试将重启后需要执行的所有内容放在这里:

    /etc/rc.local
    

    【讨论】:

      猜你喜欢
      • 2018-06-11
      • 2019-12-19
      • 1970-01-01
      • 2018-04-26
      • 2022-06-28
      • 2021-10-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多