Centos7修改默认最大文件打开数
2017-06-27 07:44
232 查看
看一下前后对比效果
[root@bogon ~]# vi /etc/systemd/system.conf [root@bogon ~]# cat /etc/systemd/system.conf # This file is part of systemd. # # systemd is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation; either version 2.1 of the License, or # (at your option) any later version. # # Entries in this file show the compile time defaults. # You can change settings by editing this file. # Defaults can be restored by simply deleting this file. # # See systemd-system.conf(5) for details. [Manager] #LogLevel=info #LogTarget=journal-or-kmsg #LogColor=yes #LogLocation=no #DumpCore=yes #CrashShell=no #ShowStatus=yes #CrashChVT=1 #CPUAffinity=1 2 #JoinControllers=cpu,cpuacct net_cls,net_prio #RuntimeWatchdogSec=0 #ShutdownWatchdogSec=10min #CapabilityBoundingSet= #SystemCallArchitectures= #TimerSlackNSec= #DefaultTimerAccuracySec=1min #DefaultStandardOutput=journal #DefaultStandardError=inherit #DefaultTimeoutStartSec=90s #DefaultTimeoutStopSec=90s #DefaultRestartSec=100ms #DefaultStartLimitInterval=10s #DefaultStartLimitBurst=5 #DefaultEnvironment= #DefaultCPUAccounting=no #DefaultBlockIOAccounting=no #DefaultMemoryAccounting=no #DefaultLimitCPU= #DefaultLimitFSIZE= #DefaultLimitDATA= #DefaultLimitSTACK= #DefaultLimitCORE= #DefaultLimitRSS= #DefaultLimitNOFILE= DefaultLimitNOFILE=1024000 #这里需要修改 #DefaultLimitAS= #DefaultLimitNPROC= DefaultLimitNPROC=1024000 #这里也需要修改 #DefaultLimitMEMLOCK= #DefaultLimitLOCKS= #DefaultLimitSIGPENDING= #DefaultLimitMSGQUEUE= #DefaultLimitNICE= #DefaultLimitRTPRIO= #DefaultLimitRTTIME= [root@bogon ~]# ulimit -a #修改之后没有重启 core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 3791 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) unlimited open files (-n) 1024 #还是默认值1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 3791 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited [root@b ae0c ogon ~]# reboot Connection to 192.168.1.107 closed by remote host. Connection to 192.168.1.107 closed. root@BP:~# ssh 192.168.1.107 #我使用的是密钥登录,所以不用再输入密码 Last login: Mon Jun 26 15:38:21 2017 from 192.168.1.100 u[root@bogon ~]# ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 3791 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) unlimited open files (-n) 1024000 #重启后生效了 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 1024000 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited [root@bogon ~]#
相关文章推荐
- CentOS7修改单个进程可打开的最大文件句柄数
- 一个修改注册表,使浏览器默认不直接打开已知后缀的下载文件,而是下载后确认,且单独打开的vbscript脚本
- 修改Windows中的文件默认打开方式
- 修改mac系统下某种文件类型的默认打开方式
- 通过修改注册表改变txt文件的默认打开方式
- MFC单文档打开文件默认后缀名修改
- 修改Linux系统最大打开文件数
- MyEclipse修改默认打开文件方式
- 【原创】修改myeclipse中JSP文件默认打开方式
- 修改linux最大打开文件数
- 一次性修改windows7系统常见文件类型关联与默认打开程序
- Win7 : 如何修改某种文件的默认打开方式
- 如何修改默认文件关联打开程序
- 修改myeclipse的默认编码和文件打开方式
- mfc 操作,添加menu资源,默认为IDR_MENU1...要修改为其他的名字则,在资源里头文件resourse.h中 加 #define IDR_OPEN_SHAP 130,然后打开资源文件shp_show.rc->查看代码,把menu1修改为IDR_OPEN_SHAP
- ubuntu如何修改默认的文件关联打开程序
- 修改linux系统最大打开文件数
- ubuntu如何修改默认的文件关联打开程序 转自:http://blog.csdn.net/blueboy82006/article/details/5305497
- linux下修改最大打开文件数
- eclipse 批量修改文件的默认打开方式