references
- github issue:https://github.com/microsoft/WSL/issues/1688#issuecomment-532767317
- ulimit 设置
wsl 2 ,ulimit -n 65535 设置报错=>
ulimit: Permission denied when changing resource of type ‘Maximum number of open file descriptors’
修改 /etc/security/limits.conf 的配置,再su username切换到当前用户就会生效
1 | #soft for enforcing the soft limits |