当我在终端中运行mvn --version
时,会显示此消息
bash: /usr/local/apache-maven/apache-maven-3.2.5/bin/mvn: Permission denied
我运行此命令
chmod a+x /usr/local/apache-maven/apache-maven-3.2.5/bin/mvn
但没有解决。
ls -l /usr/local/apache-maven/apache-maven-3.2.5/bin/mvn
-rwxrwxrwx 1 root root 6185 Dec 24 16:25 /usr/local/apache-maven/apache-maven-3.2.5/bin/mvn
TNX
答案 0 :(得分:0)
bash: /usr/local/apache-maven/apache-maven-3.2.5/bin/mvn: Permission denied
出现这种情况的典型原因:
/usr/local/apache-maven/apache-maven-3.2.5/bin/mvn
/usr/local/apache-maven/apache-maven-3.2.5/bin
的分区已安装noexec
标记
如果你检查每一个并解决,你应该能够执行。