【caddy】启动报错File descriptor limit 1024 is too low for production servers

[yyq@localhost caddy]$ ./caddy
Activating privacy features... done.

Serving HTTP on port 2015 
http://:2015

WARNING: File descriptor limit 1024 is too low for production servers. At least 8192 is recommended. Fix with `ulimit -n 8192`.

编辑 /etc/security/limits.conf 文件

在 # End of file 一行上面加入

* soft nofile 16384
* hard nofile 16384

保存即可。

你可能感兴趣的:(一名实施工程师的自我修养)