一、安装jira7.2.2
wget https://downloads.atlassian.com/software/jira/downloads/atlassian-jira-software-7.2.2-x64.bin
1)mysql5.6准备:
jira7.2.2不支持mysql最新版5.7
如果已安装5.7,需要卸载并清除5.7:
sudo dpkg -l | grep mysql
sudo apt-get purge 上面命令显示的包
安装5.6版本:
sudo apt-get install software-properties-common
sudo add-apt-repository ‘deb http://archive.ubuntu.com/ubuntu trusty universe’
sudo apt-get update
sudo apt install mysql-server-5.6
2)jira安装步骤
1、现在开始安装jira7.2.2,使用如下命令设置权限:
chmod 755 atlassian-jira-software-7.2.2-x64.bin
2、运行文件开始安装
./atlassian-jira-software-7.2.2-x64.bin
3、下载破解包和mysql驱动
https://page00.ctfile.com/fs/15323800-217439079
关闭jira服务,sudo /opt/atlassian/jira/bin/shutdown.sh
开启jira服务,sudo /opt/atlassian/jira/bin/startup.sh
4、关闭jira,然后把破解包里面的atlassian-extras-3.1.2.jar和mysql-connector-java-5.1.39-bin.jar两个文件复制到/opt/atlassian/jira/atlassian-jira/WEB-INF/lib/目录下。
文件用途:atlassian-extras-3.1.2.jar是用来替换原来的atlassian-extras-3.1.2.jar文件,用作破解jira系统的。 mysql-connector-java-5.1.39-bin.jar是用来连接mysql数据库的驱动软件包。
5、启动jira服务
6、mysql新建数据库,命名jiradb
7、运行 http://服务器ip:8080
8、选择我的数据库,输入mysql的配置信息
9、jira官网申请license
配置文件/opt/atlassian/jira/conf/server.xml
二、以下为配置域名
配置nginx代理
location /{
proxy_set_header X-Forwarded-Host host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_pass http://10.10.0.0:8080; # 修改成jira服务器的IP
client_max_body_size 10M;
}
jira配置
配置文件路径 /opt/atlassian/jira/conf/server.xml
connector 使用如下配置,proxyName 使用自己配置的jira域名
<Service name="Catalina">
<Connector port="8080"
maxThreads="150"
minSpareThreads="25"
connectionTimeout="20000"
enableLookups="false"
maxHttpHeaderSize="8192"
protocol="HTTP/1.1"
useBodyEncodingForURI="true"
redirectPort="443"
acceptCount="100"
disableUploadTimeout="true"
scheme="https"
proxyName="jira.xxxxx.com"
proxyPort="443"
bindOnInit="false"/>
头像可能会出问题,增加以下配置
scheme="https"
proxyName="jira.xxxxx.com"
proxyPort="443"
bindOnInit="false"
三、jira更换默认数据库为mysql方案如下:
1、编辑/var/atlassian/application-data/jira/dbconfig.xml文件,修改配置如下:
<jira-database-config>
<name>defaultDS</name>
<delegator-name>default</delegator-name>
<database-type>mysql</database-type>
<jdbc-datasource>
<url>jdbc:mysql://localhost:3306/jiradb?autoReconnect=true&useUnicode=true&characterEncoding=UTF8</url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<username>root</username>
<password>root</password>
<pool-size>20</pool-size>
<min-evictable-idle-time-millis>4000</min-evictable-idle-time-millis>
<time-between-eviction-runs-millis>5000</time-between-eviction-runs-millis>
</jdbc-datasource>
</jira-database-config>
2、重启jira
四、中文汉化
1、
2、上传汉化包
3、设置语言