1.虚拟机上centos镜像的获取。这里推荐网易镜像站中的CentOS7版本(其他开源镜像站亦可)。这里给出链接: http://mirrors.163.com/centos/7.3.1611/isos/x86_64/CentOS-7-x86_64-DVD-1611.iso ps:这是64位的,现在 ...
分类:
数据库 时间:
2017-07-07 16:33:13
阅读次数:
352
ulimit -n 修改 ulimit -n 修改 临时修改: ulimit -SHn 65535 永久修改: echo '* - nofile 65535' >> /etc/security/limits.conf Linux系统里打开文件描述符的最大值,一般缺省值是1024,对一台繁忙的服务器来 ...
分类:
系统相关 时间:
2017-06-21 11:24:55
阅读次数:
225
user nginx nginx; #定义Nginx运行的用户和用户组worker_processes 1; #nginx进程数,建议设置为等于CPU总核心数worker_rlimit_nofile 1024; #一个nginx进程打开的最多文件描述符数目,理论值应该是最多打开文件数(系统的值uli ...
分类:
其他好文 时间:
2017-06-20 11:05:36
阅读次数:
168
首先修改系统级别:句柄,也就是访问文件的数量 使用ulimit -a 可以查看当前系统的所有限制值,使用ulimit -n 可以查看当前的最大打开文件数。 新装的linux默认只有1024,当作负载较大的服务器时,很容易遇到error: too many open files。因此,需要将其改大。 ...
分类:
其他好文 时间:
2017-06-09 23:40:15
阅读次数:
189
如何设置普通用户的ulimit值1、vim /etc/profile增加 ulimit -n 10240source /etc/profile 重新启动就不需要运行这个命令了。2、修改/etc/security/limits.conf增加* hard nofile 10240 \\限制打开文件数10 ...
分类:
系统相关 时间:
2017-06-08 23:39:18
阅读次数:
560
一、主配置段1、正常运行必备的配置#运行用户和组,组身份可以省略user nginx nginx;#指定nginx守护进程的pid文件pid path/to/nginx.pid;#指定所有worker进程所能打开的最大文件句柄数worker_rlimit_nofile 100000;2、性能优化相关 ...
分类:
其他好文 时间:
2017-06-06 18:27:39
阅读次数:
315
[root@localhost ~]# cat /usr/local/nginx/conf/nginx.conf worker_processes 2; worker_cpu_affinity 01 10;worker_rlimit_nofile 65535; # worker 进程最大打开文件数,... ...
分类:
系统相关 时间:
2017-05-31 13:54:55
阅读次数:
230
#================================以下是全局配置项#运行nginx的所属组和所有者user nginx nginx;#开启4个nginx 工作进程worker_processes 4;worker_rlimit_nofile 65535;events { #连接规则 ... ...
分类:
系统相关 时间:
2017-05-29 21:46:43
阅读次数:
245
#nginx启用的用户和组user nginx; #启动的工作进程数,一般配置为跟逻辑CPU核数一样worker_processes auto; #1个nginx进程可打开的最大文件描述符数目的数量worker_rlimit_nofile 51200; #记录严重错误日志error_log /var ...
分类:
其他好文 时间:
2017-05-13 09:54:25
阅读次数:
220
1. 修改用户的SHELL的限制,vi /etc/security/limits.conf 文件,文件末尾添加修改如下oracle soft nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard nofile 6553 ...
分类:
其他好文 时间:
2017-05-05 20:58:45
阅读次数:
596