今天做压力测试 客户端数据提到2000人,在这个过程中,遇到了分配socket失败的问题提示 errno:24 Too many open files查找资料后发现是Linux系统配置了打开文件的最大数量通过 ulimit -a 查看结果(这个是修改后的了 修改前 open files 1024) ...
分类:
系统相关 时间:
2017-08-21 15:50:50
阅读次数:
229
#include<unistd.h>#include <stdio.h>#include <stdlib.h>#include <errno.h>#include <string.h>#include<pthread.h>#include <sched.h> #include<iostream> u ...
分类:
编程语言 时间:
2017-08-21 00:22:03
阅读次数:
192
头文件:<pthread.h> 编译记得加 -lpthread库 1:互斥锁(mutex) 数据类型:pthread_mutex_t 操作API: 2:读写锁 数据类型:pthread_rwlock_t 操作API: 注:读写锁适合使用在临界资源读频率远高于写频率的情况下。 当临界资源位于读锁定情况 ...
分类:
编程语言 时间:
2017-08-21 00:14:42
阅读次数:
220
在使用fedora17 系统的yum源的时候出现了例如以下错误:Error: failure: repodata/repomd.xml from fedora: [Errno 256] No more mirrors to try.參照网上的做法: (一般yum有变更都须要这两个操作)yum cle ...
分类:
系统相关 时间:
2017-08-18 14:40:55
阅读次数:
438
import os,errno #基本工具类 #①递归生成输入的路径下面的文件夹或文件 #②递归删除输入的路径下面的文件夹及文件 ''' param : dirPath return : AuthorCreated by Wu Yongcong 2017-8-17 function:remove a ...
分类:
编程语言 时间:
2017-08-17 17:19:18
阅读次数:
116
用户MYSQL数据库迁移后,遇到报错MySQL Error:Can't find file (errno: 13 - Permission denied)使用以下指令重新设置所有者和权限,依然不能解决。 [root@ ~]# chown 501:501 -R /www/server/data/com ...
分类:
数据库 时间:
2017-08-17 10:48:04
阅读次数:
305
from http://www.cnblogs.com/yuxingfirst/archive/2013/03/08/2950281.html 我们知道,linux下socket编程有常见的几个系统调用: 对于服务器来说, 有socket(), bind(),listen(), accept(),r ...
分类:
其他好文 时间:
2017-08-16 21:59:36
阅读次数:
195
命令: ansible -i hosts_20 st -m shell -a 'service zabbix_agentd star' -K --become ansible -i hosts_20 st -m shell -a 'lsof -i:10050' -K --become 在shell模 ...
分类:
系统相关 时间:
2017-08-16 20:33:23
阅读次数:
506
关于链接数据库报错: ERROR 1135 (HY000): Can't create a new thread (errno 11); if you are not out of available memory, you can consult the manual for a possible ...
分类:
其他好文 时间:
2017-08-15 21:05:04
阅读次数:
250
3.2.3开发文档https://pan.baidu.com/disk/home?errno=0&errmsg=Auth%20Login%20Sucess&&bduss=&ssnerror=0#list/vmode=list&path=%2Fsoftware%2Fphp%2Fphp_framewor ...
分类:
Web程序 时间:
2017-08-10 13:40:12
阅读次数:
229