본문 바로가기

전체 글

[limits.conf] 유저 리소스 파라미터 설정

2018. 4. 24.

유저 resource 파라미터 변경


# /etc/security/limits.conf 

...
#<domain>      <type>  <item>         <value>
#
#*               soft    core            0
#*               hard    rss             10000
#@student        hard    nproc           20
#@faculty        soft    nproc           20
#@faculty        hard    nproc           50
#ftp             hard    nproc           0
#@student        -       maxlogins       4
    
apache          -    nofile          65536
apache          -    nproc           2048
jboss           -    nofile          65536
jboss           -    nproc           16384



File Descriptor 제한 변경

nofile


Process 개수 제한 변경 

= nproc



댓글

[RHEL7] 데몬 정리

2018. 4. 23.
RHEL 7 

데몬정리 명령어
.
.
.
.


 

 # systemctl list-unit-files --type service | grep enabled 


 # systemctl list-unit-files --type service | grep enabled | awk '{print "systemctl disable" $1}' > disablelist.sh 



주의사항

 

disable 시킬 데몬들중에 필요한것은 제외 후 스크립트 실행

gdm,sshd,syslogd 등등 

'Infra' 카테고리의 다른 글

vi 편집기 단축키  (0) 2018.06.07
리눅스 명령어  (0) 2018.05.23
[명령어] df 와 du 의 용량이 다른 이유  (1) 2018.04.24
[RHEL] LVM 명령어  (0) 2018.04.24
[RHEL x] kdump 활성화 및 crash 테스트  (0) 2018.04.24
댓글