惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

美团技术团队
D
DataBreaches.Net
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
D
Docker
N
Netflix TechBlog - Medium
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
C
Check Point Blog
腾讯CDC
Stack Overflow Blog
Stack Overflow Blog
V
Visual Studio Blog
IT之家
IT之家
月光博客
月光博客
U
Unit 42
K
Kaspersky official blog
T
Threatpost
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
GbyAI
GbyAI
P
Proofpoint News Feed
Last Week in AI
Last Week in AI
云风的 BLOG
云风的 BLOG
酷 壳 – CoolShell
酷 壳 – CoolShell
I
InfoQ
Engineering at Meta
Engineering at Meta
Recorded Future
Recorded Future
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
Security @ Cisco Blogs
MyScale Blog
MyScale Blog
大猫的无限游戏
大猫的无限游戏
Security Archives - TechRepublic
Security Archives - TechRepublic
Webroot Blog
Webroot Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Hacker News - Newest:
Hacker News - Newest: "LLM"
S
Schneier on Security
S
Secure Thoughts
The Register - Security
The Register - Security
B
Blog RSS Feed
The Last Watchdog
The Last Watchdog
P
Palo Alto Networks Blog
爱范儿
爱范儿
B
Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
N
News and Events Feed by Topic
阮一峰的网络日志
阮一峰的网络日志
L
LINUX DO - 热门话题
C
Cisco Blogs
Spread Privacy
Spread Privacy
F
Full Disclosure
博客园 - 聂微东
T
The Blog of Author Tim Ferriss

雾非雾 - frp

暂无文章

frp 相关
花非花 · 2022-10-31 · via 雾非雾 - frp

frps

之前在 CloudCone 上安装、配置好了 frp 的服务端,运行一个月了一直很稳定,但昨天群晖 Docker 上的客户端突然连接不上了;想着 frp 的程序有可能有新版本,索性把配置流程重新走一次吧。

之前记得图省事,frp 服务端用的是后台启动的方法:

nohup ./frps -c frps.ini >/dev/null 2>&1 &

所以首先想到的是先终止 frps 的进程,用 kill 命令;首先查看 frp 进程 ID

# ps -aux|grep frp| grep -v grep
root      1046  0.0  1.5 727036 15468 ?        Ssl  Oct30   0:24 /home/frp/frp_0.44.0/frps -c /home/frp/frp_0.44.0/frps.ini

得到了进程号为 1046 后,杀掉进程:

kill -9 1046

本来这之后,我在宝塔的图形界面下,上传了当前最新版本的 frp ,并把 frps 想复制粘贴覆盖掉原来的版本,但是,覆盖失败;再次查进程,发现 frps 还在;重复杀了几次,才想起,可能。。。我把 frps 做成了服务?

按服务的命令查看一下 frp 运行的状态:

systemctl status frps

事实证明,frps 果然是以服务的方式启动运行的;所以:

开机启动frps:
systemctl enable frps
启动frps:
systemctl start frps
停止frps:
systemctl stop frps
重启frps:
systemctl restart frps
查看frps状态:
systemctl status frps

之后替换掉 frps 重启启动服务即可。

<!--more-->

关于安装、配置服务,记录二个网址吧:

https://gofrp.org/docs/setup/systemd/

https://www.iyuu.cn/archives/286/