syncthing搭建自己的同步云网盘
发表于:2018-09-19 | 分类: IT
字数统计: 241 | 阅读时长: 1分钟 | 阅读量:

还在为百度网盘传输速度慢而头疼吗,有服务器的同学不妨试试自己搭建同步云盘,保护自己的数据。

参考前辈写的
https://www.cnblogs.com/xingyunfashi/p/8708807.html

https://www.jianshu.com/p/4235cc85c32d

错误修复:

2.2.32. How do I increase the inotify limit to get my filesystem watcher to work?

You are probably reading this because you encountered the following error with the filesystem watcher on linux:

Failed to start filesystem watcher for folder yourLabel (yourID): failed to setup inotify handler. Please increase inotify limits, seehttps://docs.syncthing.net/users/faq.html#inotify-limits

Linux typically restricts the amount of watches per user (usually 8192). When you have more directories you need to adjust that number.

On many Linux distributions you can run the following to fix it:

1
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

On Arch Linux and potentially others it is preferred to write this line into a separate file, i.e. you should run:

1
echo "fs.inotify.max_user_watches=204800" | sudo tee -a /etc/sysctl.d/90-override.conf

This only takes effect after a reboot. To adjust the limit immediately, run:

1
sudo sh-c 'echo 204800 > /proc/sys/fs/inotify/max_user_watches'
上一篇:
ArcMap10.6从世界地图扣取东亚及东南亚国家地图
下一篇:
perl循环调用python爬虫批量下载喜马拉雅音频