• jira4.1.1安装


    wget http://downloads.atlassian.com/software/jira/downloads/atlassian-jira-enterprise-4.1.1-standalone.tar.gz

    wget http://downloads.atlassian.com/software/greenhopper/downloads/jira-greenhopper-plugin-4.4.1.jar

    JDK安装

    http://java.sun.com/javase/downloads/widget/jdk6.jsp

    /usr/jdk-6u20-linux-i586-rpm.bin

    配置环境变量

    vi /etc/profile

    export JAVA_HOME=/usr/java/jdk1.6.0_20
    export JRE_HOME=/usr/java/jdk1.6.0_20/jre
    export PATH=/usr/java/jdk1.6.0_20/bin:$PATH
    export CLASSPATH=./:/usr/java/jdk1.6.0_20/lib:/usr/java/jdk1.6.0_20/jre/lib

    ------------------------

    source /etc/profile

    在jira-application.properties中配置一个jira.home

    cd /opt/jira-4.1.1/atlassian-jira/WEB-INF/classes

    vi jira-application.properties

    jira.home = /opt/jira-4.1.1/data

    破解补丁http://cid-96dbfec9c10f1efa.office.live.com/self.aspx/.Public/jira%5E_crack.rar

    (直接使用该地址下载的文件无效,点击该地址会进入下载页面,在里面下载才行)

    优化汉化包http://www.fangwai.net/software/jira/download/language_zh_CN.jar

    copy  jira-greenhopper-plugin-4.4.1.jar  /opt/jira-4.1.1/data/plugins/installed-plugins

    copy  language_zh_CN.jar   /opt/jira-4.1.1/atlassian-jira/WEB-INF/lib

    解压 jira_crack.rar (有2个class文件)

    mkdir -p /opt/jira-4.1.1/atlassian-jira/WEB-INF/classes/com/atlassian/extras/decoder/v2

    cp Version2LicenseDecoder.class  /opt/jira-4.1.1/atlassian-jira/WEB-INF/classes/com/atlassian/extras/decoder/v2

    cp JiraLicenseStoreImpl.class /opt/jira-4.1.1/atlassian-jira/WEB-INF/classes/com/atlassian/jira/license

    启动 JIRA 

    登陆 http://localhost:8080 

    明文注册 
    JIRA 的License: 

    #Sun Oct 25 00:50:34 CDT 2009 
    Description=JIRA\: COMMERCIAL 
    CreationDate=2009-10-25 
    ContactName=haha@haha.haha 
    jira.LicenseEdition=ENTERPRISE 
    ContactEMail=haha@haha.haha 
    Evaluation=false 
    jira.LicenseTypeName=COMMERCIAL 
    jira.active=true 
    licenseVersion=2 
    MaintenanceExpiryDate=2015-10-24 
    Organisation=haha 
    jira.NumberOfUsers=-1 
    ServerID=B6FW-B4KW-J1A3-4DQB 
    LicenseID=LID 
    LicenseExpiryDate=2015-10-24 
    PurchaseDate=2009-10-25 
    (注意复制过去行每行尾会有空格,把空格删掉!ServerID注意要修改为自己的ServerID) 
    --------------------------------------------------------- 
    1、使用jira管理员登录全局权限设置 

    2、在系统管理页面上点击工具栏上的“系统管理”并且选择全局配置,可以看到GreenHopper 

    3、在updata License出输入以下内容: 
    Description=GreenHopper for JIRA 4\: COMMERCIAL 
    CreationDate=2009-10-25 
    ContactName=haha@haha.haha 
    greenhopper.NumberOfUsers=-1 
    greenhopper.LicenseTypeName=COMMERCIAL 
    ContactEMail=haha@haha.haha 
    Evaluation=false 
    greenhopper.LicenseEdition=ENTERPRISE 
    licenseVersion=2 
    MaintenanceExpiryDate=2015-10-24 
    Organisation=haha 
    greenhopper.active=true 
    LicenseID=LID 
    LicenseExpiryDate=2015-10-24 
    PurchaseDate=2009-10-25

     


    (注意复制过去行每行尾会有空格,把空格删掉!) 

    4、单点ADD,破解完成。 
    覆盖破解文件和增加plugin时经常发生JIRA访问报错

    JIRA' is already locked. Please see the JIRA documentation for more information on locked jira.home directories. 
    解决办法: 
    将.jira-home.lock文件删除重启即可

    ---------------------JIRA+MYSQL-----------------------------------------

    Mysql的安装看这里

    http://starsliao.blog.163.com/blog/static/89048201041553024170/

     

    创建数据库:
    mysql -u root -p
    create database jiradb character set ‘UTF8′;
    创建用户并赋与权限:
    create user jirauser identified by ‘jira’;
    grant all privileges on *.* to identified by ‘jira’ with grant option;
    grant all privileges on *.* to identified by ‘jira’ with grant option;
    flush privileges;
    identified by ‘jira’这个是设置jirauser的密码
     
    2、修改JIRA端口
    JIRA是集成在Tomcat上面的,所以修改端口的方法和Tomcat修改端口的方法是一样的。
    3、JIRA默认使用的数据库是HSql,如果要迁移到MySQL,可以通过以下的配置改动。
    1)修改server.xml (路径:/opt/jira-4.1.1/conf)
    修改数据库连接配置(<Context path="" docBase="${catalina.home}/atlassian-jira" reloadable="false">下面):

    <Resource name="jdbc/JiraDS" auth="Container" type="javax.sql.DataSource"

    driverClassName="com.mysql.jdbc.Driver"
    url="jdbc:mysql://127.0.0.1/jiradb?autoReconnect=true&amp;useUnicode=true&amp;characterEncoding=UTF8"
    username="xxx"
    password="xxx"
    (删除minEvictableIdleTimeMillis and timeBetweenEvictionRunsMillis项 )
    maxActive=”20″
    />
    注:以上“localhost”可不该,也可改为主机名或设为”主机IP:端口“,mysql端口号为”3306“。
    b)修改entityengine.xml (路径:/opt/jira-4.1.1/atlassian-jira/WEB-INF/classes)
    第100行修改为:
    <datasource name=”defaultDS” field-type-name=”mysql”
    并且删除schema-name=”PUBLIC”
    4、安装连接驱动包 Mysql JDBC Driver

    cp mysql-connector-java-5.1.10.jar /opt/jira-4.1.1/lib/mysql-connector-java-5.1.10.jar
    5、启动JIRA服务 。

  • 相关阅读:
    改变人生的32句励志名言(转载)
    Unrecognized Attribute 'xmlns' when working with VS.NET Express Edition
    学外语的十条珍贵经验(转)
    自考版“八荣八耻”
    弟弟手机丢了
    近期准备学习3本书
    盗版vs2005.net买不到
    非常希望有“苏州.net俱乐部”
    My twenty,the end of a dynasty.
    死递归:“段错误”产生的可能原因之一
  • 原文地址:https://www.cnblogs.com/iapp/p/3631750.html
Copyright © 2020-2023  润新知