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

推荐订阅源

T
The Blog of Author Tim Ferriss
Know Your Adversary
Know Your Adversary
P
Palo Alto Networks Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
K
Kaspersky official blog
L
LINUX DO - 热门话题
P
Proofpoint News Feed
P
Privacy & Cybersecurity Law Blog
Google DeepMind News
Google DeepMind News
Attack and Defense Labs
Attack and Defense Labs
Cisco Talos Blog
Cisco Talos Blog
AI
AI
L
LINUX DO - 最新话题
H
Heimdal Security Blog
Hacker News: Ask HN
Hacker News: Ask HN
Webroot Blog
Webroot Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
The GitHub Blog
The GitHub Blog
I
Intezer
Blog — PlanetScale
Blog — PlanetScale
有赞技术团队
有赞技术团队
S
Securelist
博客园_首页
IT之家
IT之家
Schneier on Security
Schneier on Security
博客园 - 叶小钗
罗磊的独立博客
WordPress大学
WordPress大学
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
MongoDB | Blog
MongoDB | Blog
P
Proofpoint News Feed
阮一峰的网络日志
阮一峰的网络日志
A
Arctic Wolf
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
W
WeLiveSecurity
The Register - Security
The Register - Security
D
DataBreaches.Net
S
Security @ Cisco Blogs
Security Archives - TechRepublic
Security Archives - TechRepublic
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
腾讯CDC
Recorded Future
Recorded Future
NISL@THU
NISL@THU
N
News and Events Feed by Topic
T
Tailwind CSS Blog
N
News and Events Feed by Topic
Cyberwarzone
Cyberwarzone
T
Tor Project blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com

雾非雾 - 服务

暂无文章

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

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/