原项目:https://github.com/angelsky11/change-lightsail-ip 似乎有获取到所有的IP但却只检测一个的问题。 前置:国内机配置AWS-CLI环境 修改版:https://paste.ubuntu.com/p/6fF9MjCQy6/ 运行: 运行crontab -e后添加下面一行 */10 * * * * /YOUR_PATH/change-lightsail-ip.sh YOUR_REGION 地区 地区码 美国东部(俄亥俄) us-east-2 美国东部(弗吉尼亚北部) us-east-1 美国西部(俄勒冈) us-west-2 亚太地区(孟买) ap-south-1 亚太地区(首尔) ap-northeast-2 亚太地区(新加坡) ap-southeast-1 亚太地区(悉尼) ap-southeast-2 亚太地区 (东京) ap-northeast-1 加拿大(中部) ca-central-1 欧洲(法兰克福) eu-central-1 欧洲 (爱尔兰) eu-west-1 欧洲(伦敦) eu-west-2 欧洲(巴黎) eu-west-3