ss 服务端 用 screen 执行的,出现 open too many files 怎么解决

2016-10-20 22:02:47 +08:00
 chinabingyang

请问 ss 服务端 用 screen 执行的,出现 open too many files 怎么解决 查到了使用一下命令 ulimit -n 51200 ulimit -Sn 4096 ulimit -Hn 8192

但是有了新的问题,开机启动怎么使用 screen 来执行、。

587 次点击
所在节点    VPS
6 条回复
zhuziyi
2016-10-20 22:13:54 +08:00
用 pm2 来管理。
timothyye
2016-10-20 22:21:35 +08:00
用 upstart 或者 systemd 吧
我现在的 ss 服务端都用 docker 跑的……
pagxir
2016-10-20 22:26:35 +08:00
为毛不用 tmux ,更容易脚本化
wwqgtxx
2016-10-20 23:50:34 +08:00
systemd 大概是现在系统自带的最好用的守护进程了吧
ragnaroks
2016-10-22 10:49:57 +08:00
大部分 consoleApplocation 都可以用 systemd 做守护进程(服务)
a86913179
2016-10-30 14:21:46 +08:00
systemd 大法好,快上 centos7 debian8 ubuntu16.04

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/314258

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX