1. ホーム

Linux fork: 再試行: リソースが利用できないため、ログインの解決策にならない

2022-02-25 20:13:04
<パス
//The problem occurs because the maximum number of connections to the Linux open file is too full to meet the demand, the solution is as follows
//Improve the original 1024 to 65535
# cat /etc/security/limits.d/90-nproc.conf 
# Default limit for number of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.

* soft nproc 65535
root soft nproc unlimited
//Solution 2, reboot the machine to fix it
# echo "* - nofile 65535" >> /etc/security/limits.conf
# echo "* - noproc 65535" >> /etc/security/limits.conf
///* means for all users, noproc is the maximum number of processes, nofile is the maximum number of open files
//- means soft and hard all limits

# Default limit for number of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.

* soft nproc 65535
root soft nproc unlimited

//Solution 2, reboot the machine to fix it
# echo "* - nofile 65535" >> /etc/security/limits.conf
# echo "* - noproc 65535" >> /etc/security/limits.conf
///* means for all users, noproc is the maximum number of processes, nofile is the maximum number of open files
//- means soft and hard all limits