jira 3.7.4 安装配置

1.所需软件

atlassian-jira-enterprise-3.7.4-standalone.tar.gz
atlassian-jira-subversion-plugin-0.9.8.zip
jdk-1_5_0_08-linux-i586.bin
mysql-connector-java-5.0.3.tar.gz

2.安装JDK
解压jdk-1_5_0_08-linux-i586.bin 生成jdk1.5.0_08目录

./jdk-1_5_0_08-linux-i586.bin
mv jdk1.5.0_08 /usr/local/

设置JAVA_HOME
vi /etc/profile
在export前面添加两行
JAVA_HOME=/usr/local/jdk1.5.0_08
pathmunge $JAVA_HOME/bin

source /etc/profile
java 检测

3.设置MYSQL
Create a MySQLuser called ‘jirauser’ and database called ‘jiradb’:
//创建mysql用户jirauser,密码:mypassword
//创建数据库jiradb

jturner@teacup:~$ mysql –user=root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 559 to server version: 5.0.13-rc-Debian_1-log
Type ‘help;’ or ‘h’ for help. Type ‘c’ to clear the buffer.

mysql> create database jiradb character set utf8;
Query OK, 1 row affected (0.02 sec)
mysql> GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER,INDEX on
jiradb.* TO ‘jirauser’@’localhost’ IDENTIFIED BY ‘mypassword’;
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> quit
Bye

4.安装
解压jira
tar zxvf atlassian-jira-enterprise-3.7.4-standalone.tar.gz
mv atlassian-jira-enterprise-3.7.4-standalone /home/jira
cd /home/jira

解压mysql-connector-java-5.0.3.tar.gz
tar zxvf mysql-connector-java-5.0.3.tar.gz
把mysql-connector-java-5.0.3-bin.jar 文件拷到 common/lib/ 目录
cp mysql-connector-java-5.0.3-bin.jar comm/lib/

编辑 conf/server.xml 文件,  设置用户名、密码、驱动类名、数据源 url参数:
<Engine name=”Catalina” defaultHost=”localhost”>
      <Host name=”localhost” appBase=”webapps” unpackWARs=”true” autoDeploy=”true”>
        <Context path=”” docBase=”${catalina.home}/atlassian-jira” reloadable=”false”>
          <Resource name=”jdbc/JiraDS” auth=”Container” type=”javax.sql.DataSource”
            username=”jirauser”
            password=”mypassword”
            driverClassName=”com.mysql.jdbc.Driver”
            url=”jdbc:mysql://localhost/jira?autoReconnect=true&amp;useUnicode=true&amp;characterEncoding=UTF8″/>”
            maxActive=”20″ />

编辑 atlassian-jira/WEB-INF/classes/entityengine.xml, 改变 field-type-name 属性为mysql:
<datasource name=”defaultDS” field-type-name=”mysql”
    helper-class=”org.ofbiz.core.entity.GenericHelperDAO”
        check-on-start=”true”     
        …参见http://www.atlassian.com/software/jira/docs/latest/standalone-dbconfig.html

5.启动JIRA
./bin/startup.sh 启动
打开http://localhost:8080  并进行配置,
选择中文,设置相关索引、附件、备份路径及邮件服务器地址、管理员帐号,完成配置即可登陆JIRA

6.配置subversion
解压atlassian-jira-subversion-plugin-0.9.8.zip
unzip atlassian-jira-subversion-plugin-0.9.8.zip

1) Copy into JIRA’s WEB-INF/lib (removing any existing older versions):
– lib/atlassian-subversion-plugin-0.9.8.jar
– lib/javasvn-*.jar
– lib/ganymed.jar (only used if you are using ssh authentication for your subversion repository)
2) Edit for your installation:
– atlassian-jira/WEB-INF/classes/subversion-jira-plugin.properties

7.设置自动启动
cp jira /etc/init.d/
chkconfig –add jira
chkconfig –list jira

jira启动脚本内容:
—————————————————-

#!/bin/bash
#
# chkconfig: 2345 85 15
# description: jira
# processname: jira
# source function library
. /etc/init.d/functions
CATALINA_HOME=”/home/jira”
RETVAL=0
start() {
        echo -n $”Starting jira services: “
        . $CATALINA_HOME/bin/catalina.sh start
        RETVAL=$?
        echo
}
stop() {
        echo -n $”Shutting down jira services: “
        . $CATALINA_HOME/bin/catalina.sh stop
        RETVAL=$?
        echo
}
case “$1” in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart|reload)
        stop
        start
        ;;
  status)
        status jira
        RETVAL=$?
        ;;
  *)
        echo $”Usage: $0 {start|stop|restart|status}”
        exit 1
esac
exit $RETVAL

———————————————————

8.与apache集成
http://www.atlassian.com/software/jira/docs/v3.4.3/apacheintegration.html

修改conf/server.xml
<Server port=”8005″ shutdown=”SHUTDOWN”>

  <Service name=”Catalina”>

    <Connector port=”8080″
      maxHttpHeaderSize=”8192″ maxThreads=”150″ minSpareThreads=”25″ maxSpareThreads=”75″
      enableLookups=”false” redirectPort=”8443″ acceptCount=”100″ connectionTimeout=”20000″ disableUploadTimeout=”true”
      proxyName=”mycompany.com” proxyPort=”80″ />

    <Engine name=”Catalina” defaultHost=”localhost”>
      <Host name=”localhost” appBase=”webapps” unpackWARs=”true” autoDeploy=”true”>

        <Context path=”/jira” docBase=”${catalina.home}/atlassian-jira” reloadable=”false”>
          <Resource name=”jdbc/JiraDS” auth=”Container” type=”javax.sql.DataSource”

http.conf 添加

---------------------------
<Proxy *>
Order deny,allow
Allow from all
</Proxy>

ProxyRequests       Off
ProxyPreserveHost On
ProxyPass           /jira       http://localhost:8080/jira
ProxyPassReverse    /jira       http://localhost:8080/jira

ServerAdmin webmaster@mycompany.com

—————————————————-

9.jira破解

新建crack.sh文件,内容:
—————————————————
export JIRA_HOME=/home/jira
export JIRA_LIB=$JIRA_HOME/atlassian-jira/WEB-INF/lib
export CLASSPATH=.:atlassian-core-2006-12-04.jar:$JIRA_LIB/atlassian-extras-0.7.29.jar:$JIRA_LIB/log4j-1.2.7.jar
export PATH=$PATH:$JAVA_HOME/bin
java keygen
——————————————————–

//keygen.class 为破解文件

运行crack.sh

获得授权码,填入jira的license窗口,ok。

发表回复

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

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据