1.ubuntu14.04系统安装
虚拟机工具:VirtualBox
2.安装java运行时环境
安装add-apt-repository命令
sudo apt-get install python-software-properties
sudo apt-get install software-properties-common
添加ppa
su
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" > /etc/apt/sources.list.d/webupd8team-java.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" >> /etc/apt/sources.list.d/webupd8team-java.list
exit
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
sudo apt-get update
安装Oracle Java 7 JDK
sudo apt-get install oracle-java7-installer
若官网存在访问问题,可查找其他资源将jdk-7u80-linux-i586.tar.gz拷贝到本地/var/cache/oracle-jdk7-installer/目录,然后重新执行
http://ftp.osuosl.org/pub/funtoo/distfiles/oracle-java/jdk-7u80-linux-i586.tar.gz
3.安装tomcat7
sudo apt-get install tomcat7
4.安装mysql
sudo apt-get install mysql-server-5.6
5.创建agilefant数据库
mysql -u [mysql username] -p
create database agilefant;
grant all on agilefant.* to agilefant@localhost identified by '[strong unique password]';
exit;
5.安装agilefant
下载地址:https://sourceforge.net/projects/agilefant/files/latest/download
解压agilefant-3.5.4.zip出其中的agilefant.war
将agilefant.war中/WEB-INF/agilefant.conf密码替换为前面设置的
password = "[strong unique password]"
将agilefant.war拷贝到 [Tomcat path]/webapps/ 目录,其中[Tomcat path]一般为/var/lib/tomcat7
6. 重启tomcat7服务,并连接测试
sudo service tomcat7 restart
http://localhost:8080/agilefant
用户名为admin,密码是secret
参考文档:
agilefant安装指导
https://github.com/Agilefant/agilefant/wiki/Agilefant-installation-guide#installation-guide-for-ubuntu
Unable to locate package oracle-java7-installer
http://blog.csdn.net/program_red/article/details/53820100
https://www.cnblogs.com/zsr0401/p/6279436.html