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.
userdata 脚本是在设置为在每次启动时运行的脚本之前还是之后运行的?有没有办法改变优先级?
运行 Userdata 脚本时/etc/init.d/cloud-init-user-scripts,启动和关闭优先级均为“99”,这意味着它是最后一次运行。没有办法改变它,除非用 init.d 脚本中指定的新优先级烧录一个新的 AMI。
/etc/init.d/cloud-init-user-scripts