wsl2 报错: OSError: [Errno 24] Too many open files Fix: sudo nano /etc/security/limits.conf 添加: * hard nofile 204800 * soft nofile 204800 * soft nproc 204800 * hard nproc 204800 在wsl2中用su username命令登录一次就行了: su li ulimit -Hn 65535
wsl2 报错: OSError: [Errno 24] Too many open files Fix: sudo nano /etc/security/limits.conf 添加: * hard nofile 204800 * soft nofile 204800 * soft nproc 204800 * hard nproc 204800 在wsl2中用su username命令登录一次就行了: su li ulimit -Hn 65535