GithubHelp home page GithubHelp logo

deepspiderxxxx / alispot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rockswang/alispot

0.0 1.0 0.0 5 KB

自动创建阿里云抢占式实例,并启用网络加速

License: MIT License

Shell 57.85% JavaScript 42.15%

alispot's Introduction

概述

自动创建阿里云抢占式实例,启用GoogleBBR网络加速,然后自动安装启动SSR服务器。
使用speedtest.net实测速度,可以跑满带宽上限。
注意,本人仅在Windows10 x64上测试过,其它平台未测试。

前提

  • 在阿里云有个账号
  • 充值120块钱,账户余额必须在100以上才能创建抢占式实例,剩下20只要不经常看视频应该够用很久
  • 在阿里云控制台"访问控制"里面,添加一个RAM用户
  • 给该RAM用户添加AliyunECSFullAccess和AliyunVPCFullAccess权限
  • 给该RAM用户创建一个AccessKey,然后把AccessKey ID和AccessKey Secret记住。注意:Secret只会显示一次,一定马上复制保存好!!
  • node.js,我只在node12上测试过,但估计node8以上都应该没问题
  • 本脚本不包含SSR客户端,请自行安装,推荐C#版本

安装

  • 把项目克隆到本地
  • 执行 npm install

配置

  • 修改config.json
  • 把前面保存的AccessKeyID和AccessKeySecret填入RAM配置段
  • 填入服务器地域ID,推荐新加坡ap-southeast-1,速度快还便宜
  • 推荐设置一个自动释放时间,否则1小时后可能会被自动回收
  • 根据你使用的SSR客户端的配置信息,修改ssr_server配置段

启动

  • 执行 npm start 然后等待即可
  • 命令是按照windows配置的,linux/mac上没测过,可以试试: node index.js | ./node_modules/.bin/bunyan bunyan是日志过滤工具,不用也可以
  • 整个脚本运行大概需要3 ~ 5分钟,最后会打印出SSR连接信息,照此修改客户端配置即可,通常就是改个IP
  • 下一步会增加个本地端口转发,这样连IP都不用改了,设成localhost即可

alispot's People

Contributors

rockswang avatar

Watchers

James Cloos 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.