以下是我成功安装jira步骤。
第一步:oracle官网下装安装 jdk-6u24-windows-i586.exe,http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u25-download-346242.html, (配置 JAVA_HOME = C:\Program Files\Java\jdk1.6.0_24)。
第二步:Mysql官网(http://dev.mysql.com/downloads/)下载安装mysql-essential-5.1.57-win32.msi,安装过程中选择字符集为UTF8。
注意,之前我安装的是mysql-6.0.7-alpha-win32版本,但 jdbc 链接总是有问题,后来就换了一个效早期的版本。
第三步:Mysql官网下载 mysql-connector-java-5.1.16.zip ,http://dev.mysql.com/downloads/connector/j/ ,解压后取 mysql-connector-java-5.1.8-bin.jar,复制到 E:\jira\common\lib 目录中。
第四步:下载jira http://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-enterprise-4.0.2-standalone.zip,解压 to E:/jira。
第五步:下载附件jira_crack.rar(108.6 KB),解压出来为:atlassian-jira 文件夹,然后覆盖 E:\jira\atlassian-jira。
第六步:直接复制下面代码覆盖E:\jira\conf\server.xml :
<Server port= "8005" shutdown= "SHUTDOWN" >
<Service name= "Catalina" >
<Connector port= "8080"
maxHttpHeaderSize= "8192" maxThreads= "150" minSpareThreads= "25" maxSpareThreads= "75" URIEncoding= "UTF-8"
enableLookups= "false" redirectPort= "8443" acceptCount= "100" connectionTimeout= "20000" disableUploadTimeout= "true" />
<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= "sa"
password= ""
driverClassName= "org.hsqldb.jdbcDriver"
url= "jdbc:hsqldb:${catalina.home}/database/jiradb"
minEvictableIdleTimeMillis= "4000"
timeBetweenEvictionRunsMillis= "5000"
maxActive= "20" /-->
<Resource name= "jdbc/JiraDS" auth= "Container" type= "javax.sql.DataSource"
username= "root"
password= "123456"
driverClassName= "com.mysql.jdbc.Driver"
maxActive= "20" />
<!-- NOTE: When a database server reboots or their is a network failure all the connections in the
* connection pool are broken and normally this requires a Application Server reboot. If you include the
* parameter validationQuery="{QUERY FOR YOUR DB HERE} as show below a new connection is created to replace it.
* For more information see http: //confluence.atlassian.com/display/JIRA/Surviving+Connection+Closures
*
* validationQuery= "Select 1"
-->
<!-- NOTE: If you use a database other than hsqldb:
* delete the minEvictableIdleTimeMillis and timeBetweenEvictionRunsMillis attributes
* change the database type in atlassian-jira/WEB-INF/classes/entityengine.xml
-->
<Resource name= "UserTransaction" auth= "Container" type= "javax.transaction.UserTransaction"
factory= "org.objectweb.jotm.UserTransactionFactory" jotm.timeout= "60" />
<Manager pathname= "" />
</Context>
</Host>
<!--
Enable access logging.
This should produce access_log.<date> files in the 'logs' directory.
The output access log lies has the following fields :
IP Request_Id User Timestamp "HTTP_Method URL Protocol_Version" HTTP_Status_Code ResponseSize_in_Bytes RequestTime_In_Millis Referer User_Agent ASESSIONID
eg :
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"
NOTES:
The RequestId is a millis_since_epoch plus request number plus number of concurrent users
The Request time is in milliseconds
The ASESSIONID is an MD5 hash of the JSESSIONID and hence is safe to publish within logs. A session cannot be reconstructed from it.
See http: //tomcat.apache.org/tomcat-5.5-doc/config/valve.html for more information on Tomcat Access Log Valves
-->
<Valve className= "org.apache.catalina.valves.AccessLogValve" resolveHosts= "false"
pattern= "%a %{jira.request.id}r %{jira.request.username}r %t " %m %U%q %H " %s %b %D " %{Referer}i " " %{User-Agent}i " " %{jira.request.assession.id}r "" />
</Engine>
<!-- To run JIRA via HTTPS:
* Uncomment the Connector below
* Execute:
%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix)
with a password value of "changeit" for both the certificate and the keystore itself.
* If you are on JDK1. 3 or earlier, download and install JSSE 1.0 . 2 or later, and put the JAR files into
"$JAVA_HOME/jre/lib/ext"
* Restart and visit https: //localhost:8443/
For more info, see http: //jakarta.apache.org/tomcat/tomcat-5.5-doc/ssl-howto.html
-->
<!--
<Connector port= "8443" maxHttpHeaderSize= "8192"
maxThreads= "150" minSpareThreads= "25" maxSpareThreads= "75"
enableLookups= "false" disableUploadTimeout= "true"
acceptCount= "100" scheme= "https" secure= "true"
clientAuth= "false" sslProtocol= "TLS" useBodyEncodingForURI= "true" />
-->
<!-- To connect to an external web server (typically Apache) -->
<!-- Define an AJP 1.3 Connector on port 8009 -->
<!--
<Connector port= "8009"
enableLookups= "false" redirectPort= "8443" protocol= "AJP/1.3" />
-->
</Service>
<Listener className= "org.apache.catalina.mbeans.ServerLifecycleListener" />
<Listener className= "org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<Listener className= "org.apache.catalina.storeconfig.StoreConfigLifecycleListener" />
</Server>
|
第七步:目录 E:\jira\atlassian-jira\WEB-INF\classes\entityengine.xml文件中的 <datasource name="defaultDS" field-type-name="hsql"……..</datasource> 用以下代码替换:
<datasource name= "defaultDS" field-type-name= "mysql"
helper- class = "org.ofbiz.core.entity.GenericHelperDAO"
check-on-start= "true"
use-foreign-keys= "false"
use-foreign-key-indices= "false"
check-fks-on-start= "false"
check-fk-indices-on-start= "false"
add-missing-on-start= "true"
check-indices-on-start= "true" >
<jndi-jdbc jndi-server-name= "default" jndi-name= "java:comp/env/jdbc/JiraDS" />
<!-- Orion format: <jndi-jdbc jndi-server-name= "default" jndi-name= "jdbc/JiraDS" /> -->
<!-- JBoss format: <jndi-jdbc jndi-server-name= "default" jndi-name= "java:/JiraDS" /> -->
<!-- Weblogic format: <jndi-jdbc jndi-server-name= "default" jndi-name= "JiraDS" /> -->
</datasource>
|
第八步:创建数据库:create database jiradb character set utf8;。
第九步:在 E:\jira\atlassian-jira\WEB-INF\classes\jira-application.properties, 设置 jira.home = E:/Jira_ROOT。
第十步:启动 E:\jira\bin\startup.bat。
附件:
- 本文固定链接: http://www.web8899.com/2013/11/26/jira的详细安装和破解/
- 转载请注明: dean 于 迈向卓越-个人博客 发表