本文转自:http://www.cnblogs.com/feiling/archive/2012/12/02/2798098.html参考文章:http://www.cnblogs.com/challengeof/p/4276659.html打开的文件过多,一般来说是由于应用程序对资源使用不当造成,...
分类:
其他好文 时间:
2015-03-21 18:28:02
阅读次数:
147
在“文件打开过多(Too many open files)上”一文中提到,通过修改limit.conf文件可以对最大文件修改数起到做用等等操作。但在实际操作中在通过ssh登录经过ulimit –n查询出来的最大文件却不是limit.conf的值。为此,继续追查到底怎么回事。
1、limit.conf这个文件到底是怎么文件,这个文件到底如何起作用?
通过对Linux的一些学习,原来l...
分类:
其他好文 时间:
2015-03-19 16:28:30
阅读次数:
215
用phpMyAdmin导入mysql数据库时,我的10M的数据库不能导入,提示mysql数据库最大只能导入2M。phpMyAdmin数据库导入出错:You probably tried to upload too large file. Please refer to documentation f...
分类:
数据库 时间:
2015-03-19 12:55:27
阅读次数:
155
Very good problem to learn knapsack (complete knapsack in this case).My brutal-force solution in Python got AC too, which surprised me a bit. Here is ...
分类:
其他好文 时间:
2015-03-19 06:18:36
阅读次数:
135
三月初,抱着试试看的心态投了阿里内推的算法工程师。too young too naive.实际应该投的是研发工程师,当时没看清。问的问题大致涉及: 1.C/C++基础知识深入:指针与引用,const用法,static用法。 2.操作系统:进程与线程,进程间通信,内存管理的堆栈用法。 3.计算机...
分类:
其他好文 时间:
2015-03-19 00:43:26
阅读次数:
498
在上传时nginx返回了413错误,查看log文件,显示的错误信息是:”413RequestEntityTooLarge”,需要做以下设置:打开nginx主配置文件nginx.conf,找到http{}段,增加client_max_body_size的相关设置,这个值默认是1m,可以增加到3m以增加提高文件大小限制;client_max_body_size3m..
分类:
其他好文 时间:
2015-03-18 18:17:36
阅读次数:
101
之前用python爬取网页的时候,一直用的是regex或者自带的库sgmllib里的SGMLParser。但是遇到复杂一点的情况时,SGMLParser往往就不那么给力了!(哈,难道说我 too native了?毕竟beautifulSoup是继承sgmlparser的么~)所以,我寻寻觅觅寻寻觅觅...
分类:
编程语言 时间:
2015-03-18 06:22:14
阅读次数:
257
Exception in thread "main" redis.clients.jedis.exceptions.JedisClusterMaxRedirectionsException: Too many Cluster redirections? at redis.clients.jedis....
分类:
其他好文 时间:
2015-03-17 17:32:27
阅读次数:
1027
题目:You can Solve a Geometry Problem tooTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 145 Accepted Submission(s): 100 Problem DescriptionMany geom...
分类:
其他好文 时间:
2015-03-17 12:25:44
阅读次数:
111
A boy named Gena really wants to get to the “Russian Code Cup” finals, or at least get a t-shirt. But the offered problems are too complex, so he made an arrangement with his n friends that they will s...
分类:
编程语言 时间:
2015-03-16 14:36:02
阅读次数:
141