main
- 新增 SERVICE_NAME=frpc2,安装到 /root/data/docker_data/frpc2,
可与现有 frpc(Docker 或 systemd)同时运行而不冲突
- systemd 服务文件及所有 systemctl/journalctl 调用统一使用 ${SERVICE_NAME}
- 启动前提示编辑 frpc.toml,并提醒代理名、远程端口不能与其它实例重复
- 安装时使用 systemctl restart,确保修改后的配置生效
- 卸载时若仍存在其它 frpc*.service,则保留共享的 frp 用户
- 优先用 setfacl 为 frp 用户授予目录访问权限,失败时回退到 chmod 755
- 修复 set -e 导致菜单意外退出:systemctl/cat 调用加保护,
取消卸载后返回菜单,查看日志时 Ctrl+C 只结束日志而不退出脚本
vps脚本
- v2raya.sh
bash <(curl -fsSL https://gitea.tohub.top/Share/script/raw/branch/main/v2raya.sh)
- vps_init.sh
bash <(curl -fsSL https://gitea.tohub.top/Share/script/raw/branch/main/vps_init.sh)
- frpc.sh
bash <(curl -fsSL https://gitea.tohub.top/Share/script/raw/branch/main/frpc.sh)
- xray-manager.sh
bash <(curl -fsSL https://gitea.tohub.top/Share/script/raw/branch/main/xray-manager.sh)
- ss2022-manager.sh
bash <(curl -fsSL https://gitea.tohub.top/Share/script/raw/branch/main/ss2022-manager.sh)
- ddns-go.sh
bash <(curl -fsSL https://gitea.tohub.top/Share/script/raw/branch/main/ddns-go.sh)
Languages
Shell
100%