Set ulimit highter for all users in prod install
This commit is contained in:
parent
766eeb2a6f
commit
b4bb54212c
@ -1553,6 +1553,29 @@ case $OS in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
##### OS set Linux user ulimits
|
||||||
|
|
||||||
|
echo "[*] Setting ulimits for users"
|
||||||
|
case $OS in
|
||||||
|
|
||||||
|
FreeBSD)
|
||||||
|
;;
|
||||||
|
|
||||||
|
Debian)
|
||||||
|
cat >> /etc/security/limits.conf <<EOF
|
||||||
|
* soft nproc 200000
|
||||||
|
* hard nproc 200000
|
||||||
|
* soft nofile 200000
|
||||||
|
* hard nofile 200000
|
||||||
|
EOF
|
||||||
|
echo "session required pam_limits.so" >> /etc/pam.d/common-session
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### OS services
|
##### OS services
|
||||||
|
|
||||||
#if [ "${BITCOIN_MAINNET_ENABLE}" = ON ];then
|
#if [ "${BITCOIN_MAINNET_ENABLE}" = ON ];then
|
||||||
@ -1628,6 +1651,8 @@ esac
|
|||||||
|
|
||||||
##### finish
|
##### finish
|
||||||
|
|
||||||
|
echo 'Please reboot to start all the services.'
|
||||||
|
|
||||||
echo '[*] Done!'
|
echo '[*] Done!'
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user