mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2024-11-19 01:40:16 +01:00
increase the possible number of running processes (#3180)
This commit is contained in:
parent
1738bfa382
commit
5eb32db8cf
@ -651,7 +651,7 @@ sudo dphys-swapfile swapoff
|
|||||||
sudo dphys-swapfile uninstall
|
sudo dphys-swapfile uninstall
|
||||||
|
|
||||||
echo -e "\n*** INCREASE OPEN FILE LIMIT ***"
|
echo -e "\n*** INCREASE OPEN FILE LIMIT ***"
|
||||||
# based on https://raspibolt.org/security.html#increase-your-open-files-limit
|
# based on https://raspibolt.org/guide/raspberry-pi/security.html#increase-your-open-files-limit
|
||||||
sudo sed --in-place -i "56s/.*/* soft nofile 256000/" /etc/security/limits.conf
|
sudo sed --in-place -i "56s/.*/* soft nofile 256000/" /etc/security/limits.conf
|
||||||
sudo bash -c "echo '* hard nofile 256000' >> /etc/security/limits.conf"
|
sudo bash -c "echo '* hard nofile 256000' >> /etc/security/limits.conf"
|
||||||
sudo bash -c "echo 'root soft nofile 256000' >> /etc/security/limits.conf"
|
sudo bash -c "echo 'root soft nofile 256000' >> /etc/security/limits.conf"
|
||||||
@ -660,6 +660,8 @@ sudo bash -c "echo '# End of file' >> /etc/security/limits.conf"
|
|||||||
sudo sed --in-place -i "23s/.*/session required pam_limits.so/" /etc/pam.d/common-session
|
sudo sed --in-place -i "23s/.*/session required pam_limits.so/" /etc/pam.d/common-session
|
||||||
sudo sed --in-place -i "25s/.*/session required pam_limits.so/" /etc/pam.d/common-session-noninteractive
|
sudo sed --in-place -i "25s/.*/session required pam_limits.so/" /etc/pam.d/common-session-noninteractive
|
||||||
sudo bash -c "echo '# end of pam-auth-update config' >> /etc/pam.d/common-session-noninteractive"
|
sudo bash -c "echo '# end of pam-auth-update config' >> /etc/pam.d/common-session-noninteractive"
|
||||||
|
# increase the possible number of running processes from 128
|
||||||
|
sudo bash -c "echo 'fs.inotify.max_user_instances=4096' >> /etc/sysctl.conf
|
||||||
|
|
||||||
# *** fail2ban ***
|
# *** fail2ban ***
|
||||||
# based on https://raspibolt.org/security.html#fail2ban
|
# based on https://raspibolt.org/security.html#fail2ban
|
||||||
|
Loading…
Reference in New Issue
Block a user