7

我使用 duplicity 来备份一些文件。我现在正在尝试恢复到我的 Mac 以测试备份,但出现以下错误:

> duplicity me@backupserver.io/backup_dr ~/restored_files
Max open files of 256 is too low, should be >= 1024.
Use 'ulimit -n 1024' or higher to correct.

所以我尝试:

sudo ulimit -n 1024

看起来不错,然后运行:

> ulimit -a
...
open files                      (-n) 256
...

你如何真正获得改变的极限?我已经谷歌没有运气:(

4

2 回答 2

3

我有同样的问题。原来这在 bash 下有效,但在 tcsh 下无效。

于 2015-02-17T10:39:14.863 回答
2

尝试ulimit -n 1024不使用 sudo。出于某种原因,它对我来说不适用于 sudo 。如果它说Operation not permitted尝试关闭并打开另一个终端。

于 2017-02-05T14:28:13.193 回答