Django 运行错误no enough space left on disk

最近初学Django,以前也没学过python,然后运行的时候提示出错:

no enough space left on disk

于是我先检查自己partition disk的空间,

命令df

发现自己还是有剩余的可用空间;

最后在百度查找问题时,得到了解决:

 

You may have reached your quota of watches.

To find your current limit, type this in your terminal:

cat /proc/sys/fs/inotify/max_user_watches

Which is typically 8192 by default.

To increase your limit, type this:

sudo sysctl fs.inotify.max_user_watches=16384

Then restart django.

To permanently set this limit, type this:

echo 16384 | sudo tee -a /proc/sys/fs/inotify/max_user_watches

你可能感兴趣的:(django,python)