frp安装和自启

https://blog.csdn.net/weixin_40837318/article/details/121671160

ubuntu20 使用systemctl 配置frp服务端开机自启:

1.在/etc/systemd/system文件夹下新建一个文件xxx.service

复制代码
[Unit]
Description=Frp_GPU
After=syslog.target

[Service]
ExecStart=/root/soft/frp_0.48.0_linux_amd64/frps 
SuccessExitStatus=143
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target
复制代码

 

2.开启命令

systemctl enable xxx.service 开启 (开启了,但还没生效,要重启计算机)

systemctl restart xxx.service 重启

systemctl stop xxx.service 停止

systemctl status xxx.service 查看开启状态

4.重启系统

reboot

 

posted @   __sunshine  阅读(118)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 单线程的Redis速度为什么快?
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 展开说说关于C#中ORM框架的用法!
点击右上角即可分享
微信分享提示