Skip to content

weiliang-ms/easyctl

Repository files navigation

Go Report Card GitHub go.mod Go version (subdirectory of monorepo) GitHub commit activity GitHub all releases codecov FOSSA Status

easyctl

easyctl是一款基于golang轻量级运维工具集,详情使用请移步使用文档

CHANGELOG

兼容性:

  • 全部功能兼容CentOS7
  • 部分功能兼容CentOS6

安装使用

编译安装最新版

Go 版本不得低于 v1.16

需要设置代理时,可参照 https://goproxy.cn/

git clone https://github.com/weiliang-ms/easyctl.git
cd easyctl
go build -ldflags "-w -s" -o /usr/local/bin/easyctl

关于 -ldflags "-w -s"

Mac 编译

Mac 下编译时会有如下提示:

$ go build
# github.com/containerd/cgroups
vendor/github.com/containerd/cgroups/memory.go:463:14: undefined: unix.Eventfd
vendor/github.com/containerd/cgroups/memory.go:463:30: undefined: unix.EFD_CLOEXEC
vendor/github.com/containerd/cgroups/utils.go:70:8: undefined: unix.CGROUP2_SUPER_MAGIC
vendor/github.com/containerd/cgroups/utils.go:77:18: undefined: unix.CGROUP2_SUPER_MAGIC

因为 Mac 下无法使用 containerd,可将 启动指令集 相关内容 注释,即可成功编译。

下载release版本

latest release

tar zxvf easyctl-v0.7.13-alpha-darwin-amd64.tar.gz
cp easyctl /usr/local/bin

系统偏好设置 => 安全性与隐私 => 通用 => 仍然允许

sudo tar zxvf easyctl-latest-linux-amd64.tar.gz
sudo cp easyctl /usr/local/bin

下载tag版本

迭代计划

v1功能列表

License

FOSSA Status