ElasticSearch安装插件失败提示权限不足



 shell


 root@localhost:/data/es/bin# ./plugin -install mobz/elasticsearch-head
./plugin: 48: exec: : Permission denied

plugin 脚本执行了 exec 命令。当前用户身份是 root


 shell


 # JDK目录权限
-rw-r--r--  1 root root  21M Apr 11 01:22 src.zip
-rw-r--r--  1 root root  525 Apr 11 01:22 release
-r--r--r--  1 root root  159 Apr 11 01:22 README.html
drwxr-xr-x  4 root root 4.0K Apr 11 01:22 man
-r--r--r--  1 root root   40 Apr 11 01:22 LICENSE
drwxr-xr-x  5 root root 4.0K Apr 11 01:22 lib
drwxr-xr-x  5 root root 4.0K Apr 11 01:22 jre
-rw-r--r--  1 root root 5.0M Mar 10 06:23 javafx-src.zip
drwxr-xr-x  3 root root 4.0K Apr 11 01:22 include
drwxr-xr-x  4 root root 4.0K Apr 11 01:22 db
-r--r--r--  1 root root 3.2K Apr 11 01:22 COPYRIGHT
drwxr-xr-x  2 root root 4.0K Apr 11 01:22 bin


 shell


 # bin目录
-rwxr-xr-x 1 root root 134K Apr 11 01:22 javaws
-rwxr-xr-x 1 root root 1.8K Apr 11 01:22 java-rmi.cgi
-rwxr-xr-x 1 root root 2.3K Mar 10 06:23 javapackager
-rwxr-xr-x 1 root root 7.8K Apr 11 01:22 javap
-rwxr-xr-x 1 root root 7.8K Apr 11 01:22 javah
-rwxr-xr-x 1 root root 2.3K Mar 10 06:23 javafxpackager
-rwxr-xr-x 1 root root 7.8K Apr 11 01:22 javadoc
-rwxr-xr-x 1 root root 7.8K Apr 11 01:22 javac
-rwxr-xr-x 1 root root 7.6K Apr 11 01:22 java


 shell


 # plugin 脚本 exec执行命令:
exec "$JAVA" $JAVA_OPTS $ES_JAVA_OPTS -Xmx64m -Xms16m -Delasticsearch -Des.path.home="$ES_HOME" $properties -cp "$ES_HOME/lib/*" org.elasticsearch.plugins.PluginManager $args

elasticsearch

lectror 9 years, 9 months ago

Your Answer