Coder Social home page Coder Social logo

centos-shell's Introduction

centos-shell

CentOS常用Shell
注意:如无特殊标识,默认运行环境为CentOS 7+,默认下载到/root/centos-shell(为便于配置,请勿更改此目录)

获取方法

curl https://raw.githubusercontent.com/easonjim/centos-shell/master/init.sh | bash

使用前需要设置脚本可执行权限(非必须)

chmod +x xxx.sh

快速使用脚本(使用之前必须新建好文件夹)

# 实时下载安装(子)
bash /root/centos-shell/customer-install-shell/install-centos7.sh
bash /root/centos-shell/customer-install-shell/install-runtime-centos7.sh

# 远程同步安装(父到子)
bash /root/centos-shell/customer-install-shell/rsync-install-centos7.sh 192.168.5.10(IP) 22(PORT)
# 创建免密登录
bash /root/centos-shell/ssh/no-passwd-login.sh root 192.168.5.10 22
# 或已经有了秘钥要之后
bash /root/centos-shell/ssh/no-passwd-login-for-copy.sh root 192.168.5.10 22
# 同步环境
bash /root/centos-shell/customer-install-shell/rsync-install-runtime-centos7.sh 192.168.5.10 22

# 远程同步安装(子)
bash /root/centos-shell/customer-install-shell/rsync-runtime-centos7-from-server.sh 192.168.5.1 22

Shell开发规范

采用Google的Shell代码风格:
https://google.github.io/styleguide/shell.xml

开发计划说明

V1.0
在1.0版本中虽然强制分了模块,但每个脚本都写的很冗余,并且重复项目太多,每个文件都区分了系统,其实这样非常不利于后期维护。
V2.0
计划重新开发2.0版本,严格采用Google的开发规范重写每个模块。计划增加如下:
1、增加全局配置项。
2、每个文件内判断系统版本。
3、每个脚本上增加无人应答模式以及选择项提供智能选择。
4、增加全局记忆配置功能,配合自定义选择配置项进行执行。
5、增加选择配置项生成自定义脚本。
6、增加jenkins结合调用。
7、增加一键部署功能,与jenkins无缝对接。
8、增加ansible的远程功能(重点)
V3.0
计划增加Web界面配置,采用Python开发Web,实现一键部署
1、增加Web界面配置,快速一键安装环境
2、增加相关软件的配置界面,比如nginx等
3、增加批量环境部署,以前在jenkins做的实现搬到了此界面,输入一个ip自动初始化,甚至可以实现批量初始化集群环境。

如果也有兴趣实现以上计划,非常期待你的加入

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.