Skip to content

DistPub/lightops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lightops

轻量级的devops框架

install

export PATH=/path/to/lighops/bin:$PATH添加到你的rc file,再source /path/to/your/rc_file使PATH生效

example:

  1. 如果你的shell为/bin/bash,则rc file$HOME/.bash_profile
  2. 如果你的shell为/bin/zsh,则rc file$HOME/.oh-my-zsh/oh-my-zsh.sh

core commands

  1. scp_to_server

    拷贝文件到服务器

  2. scp_and_execute

    拷贝文件到服务器并执行文件

  3. ssh_and_execute

    在服务器上执行命令

demo

请参考bootstrap_server文件夹下的脚本

Releases

No releases published

Packages

 
 
 

Languages