GithubHelp home page GithubHelp logo

change-oracle-ip's Introduction

说明

脚本需在墙内机器运行,并且运行机器上必须配置好oci环境,自动检测指定区域所有公共ip的连通性,如果不通,则删除当前公共ip,并新建公共ip绑定至实例。


依赖jq

https://github.com/stedolan/jq

安装jq

wget http://stedolan.github.io/jq/download/linux64/jq -O /usr/local/bin/jq
chmod +x /usr/local/bin/jq

使用方法

下载脚本

wget https://raw.githubusercontent.com/angelsky11/change-oracle-ip/master/change-oracle-ip.sh

运行

chmod +x change-oracle-ip.sh
./change-oracle-ip.sh default

可添加定时任务每10分钟检测一次

运行crontab -e后添加下面一行:

*/10 * * * * /YOUR_PATH/change-oracle-ip.sh default

如果不想10分钟一次请自行搜索crontab用法

如果oci环境配置了多个config,可根据指定config运行脚本

./change-oracle-ip.sh /PATH/OF/YOUR/CONFIG_FIEL

server酱微信消息推送

https://sc.ftqq.com

修改以下两个参数

#server酱开关,0为关闭,1为开启
NOTIFICATION=0
#server酱api
SERVERCHAN_KEY='YOUR_SERVERCHAN_API'

如有使用问题请先搜索后发信息 https://t.me/angelsky11

change-oracle-ip's People

Contributors

angelsky11 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.