- 部署mysql数据库,我这里使用mariadb数据库,并且创建jira的数据库和用户,下面是创建jira数据库和用户的操作,安装数据库mysq过程略。(MYSQL数据库也是可以的,不过mysql的驱动包得单独找)
MariaDB [(none)]> create database jira character set utf8;
MariaDB [(none)]> grant all on jira.* to 'jira'@'localhost' identified by 'jirapass';
MariaDB [(none)]> FLUSH PRIVILEGES;
- 解压安装
useradd jira
tar zxf atlassian-jira-6.3.6.tar.gz -C /app/jira
cd /app
chown -Rf jira:jira jira
- 配置数据存储路径
mkdir /data/jira
chown -Rf jira:jira jira
- 配置jira_home
vim /app/jira/atlassian-jira/WEB-INF/classes/jira-application.properties
将mysql驱动拷贝放入到 /app/jira/atlassian-jira/WEB-INF/lib/
- 启动
/app/jira/bin/start-jira.sh
自主选择安装,需要使用以下试用key
AAABBw0ODAoPeNptkFtLxDAQhd/zKwI+R9Kwy66FPKxthGhvtF0p4kuso0a6sUwvuP/edissyj4MD
HPOfHOYqzu0tICWeoJy4a+FzzkNwpIK7q1ICF2Ntu3tl5P3Ot89+1SNphnMPCEBwqkJTQ9y9jN+w
zxBPi2a68jW4DpQr/a0rZJS5VmuC0XOBNnjAH/s5bGFxBxABmkcqzzQu2jRTd3bEZaFZvE+AnYzR
JDYWNeDM64G9d1aPJ4TeXxOlOK7cbZbjrbNgkyGwwtg+rbvJpBkHikAR0Adytt0XzFV7R5Y+qQzV
kWZIoVK5FQsWq03YrvdkN/Ekz3S4SXlcpRswPrDdPD/aT+P1nzDMC0CFQCM9+0LlHVNnZQnSTwuR
O3eK+2gVgIUCteTs4Q3khIgrnsY64hxYB/d8bM=X02dh
完成后倒入汉化包, add-ones---> manager-addones
导入就行了
中文插件上传完成之后会默认变到中文字体,因为上传中文语言包之后默认语言会变为中文,如果没变,可以自行在系统设置修改
- 破解,替换下面路径的atlassian-extras-2.2.2.jar
/app/jira/atlassian-jira/WEB-INF/lib/
- 替换atlassian-universal-plugin-manager-plugin-2.17.13.jar,不然插件用不了
cp atlassian-universal-plugin-manager-plugin-2.17.13.jar /app/jira/atlassian-jira/WEB-INF/atlassian-bundled-plugins/
重启即可
重新导入授权
Description=JIRA: Commercial,
CreationDate=2014-09-20,
jira.LicenseEdition=ENTERPRISE,
Evaluation=false,
jira.LicenseTypeName=COMMERCIAL,
jira.active=true,
licenseVersion=2,
MaintenanceExpiryDate=2099-12-31,
Organisation=pl,
SEN=SEN-L4572887,
ServerID=BPT3-4QRK-FCRR-HEP3,
jira.NumberOfUsers=-1,
LicenseID=AAABBw0ODAoPeNptkFtLxDAQhd/zKwI+R9Kwy66FPKxthGhvtF0p4kuso0a6sUwvuP/edissyj4MD
HPOfHOYqzu0tICWeoJy4a+FzzkNwpIK7q1ICF2Ntu3tl5P3Ot89+1SNphnMPCEBwqkJTQ9y9jN+w
zxBPi2a68jW4DpQr/a0rZJS5VmuC0XOBNnjAH/s5bGFxBxABmkcqzzQu2jRTd3bEZaFZvE+AnYzR
JDYWNeDM64G9d1aPJ4TeXxOlOK7cbZbjrbNgkyGwwtg+rbvJpBkHikAR0Adytt0XzFV7R5Y+qQzV
kWZIoVK5FQsWq03YrvdkN/Ekz3S4SXlcpRswPrDdPD/aT+P1nzDMC0CFQCM9+0LlHVNnZQnSTwuR
O3eK+2gVgIUCteTs4Q3khIgrnsY64hxYB/d8bM=X02dh,
LicenseExpiryDate=2099-12-31,
PurchaseDate=2014-09-20
- 开机自启
#!/bin/bash
#chkconfig:2345 80 05 --指定在哪几个级别执行,0一般指关机,
#description:jira service
RETVAL=0
start(){
echo -n "start jira serive ..."
cd /app/jira/bin
su jira -c "/app/jira/bin/start-jira.sh" >/dev/null 2>&1
echo -n "start jira ok ..."
}
stop(){
echo -n "stop jira serive ..."
cd /app/jira/bin
su jira -c "/app/jira/bin/stop-jira.sh" >/dev/null 2>&1
echo -n "stop jira ok ..."
}
case $1 in
start)
start
;;
stop)
stop
;;
esac
exit $RETVAL