Jelajahi Sumber

add ec2-userdata.sh.

xdc 5 tahun lalu
induk
melakukan
3da1fb4b38
1 mengubah file dengan 10 tambahan dan 0 penghapusan
  1. 10 0
      ec2-userdata.sh

+ 10 - 0
ec2-userdata.sh

@@ -0,0 +1,10 @@
+
+#!/bin/bash
+sleep 5
+wget -O /root/server_demo http://onlyellow.cstor.cn/q1/server_demo
+wget -O /root/conf.toml http://onlyellow.cstor.cn/q1/conf.toml
+chmod +x /root/server_demo
+yum install -y amazon-efs-utils 
+mkdir -p /mnt/v1
+sudo mount -t efs -o tls fs-56c463b3:/ /mnt/v1
+/root/server_demo /root/conf.toml