一、安裝JDK+tomcat
1.下載JDK
http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u2-download-1377129.html
2.安裝JDK(RPM方式)
rpm -ivh jdk-7u2-linux-i586.rpm
3.下載tomcat
wget http://apache.etoak.com/tomcat/tomcat-7/v7.0.23/bin/apache-tomcat- 7.0.23.tar.gz
4.安裝tomcat
tar zxvf apache-tomcat-7.0.23.tar.gz
mv apache-tomcat-7.0.23 /usr/local/tomcat
修改/etc/profile
export CATALINA_HOME=/usr/local/tomcat
export CLASSPATH=$JAVA_HOME/lib:$CATALINA_HOME/lib
export PATH=$PATH:$CATALINA_HOME/bin
export JAVA_HOME=/usr/java/jdk1.7.0_02
source /etc/profile
/usr/local/tomcat/bin/catalina.sh start (關閉tomcat ./shutdown.sh stop)
java -version
屏幕輸出:
java version "1.7.0_02"
Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
Java HotSpot(TM) Client VM (build 22.0-b10, mixed mode, sharing)
安裝完畢
netstat -ntl |grep 8080
http://localhost:8080/
5.安裝JIRA
wget http://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-4.4.4-x32.bin
wget http://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-4.4.4-x64.bin
chmod 755 atlassian-jira-4.4.4-x32.bin
./atlassian-jira-4.4.4-x32.bin
出現提示:
Unpacking JRE ...
Starting Installer ...
This will install JIRA 4.4 on your computer. #安裝jira4.4在你的機器上。
OK [o, Enter], Cancel [c] # 按回車確認安裝
If JIRA is already installed on this machine, please read the following information carefully.Please choose between creating a new JIRA installation or upgrading an existing JIRA installation.
#如果j ira已經安裝在這臺機器,請閱讀以下資料仔細。請選擇創建一個新的j ira之間安裝或升級現有的jira安裝。
Create a new JIRA installation. [1, Enter], Upgrade an existing JIRA installation. [2] #直接回車,安裝新的
#創建一個新的j ira安裝[1],更新現有的j ira安裝[2]。
Where should JIRA 4.4 be installed? #安裝路徑。本人安裝在/usr/local/jira ,在後面輸入/usr/local/jira ,按回車;
[/opt/atlassian/jira]
/usr/local/jira
Default location for JIRA data #存放數據路徑,本人安裝在/usr/local/jira_home,在後面輸入/usr/local/jira_home ,按回車;
[/var/atlassian/application-data/jira]
/usr/local/jira_home
Configure which ports JIRA will use.
JIRA requires two TCP ports that are not being used by any other
applications on this machine. The HTTP port is where you will access JIRA
through your browser. The Control port is used to Startup and Shutdown JIRA.
#配置一種端口。需要兩個TCP端口j ira不被任何其他應用佔用。HTTP端口,你將通過瀏覽器訪問j ira
Use default ports (HTTP: 8080, Control: 8005) - Recommended [1, Enter], Set custom value for HTTP and Control ports [2]
#使用默認端口(HTTP:8080 ,控制:8005)——建議[1]],
JIRA can be run in the background.
You may choose to run JIRA as a service, which means it will start
automatically whenever the computer restarts.
Install JIRA as Service?
Yes [y, Enter], No [n] #按回車
#讓 j ira可以在後臺運行。當計算機重啓時自動啓動jira程序。
Setup has finished installing JIRA 4.4 on your computer.
JIRA 4.4 can be accessed at http://localhost:8080
Finishing installation ...
下載插件文件:
對於JIRA4.3及以上版本,將文件名稱修改爲jira-lang-zh_CN-JIRA版本號.jar
將插件複製到JIRA安裝路徑下:/usr/local/jira/atlassian-jira/WEB-INF/lib
重新啓動JIRA服務:service jira start
停止JIRA服務:server jiar stop
6.安裝mysql驅動
wget http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector- java-5.1.13.tar.gz/from/http://gd.tuwien.ac.at/db/mysql/
tar zxvf java-5.1.13.tar.gz
cp mysql-connector-java-5.1.13-bin.jar /usr/local/jira/atlassian-jira/WEB-INF/lib
7.創建數據庫
create database jira character set utf8;
grant all on jira.* to 'jira'@'localhost' indentified by 'jira';
flush privileges;
quit;
參考文檔: http://confluence.atlassian.com/display/JIRA043/JIRA+Documentation
https://answers.atlassian.com/
http://www.atlassian.com/resources/support