ServerManagerSystem一个基于Golang开源的RPC远程调度框架
Warning: getimagesize(): open_basedir restriction in effect. File(/etc/pki/tls/certs/ca-bundle.crt) is not within the allowed path(s): (/www/wwwroot/rinvay.cc/:/tmp/) in /www/wwwroot/rinvay.cc/usr/plugins/AMP/Action.php on line 520
Warning: failed loading cafile stream: `/etc/pki/tls/certs/ca-bundle.crt' in /www/wwwroot/rinvay.cc/usr/plugins/AMP/Action.php on line 520
Warning: getimagesize(): Failed to enable crypto in /www/wwwroot/rinvay.cc/usr/plugins/AMP/Action.php on line 520
Warning: getimagesize(https://i.lioil.cc/o0o/2021/07/16/cb05fdb0a62eab34.png): failed to open stream: operation failed in /www/wwwroot/rinvay.cc/usr/plugins/AMP/Action.php on line 520
Warning: getimagesize(): open_basedir restriction in effect. File(/etc/pki/tls/certs/ca-bundle.crt) is not within the allowed path(s): (/www/wwwroot/rinvay.cc/:/tmp/) in /www/wwwroot/rinvay.cc/usr/plugins/AMP/Action.php on line 520
Warning: failed loading cafile stream: `/etc/pki/tls/certs/ca-bundle.crt' in /www/wwwroot/rinvay.cc/usr/plugins/AMP/Action.php on line 520
Warning: getimagesize(): Failed to enable crypto in /www/wwwroot/rinvay.cc/usr/plugins/AMP/Action.php on line 520
Warning: getimagesize(https://i.lioil.cc/o0o/2021/07/16/44a0afb55adcce97.png): failed to open stream: operation failed in /www/wwwroot/rinvay.cc/usr/plugins/AMP/Action.php on line 520
Warning: getimagesize(): open_basedir restriction in effect. File(/etc/pki/tls/certs/ca-bundle.crt) is not within the allowed path(s): (/www/wwwroot/rinvay.cc/:/tmp/) in /www/wwwroot/rinvay.cc/usr/plugins/AMP/Action.php on line 520
Warning: failed loading cafile stream: `/etc/pki/tls/certs/ca-bundle.crt' in /www/wwwroot/rinvay.cc/usr/plugins/AMP/Action.php on line 520
Warning: getimagesize(): Failed to enable crypto in /www/wwwroot/rinvay.cc/usr/plugins/AMP/Action.php on line 520
Warning: getimagesize(https://i.lioil.cc/o0o/2021/07/16/03e8c5f739f7037e.png): failed to open stream: operation failed in /www/wwwroot/rinvay.cc/usr/plugins/AMP/Action.php on line 520
ServerManagerSystem
一个基于Golang开发的远程服务管理系统,使用RPC远程调度,管理服务器进程保持、数据库远程调度等
说明
- RPC部分基于Hprose的RPC框架实现
- 本人第一次开源Golang项目,处于学习和探索阶段,尚有很多不完善
本项目主要功能是:
- 实现客户端简单配置自动RPC链接
- 实现客户端FRP NPS简单远程配置即可自动上线
- 实现远程shell/sftp的管理
- 实现远程和本地的进程保持
- 实现远程的SQL调度
- 简单的防火墙开关
- 基于VUE的管理页面
- 默认用户名:admin 密码:123456
使用说明
以debian10为例安装golang
wget https://golang.org/dl/go1.16.6.linux-amd64.tar.gz sudo tar -C /usr/local -xzf go1.16.6.linux-amd64.tar.gz echo 'export PATH=$PATH:/usr/local/go/bin'>> 〜/ .profile source ~/.profile go version
编译并使用本程序
git clone https://github.com/uouuou/ServerManagerSystem.git sh build.sh cp -r ./web ./output cd output chemo -R 755 ServerManagerSystem_linux_amd64_upx ./ServerManagerSystem_linux_amd64_upx install service serverManagerSystem_server start journalctl -u serverManagerSystem_server.service -f
# 客户端模式下 ./ServerManagerSystem_linux_amd64_upx -m client install service serverManagerSystem_client start journalctl -u serverManagerSystem_client.service -f # 卸载程序 ./ServerManagerSystem_linux_amd64_upx -m client uninstall
配置文件解析:
# 服务器端: # setting: port :服务端运行端口 runDir :程序运行路径 redType :xftp读取为了将的后缀名 rpcPort :客户端登录的RPC通信端口 auth :客户端与服务端的通信密钥 # sql: dbType :数据库类型目前支持mysql和sqllite 默认使用sqllite如果需要mysql请在后方配置 dbName: "" DbUser: "" DbPass: "" DbHost: "" DbPort: 0 # 客户端: port: 客户端运行端口 runDir : 客户端运行位置 server : 服务端地址例如 tcp://127.0.0.1:8001 userid : 客户端唯一识别码 自动生成 先运行client客户端生成uuid以后再配置文件 serverHttp : 服务端http地址 例如 http://127.0.0.1:8000 auth : 客户端与服务端的通信密钥 两端保持一致