如果输入ant -version,提示Permission denied,则更改权限即可: chmod 755 /path/apache-ant-1.10.7/bin/ant path:你文件夹放置的路径