Install ANT on CentOS Linux

1.下載 ANT 套件,相關網址 http://www.apache.org

2.下載回來後,放置於 /opt目錄下

3.解開 ANT 套件,並且更名為 ant

4.編號 /etc/profile ,新增下列兩列:

export ANT_HOME=/opt/ant

PATH=$ANT_HOME/bin:$PATH

5.執行 # source  /etc/profile

6.執行 # ant -version 查看是否安裝正確

猜你喜欢

转载自whxhz.iteye.com/blog/1609264