12月14, 2023

Linux 下使用 PM2 管理系统服务

软件资源需要自行寻找

gzip -d ./clash-linux-amd64-v1.11.4.gz
mv clash-linux-amd64-v1.11.4 clash #重命名
chmod u+x clash #赋权
./clash # 执行一次初始化

PM2 的管理 启动

pm2 start ./clash --name clash
pm2 save
pm2 startup
systemctl enable pm2-root

临时设置

export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890
取消:
unset http_proxy https_proxy all_proxy

本文链接:https://blog.zkit.org/post/clash.html

-- EOF --

Comments