From ebae61057f46b816daaa9c343837501f1239e3d3 Mon Sep 17 00:00:00 2001 From: lqs <441785369@qq.com> Date: Mon, 22 Sep 2025 12:00:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20frpc.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frpc.sh | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/frpc.sh b/frpc.sh index 62ac58c..812660c 100644 --- a/frpc.sh +++ b/frpc.sh @@ -1,20 +1,3 @@ -/etc/systemd/system/ - +sudo mv ./frpc.service /etc/systemd/system/ sudo systemctl daemon-reload - -sudo systemctl enable --now frpc - - -[Unit] -Description=FRP Client Service -After=network.target syslog.target -Wants=network.target -[Service] -Type=simple -User=root -WorkingDirectory=/usr/local/frp -ExecStart=/usr/local/frp/frpc -c /usr/local/frp/frpc.toml -Restart=on-failure -RestartSec=5 -[Install] -WantedBy=multi-user.target \ No newline at end of file +sudo systemctl enable frpc.service \ No newline at end of file