JIRA安装批南

JIRAAtlassian 公司开发的一款商业问题跟踪工具(开源项目经过申请可以免费使用,须提交源代码),可以对各种类型的问题进行跟踪管理,包括缺陷、需求变更、评审记录等。

安装及破解过程(MYSQL):

  • 下载atlassian-jira-enterprise-3.6.3-standalone.zip版本,其中已经包括tomcat5.x服务器
  • 下载mysql,偶使用的是mysql-5.0.22-win32解压版
  • 下载mysql jdbc驱动,JIRA默认使用的是hsql。网上有教程说要使用mysql-connector-java-3.1.12-bin.jar版本,偶本机正好有这个版本,没去试别的版本的jdbc驱动会不会出问题
  • 下载jira-jars-tomcat5.zip
  • 确保JDK1.5环境看安成功,在CMD下java -version试试 :)
  • 打开atlassian-jira-enterprise-3.6.3-standalone\atlassian-jira\WEB- INF\classes\entityengine.xml,搜索field-type-name,修改为field-type-name="mysql"
  • 将mysql-connector-java-3.1.12-bin.jar拷贝到atlassian-jira-enterprise-3.6.3-standalone\common\lib
  • 将jira-jars-tomcat5.zip拷贝到atlassian-jira-enterprise-3.6.3-standalone\common\lib
  • 修改atlassian-jira-enterprise-3.6.3-standalone\conf\server.xml,将下面大段修改为:
  1. <RESOURCE name="jdbc/JiraDS" type="javax.sql.DataSource" password="" username="root" 
  2. url="jdbc:mysql://localhost/jiradbautoReconnect=true&useUnicode=true&characterEncoding=UTF8&mysqlEncoding=utf8"
  3. maxActive="20" timeBetweenEvictionRunsMillis="5000" minEvictableIdleTimeMillis="4000"
  4. driverClassName="com.mysql.jdbc.Driver" auth="Container" />  
  • 运行安装,打开 http://localhost:8080 进行安装

注册机源代码

  1. import com.atlassian.license.LicensePair;   
  2.   
  3. import java.io.*;   
  4. import java.security.KeyFactory;   
  5. import java.security.Signature;   
  6. import java.security.spec.PKCS8EncodedKeySpec;   
  7.   
  8. public class keygen {   
  9.   
  10.     public keygen() {   
  11.     }   
  12.   
  13.     public static void main(String args[])   
  14.             throws IOException {   
  15.         try {   
  16.             long l = 267L;   
  17.             long l1 = System.currentTimeMillis();   
  18.             long l2 = System.currentTimeMillis();   
  19.             String s = "";   
  20.             System.out.println("Keygen for JIRA Enterprise Edition.");   
  21.             System.out.print("created by mydaj[ROR].");   
  22.             do {   
  23.                 System.out.print("\nEnter your organization name: ");   
  24.                 for (int i = System.in.read(); i != 10 && i != 13; i = System.in.read())   
  25.                     s = s + (char) i;   
  26.   
  27.             } while (s == "");   
  28.             try {   
  29.                 PKCS8EncodedKeySpec pkcs8encodedkeyspec = new PKCS8EncodedKeySpec(EncodedPrvKey);   
  30.                 KeyFactory keyfactory = KeyFactory.getInstance("DSA""SUN");   
  31.                 java.security.PrivateKey privatekey = keyfactory.generatePrivate(pkcs8encodedkeyspec);   
  32.                 String s1 = Long.toString(l, 10);   
  33.                 s1 = s1 + "^^";   
  34.                 s1 = s1 + Long.toString(l1, 10);   
  35.                 s1 = s1 + "^^";   
  36.                 s1 = s1 + Long.toString(l2, 10);   
  37.                 s1 = s1 + "^^";   
  38.                 s1 = s1 + s;   
  39.                 byte abyte0[] = s1.getBytes();   
  40.                 Signature signature = Signature.getInstance("SHA1withDSA");   
  41.                 signature.initSign(privatekey);   
  42.                 signature.update(abyte0);   
  43.                 byte abyte1[] = signature.sign();   
  44.                 LicensePair licensepair = null;   
  45.                 try {   
  46.                     licensepair = new LicensePair(abyte0, abyte1);   
  47.                 }   
  48.                 catch (Exception exception1) {   
  49.                     exception1.printStackTrace();   
  50.                 }   
  51.                 System.out.println(s1);   
  52.                 System.out.println("Your license key is: ");   
  53.                 System.out.println(licensepair.toString());   
  54.             }   
  55.             catch (Exception exception) {   
  56.                 exception.printStackTrace();   
  57.             }   
  58.         }   
  59.         catch (IOException ioexception) {   
  60.         }   
  61.     }   
  62.   
  63.     static byte EncodedPrvKey[] = {   
  64.             48, -12617521048, -1261,   
  65.             446742, -12272, -505641,   
  66.             48, -1261312, -127, -1270, -3127,   
  67.             83, -12729117184182, -3374, -100,   
  68.             46, -20, -28, -25, -1017, -738260, -17,   
  69.             680, -613063, -128, -748138105,   
  70.             6993643481, -58961, -11588,   
  71.             -6, -65, -59, -11, -7048, -10, -53, -10185,   
  72.             108, -41, -12759, -1282952111, -14102,   
  73.             96, -73107, -10380, -91, -92, -97, -97, -24,   
  74.             41231634, -6279, -69, -87, -41, -2,   
  75.             -73, -5827, -85987, -25, -58, -88, -90,   
  76.             21154, -5, -125, -10, -45, -5930, -61,   
  77.             25384199022, -11150, -10117,   
  78.             -13, -824397, -4142, -17, -14343,   
  79.             25, -99, -47721, -572210, -105,   
  80.             9680, -113213511, -52, -78, -110, -71,   
  81.             -126, -94, -21, -12411, -168828, -112,   
  82.             -127, -1270, -9, -31, -96, -123, -42, -10161,   
  83.             -34, -53, -68, -859254, -7287, -71121,   
  84.             -108, -81, -69, -658, -22, -126, -78776,   
  85.             11617, -126103818987, -114, -70,   
  86.             -448979, -26113716, -127, -128, -76,   
  87.             732211335, -2476402219, -73,   
  88.             -49950, -116, -56, -90, -316022122,   
  89.             -11784124, -11540, -32, -93, -823043,   
  90.             -77, -90117, -111110, -9312711, -633,   
  91.             5398, -15, -59812213659, -52,   
  92.             -92, -15, -66, -8881, -112, -119, -88, -125, -33,   
  93.             -3190, -27, -976, -110, -11710294, -128,   
  94.             123853710017659, -2, -4973,   
  95.             424222204250, -8830125,   
  96.             -37118, -5020, -82, -6308, -36106,   
  97.             -9, -11012410768  
  98.     };   
  99.   
  100. }   
 

本文相关评论|Comments

 

发表该文评论|Send Comment

相关标签|Related Tags