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.
当特定 VZ 容器启动(和/或停止)时,是否有任何方法可以在主机上执行控制台命令?类似于在/etc/network/interfaces其中您可以指定 onup和 ondown命令的地方。
/etc/network/interfaces
up
down
是的,您可以在您的 VPS 上设置 cron 来启动网络服务。您必须在您的 VPS 上设置 cron @reboot。