Home
Sign Up
Sign In
V2EX
›
问与答
rust on Linux 怎么做单例进程比较好(进程互斥)
proxytoworld
·
Sep 13, 2022
· 1399 views
This topic created in 1511 days ago, the information mentioned may be changed or developed.
Rust
进程
Linux
斥
6 replies
•
2022-09-14 02:12:49 +08:00
gydi
Sep 13, 2022
1
占端口
lmshl
Sep 13, 2022
2
通用做法是锁一个文件,比如<你的 app.pid>
lmshl
Sep 13, 2022
3
看这一段
https://www.baeldung.com/linux/pid-file#ensuring-a-single-instance-of-an-application
novolunt
Sep 13, 2022
4
用 wasm
https://github.com/lunatic-solutions/lunatic-rs
fuxkcsdn
Sep 13, 2022
5
linux 通用做法是 pid 文件锁吧
ecloud
Sep 14, 2022
6
/var/run/xxx.pid
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
1331 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 33ms ·
UTC 21:01
·
PVG 05:01
·
LAX 13:01
·
JFK 16:01
♥ Do have faith in what you're doing.
❯