Apple System: Error: ENFILE: file table overflow

After chopping hands, the fraud call came before the express delivery was received. How to improve the privacy and security of e-commerce>>>

Running nodejs on MAC, I encountered a problem: file table overflow

The main meaning is that there are too many files open, exceeding the limit. The main reason for this problem is the limitation of Apple operating system

echo kern.maxfiles=65536 | sudo tee -a /etc/sysctl.conf
echo kern.maxfilesperproc=65536 | sudo tee -a /etc/sysctl.conf
sudo sysctl -w kern.maxfiles=65536
sudo sysctl -w kern.maxfilesperproc=65536
ulimit -n 65536

Just follow the above instructions. I didn’t go into the specific orders

Similar Posts: