Coder Social home page Coder Social logo

tko_shell's Introduction

快速脚本

使用场景

  • 【举个例子】
  • 某天,某人,因某业务,有redis部署需求,需要批量部署一组redis服务,端口从8001到8009,
  • 简单,马上开始部署,编译redis,拷贝redis执行文件,配置文件,8001端口,启动,再拷贝redis执行文件,修改配置文件,8002…………
  • 半小时后部署好了,完成!
  • 有没有更好的方法,可以提高效率,快速完成呢?
  • 如果用脚本部署,只需要1分钟搞定,主要是编译redis时间,大大提高效率,快捷,快捷,快捷啊!
  • 第一步 编译redis
  • curl -s redis/install.sh | sh
  • 第二步 拷贝redis执行文件,修改配置文件,并启动
  • curl -s redis/redis_port.sh | sh -s install 8001 8009
  • 完成!
  • 批量关闭redis端口 8001到8009
  • curl -s redis/redis_port.sh | sh -s stop 8001 8009
  • 批量启动redis端口 8001到8009
  • curl -s redis/redis_port.sh | sh -s start 8001 8009
  • 快捷运维还有经常使用的脚本,方便使用,提高效率!

tko_shell's People

Watchers

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