zoukankan      html  css  js  c++  java
  • jira 4.0.2 的详细安装+破解

    准备条件: 
    环境变量:JAVA_HOME=C:\jdk1.6.0_10(注意jdk版本>=此版本) 
    第一步:下载jira http://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-enterprise-4.0.2-standalone.zip,解压 to E:/jira 
    第二步:下载Mysqlhttp://download.mysql.cn/download_file/zip/5.0/mysql-5.0.18-win32.zip 创建数据库:(SID :jiradb,默认用户root,密码:123456) 
    第三步:下载mysql jdbc驱动,看附件 mysql-connector-java-3.1.14-bin.jar ,复制到 E:\jira\common\lib 目录中 
    第四步:下载附件jira_crack.rar(108.6 KB),解压出来为:atlassian-jira 文件夹,然后覆盖 E:\jira\atlassian-jira, 
    第五步:直接复制下面代码覆盖E:\jira\conf\server.xml 
    Java代码 
    1. <Server port="8005" shutdown="SHUTDOWN">  
    2.   
    3.   <Service name="Catalina">  
    4.   
    5.     <Connector port="8080"  
    6.       maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" useBodyEncodingForURI="true"  
    7.       enableLookups="false" redirectPort="8443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" />  
    8.   
    9.     <Engine name="Catalina" defaultHost="localhost">  
    10.       <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">  
    11.   
    12.         <Context path="" docBase="${catalina.home}/atlassian-jira" reloadable="false">  
    13.           <!--Resource name="jdbc/JiraDS" auth="Container" type="javax.sql.DataSource"  
    14.             username="sa"  
    15.             password=""  
    16.             driverClassName="org.hsqldb.jdbcDriver"  
    17.             url="jdbc:hsqldb:${catalina.home}/database/jiradb"  
    18.             minEvictableIdleTimeMillis="4000"  
    19.             timeBetweenEvictionRunsMillis="5000"  
    20.             maxActive="20" /-->  
    21.             <Resource name="jdbc/JiraDS" auth="Container" type="javax.sql.DataSource"  
    22.             username="root"  
    23.             password="123456"  
    24.             driverClassName="com.mysql.jdbc.Driver"  
    25.             url="jdbc:mysql://localhost/jiradb?autoReconnect=true&amp;useUnicode=true&amp;characterEncoding=UTF8"  
    26.             maxActive="20" />  
    27.   
    28.           <!-- NOTE: When a database server reboots or their is a network failure all the connections in the  
    29.           * connection pool are broken and normally this requires a Application Server reboot. If you include the  
    30.           * parameter validationQuery="{QUERY FOR YOUR DB HERE} as show below a new connection is created to replace it.  
    31.           * For more information see http://confluence.atlassian.com/display/JIRA/Surviving+Connection+Closures  
    32.           *  
    33.           * validationQuery="Select 1"  
    34.              -->  
    35.   
    36.           <!-- NOTE: If you use a database other than hsqldb:  
    37.           * delete the minEvictableIdleTimeMillis and timeBetweenEvictionRunsMillis attributes  
    38.           * change the database type in atlassian-jira/WEB-INF/classes/entityengine.xml  
    39.           -->  
    40.   
    41.           <Resource name="UserTransaction" auth="Container" type="javax.transaction.UserTransaction"  
    42.             factory="org.objectweb.jotm.UserTransactionFactory" jotm.timeout="60"/>  
    43.           <Manager pathname=""/>  
    44.         </Context>  
    45.   
    46.       </Host>  
    47.   
    48.       <!--  
    49.             Enable access logging.  
    50.   
    51.             This should produce access_log.<date> files in the 'logs' directory.  
    52.   
    53.             The output access log lies has the following fields :  
    54.   
    55.             IP Request_Id User Timestamp  "HTTP_Method URL Protocol_Version" HTTP_Status_Code ResponseSize_in_Bytes RequestTime_In_Millis Referer User_Agent ASESSIONID  
    56.   
    57.             eg :  
    58.   
    59.             192.168.3.238 1243466536012x12x1 admin [28/May/2009:09:22:17 +1000"GET /jira/secure/admin/jira/IndexProgress.jspa?taskId=1 HTTP/1.1" 200 24267 1070 "http://carltondraught.sydney.atlassian.com:8090/jira/secure/admin/jira/IndexAdmin.jspa" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.10) Gecko/2009042523 Ubuntu/9.04 (jaunty) Firefox/3.0.10" "C2C99B632EE0F41E90F8EF7A201F6A78"  
    60.   
    61.             NOTES:  
    62.   
    63.             The RequestId is a millis_since_epoch plus request number plus number of concurrent users  
    64.   
    65.             The Request time is in milliseconds  
    66.   
    67.             The ASESSIONID is an MD5 hash of the JSESSIONID and hence is safe to publish within logs.  A session cannot be reconstructed from it.  
    68.   
    69.             See http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html for more information on Tomcat Access Log Valves  
    70.        -->  
    71.       <Valve className="org.apache.catalina.valves.AccessLogValve" resolveHosts="false"  
    72.               pattern="%a %{jira.request.id}r %{jira.request.username}r %t &quot;%m %U%q %H&quot; %s %b %D &quot;%{Referer}i&quot; &quot;%{User-Agent}i&quot; &quot;%{jira.request.assession.id}r&quot;"/>  
    73.   
    74.     </Engine>  
    75.   
    76.         <!-- To run JIRA via HTTPS:  
    77.               * Uncomment the Connector below  
    78.               * Execute:  
    79.                   %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)  
    80.                   $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA  (Unix)  
    81.                 with a password value of "changeit" for both the certificate and the keystore itself.  
    82.               * If you are on JDK1.3 or earlier, download and install JSSE 1.0.2 or later, and put the JAR files into  
    83.                 "$JAVA_HOME/jre/lib/ext"  
    84.               * Restart and visit https://localhost:8443/  
    85.   
    86.               For more info, see http://jakarta.apache.org/tomcat/tomcat-5.5-doc/ssl-howto.html  
    87.          -->  
    88.         <!--  
    89.             <Connector port="8443" maxHttpHeaderSize="8192"  
    90.               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"  
    91.               enableLookups="false" disableUploadTimeout="true"  
    92.               acceptCount="100" scheme="https" secure="true"  
    93.               clientAuth="false" sslProtocol="TLS" useBodyEncodingForURI="true"/>  
    94.         -->  
    95.   
    96.         <!-- To connect to an external web server (typically Apache) -->  
    97.         <!-- Define an AJP 1.3 Connector on port 8009 -->  
    98.         <!--  
    99.             <Connector port="8009"  
    100.               enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />  
    101.         -->  
    102.   
    103.   
    104.   </Service>  
    105.   
    106.   <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />  
    107.   <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />  
    108.   <Listener className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>  
    109.   
    110. </Server>  

    第六步:目录 E:\jira\atlassian-jira\WEB-INF\classes\entityengine.xml文件中的 <datasource name="defaultDS" field-type-name="hsql"........</datasource> 用以下代码替换: 
    Java代码 
    1. <datasource name="defaultDS" field-type-name="mysql"  
    2.       helper-class="org.ofbiz.core.entity.GenericHelperDAO"  
    3.       check-on-start="true"  
    4.       use-foreign-keys="false"  
    5.       use-foreign-key-indices="false"  
    6.       check-fks-on-start="false"  
    7.       check-fk-indices-on-start="false"  
    8.       add-missing-on-start="true"  
    9.       check-indices-on-start="true">  
    10.         <jndi-jdbc jndi-server-name="default" jndi-name="java:comp/env/jdbc/JiraDS"/>  
    11. <!-- Orion format: <jndi-jdbc jndi-server-name="default" jndi-name="jdbc/JiraDS"/> -->  
    12. <!-- JBoss format: <jndi-jdbc jndi-server-name="default" jndi-name="java:/JiraDS"/> -->  
    13. <!-- Weblogic format: <jndi-jdbc jndi-server-name="default" jndi-name="JiraDS"/> -->  
    14.     </datasource>  

    第七步: 
           启动 E:\jira\bin\startup.bat, 
          登录:http://localhost:8080/ 
          在页面下部有输入授权码的地方: 
           复制以下代码:特别注意,复制出来每行前边如果有‘#’,要去掉,每行结束有看不见的空格,要去掉,否则 非法的授权码。 
    Java代码 
    1. Description=JIRA\: COMMERCIAL  
    2. CreationDate=2009-10-25  
    3. ContactName=haha@haha.haha  
    4. jira.LicenseEdition=ENTERPRISE  
    5. ContactEMail=haha@haha.haha  
    6. Evaluation=false  
    7. jira.LicenseTypeName=COMMERCIAL  
    8. jira.active=true  
    9. licenseVersion=2  
    10. MaintenanceExpiryDate=2010-10-24  
    11. Organisation=haha  
    12. jira.NumberOfUsers=-1  
    13. ServerID=B6FW-B4KW-J1A3-4DQB  
    14. LicenseID=LID  
    15. LicenseExpiryDate=2010-10-24  
    16. PurchaseDate=2009-10-25  

    点击 “下一步”,到步骤二 
    页面如下: 
     
    点击:“下一步”,页面如下: 
     
    完成,可以登录了。 



    参考资料:http://www.blogjava.net/haha1903/archive/2009/11/01/300609.html 
    http://hi.baidu.com/ostech/blog/item/f5b4941a1ab4f60c34fa4159.html 
    评论
    4 楼 exe19 2010-11-04   引用
    版本不同,不需要配置jira.home ,安装默认添加了...
    3 楼 john.ijava 2010-09-17   引用
       授权码还有一个问题 , CreationDate 创建日期改成当天就行了

    1. Description=JIRA\: COMMERCIAL  
       2. CreationDate=XXXX-XX-XX    // 日期改成当天
       3. ContactName=haha@haha.haha  
       4. jira.LicenseEdition=ENTERPRISE  
       5. ContactEMail=haha@haha.haha  
       6. Evaluation=false  
       7. jira.LicenseTypeName=COMMERCIAL  
       8. jira.active=true  
       9. licenseVersion=2  
      10. MaintenanceExpiryDate=2010-10-24  
      11. Organisation=haha  
      12. jira.NumberOfUsers=-1  
      13. ServerID=B6FW-B4KW-J1A3-4DQB  
      14. LicenseID=LID  
      15. LicenseExpiryDate=2010-10-24  
      16. PurchaseDate=2009-10-25 
    2 楼 john.ijava 2010-09-17   引用
    jira.home的设置方法:
    修改\atlassian-jira\WEB-INF\classes\jira-application.properties文件;
    将参数jira.home = D:/jirahome
    需要注意: jira.home参数的值必须采用绝对路径,并且使用斜杠“/”,不能使用反斜杠!可根据实际情况JIRA Home的目录(如:D:/jirahome)。
    1 楼 john.ijava 2010-09-17   引用
    写的很详细 ,  

    我在运行jira时抛了个错 , no jira.home is configured. 不知道jira.home到哪里去配置
  • 相关阅读:
    【Android UI设计与开发】第17期:滑动菜单栏(二)开源项目SlidingMenu的示例
    [Usaco2008 Dec]Patting Heads
    Hibernate(六)——多对多关联映射
    2017第2周一小程序
    2017第一周日
    2017第一周六
    无论你如何努力,总会有人讨厌你
    word使用技巧-批量删除图片技巧
    Web跨域问题总结
    JAVA语言的本质优势
  • 原文地址:https://www.cnblogs.com/sunwei2012/p/1881198.html
Copyright © 2011-2022 走看看