vps交流

为了避免这种事情再次发生


为了避免这种事情再次发生

为了避免这种事情再次发生

  1. function run(){
  2.     oci compute instance launch
  3.         –availability-domain CvdW:AP-SINGAPORE-1-AD-1
  4.         –image-id ocid1.image.oc1.ap-singapore-1.aaaaaaaa3vsfhyvqje5yyn2vrr52tfnm5j2xovxyl2uojexvead5mesrh7ba
  5.         –subnet-id ocid1.subnet.oc1.ap-singapore-1.aaaaaaaagrqldyaws457ncv77lbeoychmjzych7q6kethyfinfpjx6nwlqda
  6.         –shape VM.Standard.A1.Flex
  7.         –assign-public-ip true
  8.         –metadata ‘{"ssh_authorized_keys": "ssh-XXXXXXXXXXXXXXXXXXXXXXXXXXXX"}’
  9.         –compartment-id ocid1.tenancy.oc1..aaaaaaaaea6qoimvuytkec25r4omjk4fl72pzcampzf3cbynil4w6b3ldb4q
  10.         –shape-config ‘{"ocpus":2,"memory_in_gbs":12}’
  11.         –display-name arm
  12. }
  13. file="~/oci.ok"
  14. if [[ ! -f $file ]] || [[ `cat $file` != "ok" ]];then
  15.     echo "开刷"
  16.     run
  17.     if [[ $? -eq 0 ]];then
  18.         echo "ok" > $file
  19.     fi
  20. else
  21.     echo "已经刷到了"
  22. fi

复制代码

涝的涝死
新加坡随便刷?一下能开这么多
在后台做个限制就好了
这是撒系统