Git Product home page Git Product logo

ip_rotation_tool's Introduction

run

expecting conf.yaml in the same directory

port: 8080
endpoint: "/some/endpoint"
ips:
  - 99.84.140.147
  - 143.204.79.125
  - 54.240.188.143
  - 143.204.127.42
  - 13.35.51.41
  - 13.35.55.41
  - 99.84.58.138

quick deploy

#!/usr/bin/env bash
GOOS=linux GOARCH=amd64 go build -o ip_rotation_tool
scp ip_rotation_tool conf.yaml <server>:ip_rotation_tool

supervisord

  1. install supervisord
sudo apt-get update
sudo apt-get install -y supervisor 
sudo service supervisor start
  1. add config
sudo vim /etc/supervisor/conf.d/ip_rotation_tool.conf

with content

[program:ip_rotation_tool]
directory=/root/home
command=/root/home/ip_rotation_tool
autostart=true
autorestart=true
stderr_logfile=/var/log/api.err
stdout_logfile=/var/log/api.log
  1. restart supervisor
sudo supervisorctl reload
  1. check the process status:
sudo supervisorctl status

ip_rotation_tool's People

Contributors

romanesko avatar

Stargazers

Sergei Bykovskiy avatar

Watchers

 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.