New limits.conf
- Inicie sesión o regístrese para enviar comentarios
Hi Mates,
I've made a little bit "research" on my linux. My new limits.conf increases my system.
### File ###
## must be placed in /etc/security/ #####
* hard nofile 32768
* soft nofile 32768
* hard stack 32768
* soft stack 32768
### End of File ####
Create a file called limits.conf and copy/paste the contents above into the new file and save it. Then replace the old file with the new limits.conf. After a restart the new values are active. Check with ulimit -n und ulimit -s as sudo or root.
What are the pros and cons of doing so?
Seems like it sets limits on resource usage for different users. I guess it's not very useful on a one-user system.
Correction:
########### File
root hard nofile 32768
root soft nofile 32768
* hard nofile 32768
* soft nofile 32768
root hard stack 65536
root soft stack 65536
* hard stack 65536
* soft stack 65536
######## End
- Inicie sesión o regístrese para enviar comentarios