Oracle甲骨文OCI自动刷ARM VPS脚本
安装Terraform 从Terraform官网找到对应CPU架构的版本 X86_X64如下 wget https://releases.hashicorp.com/terraform/0.15.4/terraform_0.15.4_linux_amd64.zip unzip terraform_0.15.4_linux_amd64.zip mv terraform /usr/bin ARM64如下 wget https://releases.hashicorp.com/terraform/1.0.9/terraform_1.0.9_linux_arm64.zip unzip terraform_1.0.9_linux_arm64.zip mv terraform /usr/bin 查看版本 terraform version 安装oci-cli工具 安装,一路回车即可,默认安装在/root/bin目录 bash -c "$(curl –L https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.sh)" 当出现===> Modify profile to update your $PATH and enable shell/tab completion now? (Y/n):这个时候,是在提示你输入Y回车,会自动帮你添加环境变量。之后又是一路回车。出现如下提示表示安装成功。 ===> Modify profile to update your $PATH and enable shell/tab completion now? (Y/n): y ===> Enter a path to an rc file to update (file will be created if it does not exist) (leave blank to use '/root/.bashrc'): -- Backed up '/root/.bashrc' to '/root/.bashrc.backup' -- Tab completion set up complete. -- If tab completion is not activated, verify that '/root/.bashrc' is sourced by your shell. -- -- ** Run `exec -l $SHELL` to restart your shell. ** -- -- Installation successful. -- Run the CLI with /root/bin/oci --help 把/root/bin/oci路径移动到/usr/bin目录下 ...