Code Monkey home page Code Monkey logo

socks-proxy's Introduction

项目介绍

大家都知道香港虚拟机价格比较贵, 这个程序是使用阿里云提供的api创建按时收费实例,随用随开,用完即销,可以节省大量费用.

PHP要求

PHP 5.3+ (Mac已默认安装PHP, Ubuntu用户请使用apt安装php: apt install php)

安装说明

1.下载socks-proxy.phar并添加执行权限

socks-proxy.phar

chmod u+x ./socks-proxy.phar

2.配置阿里云key, secret 及 服务器默认ROOT密码

./socks-proxy config

3.创建虚拟机

#查看有哪些机器
./socks-proxy.phar list

#创建一台机器
./socks-proxy.phar create

#创建代理端口
./socks-proxy.phar listen

#关闭机器
./socks-proxy.phar stop

#销毁机器 一定要先关闭,销毁后阿里云不会收费
./socks-proxy.phar destroy

4.关于本地端口代理的配置

mac系统在 设置 网络 高级设置 代理 里配置socks代理, 代理地址是127.0.0.1, 端口是10000

或者在Chrome浏览器里装一个插件,SwitchyOmega, 同样是配置socks代理,仅供Chrome使用

Ubuntu或其它linux下类似

目前不支持Windows, windows下配置比较麻烦

5.不用了记住一定要先关闭,再销毁;下次用的时候再创建一个;不然阿里云会一直扣费的

socks-proxy's People

Contributors

brotherbigbao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

socks-proxy's Issues

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.