搭建proxy-admin面板
安装面板
shell
#国内:
bash -c "$(curl -s -L https://mirrors.goproxyauth.com/https://github.com/snail007/proxy_admin_free/blob/master/install_auto.sh)"
#国外:
bash -c "$(curl -s -L https://github.com/snail007/proxy_admin_free/raw/master/install_auto.sh)"
安装完成后打印:
shell
>>> install done, thanks for using snail007/proxy-admin
>>> install path /usr/local/bin/proxy-admin
>>> configuration path /etc/gpa
>>> uninstall just exec : /usr/local/bin/proxy-admin uninstall && rm /etc/gpa
>>> please visit : http://YOUR_IP:32080/ username: root, password: 123
>>> How to using? Please visit : https://snail.gitee.io/proxy/manual/zh/
- 尝试访问 http//:your_ip:32080 无法打开则尝试定义安全组与关闭防火墙(注意: 各个系统的防火墙命令不同)
Linux/centos下防火墙操作
systemctl stop firewalld
// 关闭
systemctl disable firewalld.service
// 开机禁用
systemctl status firewalld
// 查看
参考:https://www.cnblogs.com/marso/archive/2018/01/06/8214927.html
配置面板自定义端口
vim /etc/gpa/app.toml
js
[http]
listen=":8080" // 面板端口地址
[log]
path="logs"
debug=false
stdprint=true
routeprint=false
error=true
access=false
重启proxyadmin:systemctl restart proxyadmin
查看proxyadmin:systemctl status proxyadmin
访问:http://yourip:port
默认用户:root
默认密码:123
卸载
/usr/local/bin/proxy-admin uninstall