实验跑工具需要安装ant
1、官网下载安装包,我的是apache-ant-1.9.13-bin.tar.gz,解压到/usr/local下
sudo tar -zxvf apache-ant-1.9.13-bin.tar.gz -C /usr/local
涉及linux解压、压缩命令,参考:https://www.cnblogs.com/zdz8207/p/3765604.html
2、设置环境变量
sudo gedit ~/.bashrc 添加ANT_HOME与PATH
/etc/profile与bashrc的区别在于profile对整个系统用户有效,bashrc只对当前用户有效。
参考:https://blog.youkuaiyun.com/smile_from_2015/article/details/80058351
3、查看是否安装成功
linux系统安装ant
最新推荐文章于 2021-09-16 11:23:51 发布