📜  ec2 用户数据 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:13.882000             🧑  作者: Mango

代码示例2
#!/bin/bash
yum install -y httpd
chkconfig httpd on
curl http://169.254.169.254/latest/meta-data/instance-id > /var/www/html/index.html
service httpd start