kibana启动报错EACCES: permission denied, open '/usr/local/kibana/optimize/.babelcache.json'

错误信息:

fs.js:642
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^

Error: EACCES: permission denied, open '/usr/local/kibana/optimize/.babelcache.json'
    at Error (native)
    at Object.fs.openSync (fs.js:642:18)
    at Object.fs.writeFileSync (fs.js:1356:33)
    at save (/usr/local/kibana/node_modules/babel-register/lib/cache.js:45:16)
    at _combinedTickCallback (internal/process/next_tick.js:73:7)
    at process._tickCallback (internal/process/next_tick.js:104:9)
    at Module.runMain (module.js:613:11)
    at run (bootstrap_node.js:387:7)
    at startup (bootstrap_node.js:153:9)
    at bootstrap_node.js:500:3

问题原因:

EACCES: permission denied, open '/usr/local/kibana/optimize/.babelcache.json'

所以要检查你启动kibana的用户是否有此文件夹的权限,切换一个用户,或者赋予权限(chown -R esuser:esgroup kibana)即可解决

你可能感兴趣的:(error)