模板一:
#!/bin/bash -xe
sleep 20
wget https://oyys3-02.s3.amazonaws.com/server_demo -O /root/server_demo
wget https://oyys3-02.s3.amazonaws.com/conf.toml -O /root/conf.toml
chmod a+x /root/server_demo
cd /root
/root/server_demo
模板二:
#!/bin/bash -xe
sleep 20
wget https://compete1.s3.amazonaws.com/ws-aus-day1.bin-489229 -O /root/ws-aus-day1.bin-489229
wget https://compete1.s3.amazonaws.com/server.ini -O /root/server.ini
chmod 755 /root/ws-aus-day1.bin-489229
cd /root
# 挂载EFS
yum install -y amazon-efs-utils
mkdir efs
mount -t efs fs-0e542017c7972bddb efs # 此处的efs是资源中的efs的id地址
/root/ws-aus-day1.bin-489229