点击这里下载 ant,并把 ant 的 bin 目录路径配置到 Path 环境变量,执行
https://downloads.apache.org/ant/binaries/
wget https://downloads.apache.org/ant/binaries/apache-ant-1.10.7-bin.tar.xz
cd apache-ant-1.10.7
ant -version
命令,检测是否配置完成。https://downloads.apache.org/ant/binaries/
wget https://downloads.apache.org/ant/binaries/apache-ant-1.10.7-bin.tar.xz
cd apache-ant-1.10.7
./bin/ant -version
显示:
Apache Ant(TM) version 1.9.4 compiled on November 5 2018
export PATH=$PATH:/root/apache-ant-1.10.7/bin
echo 'export PATH=$PATH:/root/apache-ant-1.10.7/bin' >> /etc/profile
No comments:
Post a Comment