天天看點

JIRA的安裝配置

一、安裝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 "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/

  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],更新現有的jira安裝[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端口,你将通過浏覽器通路jira

  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;

最新内容請見作者的github頁:http://qaseven.github.io/