liunx ant部署

第一步:

wget http://archive.apache.org/dist/ant/binaries/apache-ant-1.8.3-bin.tar.gz

第二步:解压

tar -zxf apache-ant-1.8.3-bin.tar.gz

第三步:设置环境变量

vim /etc/profile

增加如下内容:

export ANT_HOME="/home/hadoop/apache-ant-1.8.3"

export PATH=$PATH:$ANT_HOME/bin

保存退出。

source /etc/profile

安装完毕。

猜你喜欢

转载自chenyi8888.iteye.com/blog/1501497