标签:
杂谈 |
分类: 技术文章 |
架设的FTP服务器,原来没做任何限制,就打算自己使用,没想到最近很多人都来下载东西,那台破机器不堪重负,出现了“kern.maxfiles
limit exceeded by uid 1001, please see tuning(7)”的提示,用"sysctl
kern.maxfiles"和"truss"查看了下,也没发现什么,看来是vsftpd的负载过重,需要限制下连接数和速度了:
max_clients = number
max_per_ip = number
anon_max_rate = number
local_max_rate = number