Unhandled exception. System.IO.IOException: The configured user limit (128) on the number of inot…
在ubuntu上编写asp.net core 程序,编译时出现错误:System.IO.IOException: The configured user limit (128) on the number of inotify instances has been reached.
方案一:
- sudo vim /etc/sysctl.conf
- 增加下面内容(环境变量)
- fs.inotify.max_user_watches = 1638400
- fs.inotify.max_user_instances = 1638400
- save the file
- sudo sysctl -p
方案二:
- 增加临时环境变量 export DOTNET_USE_POLLING_FILE_WATCHER=true
方案三
echo fs.inotify.max_user_instances=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
© 版权声明
文章版权归作者所有,未经允许请勿转载。
相关文章
暂无评论...
