Home > System Tutorial > LINUX > How to set the number of user handles and user processes in CentOS?

How to set the number of user handles and user processes in CentOS?

WBOY
Release: 2024-01-06 23:45:07
forward
920 people have browsed it

CentOS sets the number of user handles and the number of user processes

1. Number of user handles

vi /etc/security/limits.conf Add

at the end of the file
# My add
* softcore unlimit
* hardcore unlimit
* softfsizeunlimited
* hardfsizeunlimited
* softdata unlimited
* harddata unlimited
* softnproc65535
* hardnproc63535
* softstackunlimited
* hardstackunlimited
* softnofile409600
* hardnofile409600 
Copy after login

2. Number of user processes

vim /etc/security/limits.d/90-nproc.conf

Change 1024 to 4096. By default, ordinary users are 1024. There is no limit for root

*softnproc 4096
root softnproc unlimited
Copy after login

The above is the detailed content of How to set the number of user handles and user processes in CentOS?. For more information, please follow other related articles on the PHP Chinese website!

source:jb51.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template