我使用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
...您实际上是如何更改限制的呢?我已经在谷歌上搜索过了,但没有运气:(
发布于 2015-02-17 18:39:15
我也遇到了同样的问题。事实证明,这在bash下有效,但在tcsh中无效。
发布于 2017-02-05 22:28:13
尝试不带sudo的ulimit -n 1024。由于某些原因,我不能使用sudo。如果显示为Operation not permitted,请尝试关闭并打开另一个终端。
https://stackoverflow.com/questions/24381687
复制相似问题