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

推荐订阅源

P
Palo Alto Networks Blog
T
The Blog of Author Tim Ferriss
Engineering at Meta
Engineering at Meta
博客园_首页
博客园 - 三生石上(FineUI控件)
G
Google Developers Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 【当耐特】
Microsoft Security Blog
Microsoft Security Blog
P
Privacy & Cybersecurity Law Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
S
Secure Thoughts
爱范儿
爱范儿
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
H
Help Net Security
The Cloudflare Blog
Recorded Future
Recorded Future
Attack and Defense Labs
Attack and Defense Labs
J
Java Code Geeks
O
OpenAI News
T
Tor Project blog
B
Blog RSS Feed
D
Darknet – Hacking Tools, Hacker News & Cyber Security
PCI Perspectives
PCI Perspectives
V
Visual Studio Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
A
About on SuperTechFans
www.infosecurity-magazine.com
www.infosecurity-magazine.com
W
WeLiveSecurity
Cyberwarzone
Cyberwarzone
云风的 BLOG
云风的 BLOG
Security Latest
Security Latest
S
Schneier on Security
Know Your Adversary
Know Your Adversary
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
V
Vulnerabilities – Threatpost
D
DataBreaches.Net
宝玉的分享
宝玉的分享
T
Troy Hunt's Blog
V
V2EX
Cisco Talos Blog
Cisco Talos Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
美团技术团队
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Latest news
Latest news
量子位
Microsoft Azure Blog
Microsoft Azure Blog

雾非雾 - 服务

暂无文章

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/