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