Jira安装–java(JDK)
版本说明
CentOS Linux release 7.3.1611 (Core)
MySQL 5.7.25 Community Server (GPL)
java version "1.8.0_211"
atlassian-jira-software-7.3.6
1.安装JDK 1.8.0
提醒:jira需要oracle的java,默认的openjdk是不行的。 下载: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
centos选择 jdk-8u211-linux-x64.rpm
rpm -ivh jdk-8u211-linux-x64.rpm
java -version
2.安装MYSQL5.7
参考:
https://blog.youkuaiyun.com/lswzw/article/details/89151740
3.安装JIRA
下载jira 服务器版本Download jira softwar server。下载地址:https://www.atlassian.com/software/jira/download
1.解压
tar zxvf atlassian-jira-software-7.3.6.tar.gz
mv atlassian-jira-software-7.3.6-standalone /Jira7.3.6
2.给jira安装mysql驱动com.mysql.jdbc.Driver
如果不安装,数据库没有办法链接,jira Could not find driver with class name: com.mysql.jdbc.Driver
下载:mysql-connector-java-5.1.42.tar.gz
wget https://cdn.mysql.com//Downloads/Connector-J/mysql-connector-java-5.1.42.tar.gz
tar zxvf mysql-connector-java-5.1.42.tar.gz
将mysql-connector-java-5.1.42-bin.jar复制到jira的安装目录下的confluence/WEB-INF/lib/目录
cp mysql-connector-java-5.1.42-bin.jar /Jira7.3.6/atlassian-jira/WEB-INF/lib/
3.配置jira_home ,这个目录不能是安装目录。
mkdir /Jiradate
vi /Jira7.3.6/atlassian-jira/WEB-INF/classes/jira-application.properties
#添加home路径
jira.home = /Jiradate
4.添加开机启动
vi /etc/rc.local
#添加启动
/bin/sh /Jira7.3.6/bin/start-jira.sh
5.运行
/bin/sh /Jira7.3.6/bin/start-jira.sh
http://服务器IP:8080 就可以访问了。
4.扩展知识
安装好后想改数据库密码。
修改下面文件(jira_home指定的目录。里面的dbconfig.xml)
/Jiradate/dbconfig.xml