CentOS下安装Jira

  安装环境:

# cat /etc/redhat-release 
CentOS release 6.6 (Final)

# uname -a
Linux Jira-it 2.6.32-504.el6.x86_64 #1 SMP Wed Oct 15 04:27:16 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

# java -version
java version "1.6.0_36"
OpenJDK Runtime Environment (IcedTea6 1.13.8) (rhel-1.13.8.1.el6_7-x86_64)
OpenJDK 64-Bit Server VM (build 23.25-b01, mixed mode)
 
# javac -version
javac 1.6.0_36

# mysql -V
mysql  Ver 14.14 Distrib 5.1.73, for redhat-linux-gnu (x86_64) using readline 5.1

Jira检查安装环境:

# /usr/share/jira/atlassian-jira-6.3.6-standalone/bin/version.sh 
                .....
          .... .NMMMD.  ...
        .8MMM.  $MMN,..~MMMO.
        .?MMM.         .MMM?.

     OMMMMZ.           .,NMMMN~
     .IMMMMMM. .NMMMN. .MMMMMN,
       ,MMMMMM$..3MD..ZMMMMMM.
        =NMMMMMM,. .,MMMMMMD.
         .MMMMMMMM8MMMMMMM,
           .ONMMMMMMMMMMZ.
             ,NMMMMMMM8.
            .:,.$MMMMMMM
          .IMMMM..NMMMMMD.
         .8MMMMM:  :NMMMMN.
         .MMMMMM.   .MMMMM~.
         .MMMMMN    .MMMMM?.

      Atlassian JIRA
      Version : 6.3.6
                  
Detecting JVM PermGen support...
PermGen switch is supported. Setting to 384m

If you encounter issues starting or stopping JIRA, please see the Troubleshooting guide at http://confluence.atlassian.com/display/JIRA/Installation+Troubleshooting+Guide


Server startup logs are located in /usr/share/jira/atlassian-jira-6.3.6-standalone/logs/catalina.out
Using CATALINA_BASE:   /usr/share/jira/atlassian-jira-6.3.6-standalone
Using CATALINA_HOME:   /usr/share/jira/atlassian-jira-6.3.6-standalone
Using CATALINA_TMPDIR: /usr/share/jira/atlassian-jira-6.3.6-standalone/temp
Using JRE_HOME:        /usr
Using CLASSPATH:       /usr/share/jira/atlassian-jira-6.3.6-standalone/bin/bootstrap.jar:/usr/share/jira/atlassian-jira-6.3.6-standalone/bin/tomcat-juli.jar
Using CATALINA_PID:    /usr/share/jira/atlassian-jira-6.3.6-standalone/work/catalina.pid
Server version: Apache Tomcat/7.0.55
Server built:   Jul 18 2014 05:34:04
Server number:  7.0.55.0
OS Name:        Linux
OS Version:     2.6.32-504.el6.x86_64
Architecture:   amd64
JVM Version:    1.6.0_36-b36
JVM Vendor:     Sun Microsystems Inc.

安装过程: 1、环境准备

# 放通jira-tcp-8080端口
iptables -I INPUT 4 -m state --state NEW -p tcp -m multiport --dport 22,8080 -j ACCEPT -m comment --comment "accept ssl,jira"
service iptables save

#安装jdk
yum install java-1.6.0-openjdk-devel

#检查是否安装成功
java -version
javac -version

# 安装数据库
yum -y install mysql-server

# 设置开机启动
chkconfig mysqld on

# 配置mysql,/etc/my.cnf 添加以下
[mysqld]
default-character-set=utf8
[client]
default-character-set=utf8


#初次启动会进行数据库初始化
# service mysqld start

# 初次登陆MySQL,并授权
# mysql  

# 配置授权,密码为root
mysql> grant all on *.* to 'root'@'192.168.%.%' identified by 'root';

mysql> grant all on *.* to 'root'@'127.0.0.1' identified by 'root'; 

mysql> grant all on *.* to 'root'@'localhost' identified by 'root';

授权后刷新
mysql> flush privileges;

mysql> exit

授权后重新登录
# mysql -u 'root'@'127.0.0.1' -p

查看数据库编码
mysql> show variables like '%character%';

创建jiradb数据库

mysql> CREATE DATABASE `jiradb` CHARACTER SET utf8 COLLATE utf8_bin;

2、Jira安装

mkdir -p /usr/share/jira

cd /usr/share/jira
wget http://77g9rk.com1.z0.glb.clouddn.com/@/jira/atlassian-jira-6.3.6.tar.gz

tar -zvxf atlassian-jira-6.3.6.tar.gz 

mkdir jira_home
rm atlassian-jira-6.3.6.tar.gz 

# cat /usr/share/jira/atlassian-jira-6.3.6-standalone/atlassian-jira/WEB-INF/classes/jira-application.properties  

# Do not modify this file unless instructed. It is here to store the location of the JIRA home directory only and is typically written to by the installer.
jira.home = /usr/share/jira/jira_home

#Mysql-JDBC
cd /usr/share/jira/atlassian-jira-6.3.6-standalone/atlassian-jira/WEB-INF/lib/
wget http://77g9rk.com1.z0.glb.clouddn.com/@/jira/mysql-connector-java-5.1.25-bin.jar
chown 500:1001 mysql-connector-java-5.1.25-bin.jar 

#启动jira
/usr/share/jira/atlassian-jira-6.3.6-standalone/bin/start-jira.sh

登陆页面并配置 默认启动端口8080,可以修改 /usr/share/jira/atlassian-jira-6.3.6-standalone/conf/server.xml <Connector port=”8080″   Base URL地址,使用域名访问时填写真正访问的域名(NAT发布填写公网IP)  

有些时候会出现要输入Jira注册账号,有些时候不需要(原因不明) ,可以删除dbconfig.xml(jira.home目录里)后,重启jira试试,可能就不需要输入了。

临时密钥:

AAABBw0ODAoPeNptkFtLxDAQhd/zKwI+R9Kwy66FPKxthGhvtF0p4kuso0a6sUwvuP/edissyj4MD
HPOfHOYqzu0tICWeoJy4a+FzzkNwpIK7q1ICF2Ntu3tl5P3Ot89+1SNphnMPCEBwqkJTQ9y9jN+w
zxBPi2a68jW4DpQr/a0rZJS5VmuC0XOBNnjAH/s5bGFxBxABmkcqzzQu2jRTd3bEZaFZvE+AnYzR
JDYWNeDM64G9d1aPJ4TeXxOlOK7cbZbjrbNgkyGwwtg+rbvJpBkHikAR0Adytt0XzFV7R5Y+qQzV
kWZIoVK5FQsWq03YrvdkN/Ekz3S4SXlcpRswPrDdPD/aT+P1nzDMC0CFQCM9+0LlHVNnZQnSTwuR
O3eK+2gVgIUCteTs4Q3khIgrnsY64hxYB/d8bM=X02dh

    汉化、破解

#汉化包
cd /usr/share/jira/atlassian-jira-6.3.6-standalone/atlassian-jira/WEB-INF/atlassian-bundled-plugins/
wget http://77g9rk.com1.z0.glb.clouddn.com/@/jira/JIRA-6.3.3-language-pack-zh_CN.jar
mv JIRA-6.3.3-language-pack-zh_CN.jar jira-languages-6.3.3-zh_CN.jar
chown 500:1001 jira-languages-6.3.3-zh_CN.jar


# 另外一个中文包,未测试
# wget http://77g9rk.com1.z0.glb.clouddn.com/@/jira/JIRA-Language-STD-CN.jar


#注册破解
cd /usr/share/jira/atlassian-jira-6.3.6-standalone/atlassian-jira/WEB-INF/lib/
mv atlassian-extras-2.2.2.jar atlassian-extras-2.2.2.jar.bak
 wget http://77g9rk.com1.z0.glb.clouddn.com/@/jira/atlassian-extras-2.2.2.jar

chown 500:1001 atlassian-extras-2.2.2.jar

#解决 add_ons error 500
cd /usr/share/jira/atlassian-jira-6.3.6-standalone/atlassian-jira/WEB-INF/atlassian-bundled-plugins/
mv atlassian-universal-plugin-manager-plugin-2.17.13.jar atlassian-universal-plugin-manager-plugin-2.17.13.jar.bak
wget http://77g9rk.com1.z0.glb.clouddn.com/@/jira/atlassian-universal-plugin-manager-plugin-2.17.13.jar
chown 500:1001 atlassian-universal-plugin-manager-plugin-2.17.13.jar

#重启jira
/usr/share/jira/atlassian-jira-6.3.6-standalone/bin/stop-jira.sh 
/usr/share/jira/atlassian-jira-6.3.6-standalone/bin/start-jira.sh

再次登录     修改语言   破解授权

Description=JIRA: Commercial,
CreationDate=你的安装日期,格式(yyyy-mm-dd),
jira.LicenseEdition=ENTERPRISE,
Evaluation=false,
jira.LicenseTypeName=COMMERCIAL,
jira.active=true,
licenseVersion=2,
MaintenanceExpiryDate=你想设置的失效日期如:2099-12-31,
Organisation=joiandjoin,
SEN=你申请到的SEN注意没有前缀LID,
ServerID=你申请到的ServerID,
jira.NumberOfUsers=-1,
LicenseID=LID你申请到的SEN,注意LID前缀不要丢掉,
LicenseExpiryDate=你想设置的失效日期如:2099-12-31,
PurchaseDate=你的安装日期,格式(yyyy-mm-dd)
 
本次安装授权码实例为(只需要修改两项 SEN、ServerID):
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=B03D-YTDI-N2KF-EVEH,
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

    发送邮件设置     相关文件下载链接(以上wget路径均为网盘中文件)

链接:http://pan.baidu.com/s/1mgCcYU0 密码:qr59

 

发表评论

电子邮件地址不会被公开。 必填项已用*标注