36 Star 106 Fork 36

mylxsw / remote-tail

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
example.toml 811 Bytes
一键复制 编辑 原始数据 按行查看 历史
管宜尧 提交于 2017-11-08 15:40 . bugfix #10
# 全局配置,所有的servers中tail_file配置的默认值
tail_file="/data/logs/laravel.log"
# 是否是静默模式
# 静默模式启动时不会输出welcome消息
slient=false
# 服务器配置,可以配置多个
# 如果不提供password,则使用当前用户的ssh公钥(private_key_path=/home/mylxsw/.ssh/id_rsa),建议采用该方式,使用密码方式不安全
# server_name, hostname, user 配置为必选,其它可选
[servers]
[servers.1]
server_name="测试服务器1"
hostname="test1.server.aicode.cc"
user="root"
tail_file="/var/log/messages"
port=22
[servers.2]
server_name="测试服务器2"
hostname="test2.server.aicode.cc"
user="root"
tail_file="/var/log/messages-not-exist"
[servers.3]
server_name="测试服务器3"
hostname="test2.server.aicode.cc"
user="demo"
password="123456"
Go
1
https://gitee.com/orionis/remote-tail.git
git@gitee.com:orionis/remote-tail.git
orionis
remote-tail
remote-tail
master

搜索帮助