Linux下安装jira 3.13.4

运行环境:LINUX、JDK1.6、Mysql5、Jira3.13.4

1.     安装JDK

1.1   下载jdk-6u19-linux-x64-rpm.bin,运行安装。

1.2   设置环境变量

        vi /etc/profile,添加如下内容:

        export JAVA_HOME=/usr/java/jdk1.6.0_19/

exportJAVA_BIN=/usr/java/jdk1.6.0_19/bin

exportPATH=$PATH:$JAVA_HOME/bin

        export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

1.3   执行source /etc/profile,使环境变量生效

2.     安装Mysql5 【网上文档很多,不具体说明了】,我使用的是编译好的二进制MYSQL

2.1   创建Jria 数据库

        create database jiradb character set utf8;

2.1   添加用户

        grant all privileges on *.* to 'jirauser'@'%' identified by 'password' with grant option;

grantallprivilegeson*.*to'jirauser'@'localhost'identifiedby'password'withgrantoption;

        flush privileges;

3.     安装Jira

3.1   wget http://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-enterprise-3.13.4-standalone.tar.gz

3.2   tar zxvf atlassian-jira-enterprise-3.13.4-standalone.tar.gz -C /usr/local/

3.3   mv /usr/local/atlassian-jira-enterprise-3.13.4-standalone /usr/local/jira

3.4   设置环境变量:

        vi /etc/profile,添加如下内容:

        export JIRA_HOME=/usr/local/jira/atlassian-jira/

3.5   执行source /etc/profile,使环境变量生效

4      修改Jira配置文件

4.1   cp mysql-connector-java-5.0.8-bin.jar   /usr/local/jira/common/lib

4.2   vi /usr/local/jira/conf/server.xml

        第13行

        username="jirauser"

password="password"

driverClassname="com.mysql.jdbc.Driver"

url="jdbc:mysql://localhost/jiradb?autoReconnect=true&useUnicode=true&characterEncoding=UTF8"

(删除minEvictableIdleTimeMillisandtimeBetweenEvictionRunsMillis项)

         maxActive="20" />

4.3   vi /usr/local/jira/atlassian-jira/WEB-INF/classes/entityengine.xml

        第100行

        <datasource name="defaultDS" field-type-name="mysql"        删除schema-name="PUBLIC"

4.4   启动Jira

        /usr/local/jira/bin/startup.sh

        echo "/usr/local/jira/bin/startup.sh" >> /etc/rc.local 服务器重启自动启动Jira。

4.5   关闭Jira

        /usr/local/jira/bin/shutdown.sh

现在可以通过http://IP:8080/访问Jira,进行页面配置了。

相关推荐