发布时间: 2020-7-29 文章作者: myluzh 分类名称: NOTE 朗读文章
@echo off if "%1"=="h" goto begin start mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)&&exit :begin :loop ping -n 5 127.0.0.1 tasklist|find /i "frpc.exe" if %errorlevel% NEQ 0 ( start "" "frpc.exe" -c frpc.ini ) goto :loop
[Unit] Description=frps daemon After=syslog.target network.target Wants=network.target [Service] Type=simple ExecStart=/root/frp_0.13.0_linux_amd64/frps -c /root/frp_0.13.0_linux_amd64/frps_my.ini Restart= always RestartSec=1min [Install] WantedBy=multi-user.target启动并设为开机自启。
systemctl start frps //启动 systemctl status frps //状态查询 systemctl enable frps //开机启动
发表评论