|
@@ -1,16 +1,10 @@
|
|
|
#!/bin/bash
|
|
#!/bin/bash
|
|
|
sleep 5
|
|
sleep 5
|
|
|
-#wget -O /root/server http://a.xclouds.cloud/all/html/q1/server_demo
|
|
|
|
|
-#wget -O /root/conf.toml http://a.xclouds.cloud/all/html/q1/conf.toml1
|
|
|
|
|
-
|
|
|
|
|
-#chmod +x /root/server
|
|
|
|
|
mkdir -p /mnt/v1
|
|
mkdir -p /mnt/v1
|
|
|
yum install -y amazon-efs-utils
|
|
yum install -y amazon-efs-utils
|
|
|
|
|
|
|
|
sudo mount -t efs -o tls fs-24bc1bc1:/ /mnt/v1
|
|
sudo mount -t efs -o tls fs-24bc1bc1:/ /mnt/v1
|
|
|
-
|
|
|
|
|
aws configure set default.region cn-northwest-1
|
|
aws configure set default.region cn-northwest-1
|
|
|
-
|
|
|
|
|
yum install -y awslogs
|
|
yum install -y awslogs
|
|
|
cat > /etc/awslogs/awscli.conf <<EOA
|
|
cat > /etc/awslogs/awscli.conf <<EOA
|
|
|
[plugins]
|
|
[plugins]
|
|
@@ -35,4 +29,4 @@ EOB
|
|
|
|
|
|
|
|
source /mnt/v1/reboot.sh &
|
|
source /mnt/v1/reboot.sh &
|
|
|
systemctl restart awslogsd
|
|
systemctl restart awslogsd
|
|
|
-/root/server /root/conf.toml
|
|
|
|
|
|
|
+/mnt/v1/server /mnt/v1/conf.toml
|