---
title: "Error writing file: A file cannot be larger than the value set by ulimit"
author: "bayaci"
date: "2009-05-21T08:58:00Z"
tags: ["Security"]
slug: "error-writing-file-a-file-cannot-be-larger-than-the-value-set-by-ulimit"
draft: false
lastmod: "2009-05-21T08:58:00Z"
id: 593698
url: "https://peter9.iteye.com/blog/593698"
---

限制都还没改呢！  
当然不行了！  
vi /etc/security/limits  
default:  
fsize = 2097151  
core = 2097151  
cpu = -1  
data = 262144  
rss = 65536  
stack = 65536  
nofiles = 2000

fsize改成

default:  
fsize = -1