指尖上的记忆指尖上的记忆
首页
  • 基础
  • Laravel框架
  • Symfony框架
  • 基础
  • Gin框架
  • 基础
  • Spring框架
  • 命令
  • Nginx
  • Ai
  • Deploy
  • Docker
  • K8s
  • Micro
  • RabbitMQ
  • Mysql
  • PostgreSsql
  • Redis
  • MongoDb
  • Html
  • Js
  • 前端
  • 后端
  • Git
  • 知识扫盲
  • Golang
🌟 gitHub
首页
  • 基础
  • Laravel框架
  • Symfony框架
  • 基础
  • Gin框架
  • 基础
  • Spring框架
  • 命令
  • Nginx
  • Ai
  • Deploy
  • Docker
  • K8s
  • Micro
  • RabbitMQ
  • Mysql
  • PostgreSsql
  • Redis
  • MongoDb
  • Html
  • Js
  • 前端
  • 后端
  • Git
  • 知识扫盲
  • Golang
🌟 gitHub

webstorm开发工具一直报监听数量达到上限的问题:
经常在webstorm下运行 npm run watch 或者 yarn dev 会报:System limit for number of file watchers reached
解决办法如下:

root@k8s:~$ cat /proc/sys/fs/inotify/max_user_watches
65536
root@k8s:~$ sudo sysctl fs.inotify.max_user_watches=131070
[sudo] password for root: 
fs.inotify.max_user_watches = 131070
root@k8s:~$ 
root@k8s:~$ cat /proc/sys/fs/inotify/max_user_watches
131070
root@k8s:~$ sudo sysctl -p

按照上面的命令执行一遍就好了