ec2-userdata.sh 317 B

12345678910
  1. #!/bin/bash
  2. sleep 5
  3. wget -O /root/server_demo http://onlyellow.cstor.cn/q1/server_demo
  4. wget -O /root/conf.toml http://onlyellow.cstor.cn/q1/conf.toml
  5. chmod +x /root/server_demo
  6. yum install -y amazon-efs-utils
  7. mkdir -p /mnt/v1
  8. sudo mount -t efs -o tls fs-56c463b3:/ /mnt/v1
  9. /root/server_demo /root/conf.toml