poll函数与select函数差不多 函数原型: struct pollfd的结构如下: 每个pollfd结构体指定了一个被监视的文件描述符。第一个参数是一个数组,即poll函数可以监视多个文件描述符。每个结构体的events是监视该文件描述符的事件掩码,由用户来设置。revents是文件描述符的操 ...
分类:
系统相关 时间:
2016-12-08 21:34:14
阅读次数:
311
打算爬虫,安装mysqldb 结果使用pip安装出错 在centos-6.4上pip install mysql-python,报错如下[sentry@kjtest111 mysql-python]$ pip install mysql-python Downloading/unpacking my ...
分类:
数据库 时间:
2016-12-01 14:12:16
阅读次数:
530
nginx的模块类别 核心模块 标准的http模块 可选的http模块 邮件模块 第三方扩展模块nginx基本核心配置的类别 用于调试,定位问题 正常运行的必备配置 性能优化类 事件类events正常运行的必备配置user
group
worker_rlimit_nofile-->ulimit-n
worker_rlimit_sigpending-->u..
分类:
其他好文 时间:
2016-11-28 17:45:15
阅读次数:
169
环境:linux 错误:java.lang.OutOfMemoryError: unable to create new native thread 原因:OS对线程是有限制 解决办法: 在Linux操作系统设定nofile和nproc,具体编辑/etc/security/limits.conf添加 ...
分类:
编程语言 时间:
2016-11-23 19:54:08
阅读次数:
191
在/etc/syscurity/limits.conf 加入以下两行: elastic hard nofile 65536 elastic soft nofile 65536 #备注:elastic这里是指定用户elastic 当然可以用*表示所有人 ...
分类:
其他好文 时间:
2016-11-23 12:26:50
阅读次数:
820
客户端/服务端 连接数 ulimit -n 100000 nginx 链接数 10240 个 worker_connections 10240;允许打开文件数worker_processes 1;worker_rlimit_nofile 10000; 系统的最大链接数:#more /proc/sys ...
分类:
其他好文 时间:
2016-11-11 01:31:15
阅读次数:
205
Elasticsearch 5.0 使用ES的基本都会使用过head,但是版本升级到5.0后,head插件就不好使了。下面就看看如何在5.0中启动Head插件吧! 官方粗略教程 Running with built in server enable cors by adding http.cors. ...
分类:
其他好文 时间:
2016-11-05 02:27:39
阅读次数:
244
# vi /etc/security/limits.conf 在file中加上以下内容:(注意红色的为添加的) #ftp hard nproc 0#@student - maxlogins 4* soft nofile 64000* hard nofile 64000* soft nproc 640 ...
分类:
数据库 时间:
2016-09-14 16:47:52
阅读次数:
242
一、 文件数限制修改 (1) vi /etc/security/limits.conf * soft nofile 10240 * hard nofile 10240 (2) vi /etc/pam.d/login session required /lib/security/pam_limits. ...
分类:
系统相关 时间:
2016-09-09 15:17:05
阅读次数:
396
ulimit设置 ulimit -n 要调整为100000甚至更大。 命令行下执行 ulimit -n 100000即可修改。如果不能修改,需要设置 /etc/security/limits.conf,加入 * soft nofile 262140 * hard nofile 262140 root ...
分类:
系统相关 时间:
2016-09-01 11:13:25
阅读次数:
213