sudo sh -c 'echo fs.inotify.max_user_watches=524288>>/etc/sysctl.conf' sudo sysctl -p 其中 sudo sh -c 是为了让>>指令也具有root权限