虛擬機(jī)ubuntu14.04搭建agilefant服務(wù)器

1.ubuntu14.04系統(tǒng)安裝

虛擬機(jī)工具:VirtualBox

2.安裝java運(yùn)行時(shí)環(huán)境

安裝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

若官網(wǎng)存在訪問問題,可查找其他資源將jdk-7u80-linux-i586.tar.gz拷貝到本地/var/cache/oracle-jdk7-installer/目錄,然后重新執(zhí)行

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.創(chuàng)建agilefant數(shù)據(jù)庫

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密碼替換為前面設(shè)置的

password = "[strong unique password]"

將agilefant.war拷貝到 [Tomcat path]/webapps/ 目錄,其中[Tomcat path]一般為/var/lib/tomcat7

6. 重啟tomcat7服務(wù),并連接測試

sudo service tomcat7 restart

http://localhost:8080/agilefant

用戶名為admin,密碼是secret



參考文檔:

agilefant安裝指導(dǎo)

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

ubuntu14.04 安裝jdk 的兩種方式

https://www.cnblogs.com/zsr0401/p/6279436.html

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容