# tRouter **Repository Path**: copen/tRouter ## Basic Information - **Project Name**: tRouter - **Description**: Golang编写的命令行运维工具 - **Primary Language**: Go - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2019-12-12 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # tRouter > 使用Go语言编写的运维工具, 未来将会支持跳板机到多个服务器的管理功能, > 以及多个数据库信息的查看 ## 配置文件 > 服务器配置文件 ```json { "server_conf" : [ { "ip" : "127.0.0.1", "user" : "corvo", "pwd": "***", "pwd_exe": "./run.sh", "pwd_parm": "" } ] } ``` > 数据库配置文件 ```yaml DB_ALL: - host: x.x.x.x user: user pwd: pwd port: 3306 db: db_name msg: | 这里是数据库描述文件 ``` ## 配置文件选型 * Why not `JSON` : - `json`中的注释是一件不太方便的事情 - 使用漂亮的`json`势必要占用很多空行, 在数据量较大时, 空行会显著增加, 不利于阅读 * `YAML`: - 文件毕竟是给运维人员阅读以及修改的, `yaml`可以轻易的做到注释 - `yaml`文件结构紧凑, 空行的比例十分的低