1. Download ant (Note: Download The bin.tar.gz format, saving compilation)
Ant Official Website: http://ant.apache.org/
2. Extract
650) This. width = 650; "src ="/e/u261/themes/default/images/spacer.gif "style =" Background: URL ("/e/u261/lang/ZH-CN/images/localimage.png") No-repeat center; Border: 1px solid # DDD; "alt =" spacer.gif "/> tar-zxvf apache-ant-1.9.4-bin.tar.gz
3. Install it as a root user
Cp apache-ant-1.9.4/usr/local/ant
Create a default soft link to facilitate subsequent environment configuration and future updates
CD/usr/local/ant
Ln-s usr/local/Apache-ant-1.9.4 ant_default
Enter
CD/usr/sbin
Create a soft link for the script
Ln-S/usr/local/ANT/ant_default/bin/ant
Enter ant
Appears
Buildfile: Build. XML does not exist!
Build failed
Description successful
This article is from the "lonely" blog, please be sure to keep this source http://qinheng.blog.51cto.com/8764944/1565332
Centos6.x ant installation tutorial