win2003下JIRA配置(转载)
阿沛 收录于2010-04-15 阅读数: |
|
公众公开
|
|
我也要收藏
|
|
安装程序atlassian-jira-enterprise-3.12.3-windows-installer.exe
破解包atlassian-extras-1.12.jar
汉化包language_zh_CN.jar
一 jira安装
双击exe,没什么好说的,唯一一个注意的是:是否把jira注册为windows服务,安装的时候有链接详细说明,此处不再赘述。
我选择了注册为windows服务后,可以从windows的“服务管理器”看到jira服务,我的叫做“Atlassian JIRA Enterprise Edition 3.12.3”
二、创建数据库
JIRA安装完毕,停止JIRA服务
创建数据库:
mysql -uroot -p
create database jiradb character set 'UTF8';
创建用户并赋与权限:
create user jirauser identified by 'jira';
grant all privileges on *.* to 'jirauser'@'%' identified by 'jira' with grant option;
grant all privileges on *.* to 'jirauser'@'localhost' identified by 'jira' with grant option;
flush privileges;
三、修改JIRA端口
JIRA是集成在Tomcat上面的,所以修改端口的方法和Tomcat修改端口的方法是一样的。
8005——9005
8080——9080
四、拷贝数据驱动mysql-connector-java-3.1.12-bin.jar至common/lib/目录
五、编辑conf/server.xml
<Server port="8005" shutdown="SHUTDOWN">
<Service name="Catalina">
<Connector port="9080"
maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
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="jirauser"
password="jira"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost/jiradb?autoReconnect=true&useUnicode=true&characterEncoding=UTF8"
[ delete the minEvictableIdleTimeMillis and timeBetweenEvictionRunsMillis params here ]
/>
<Resource name="UserTransaction" auth="Container" type="javax.transaction.UserTransaction"
factory="org.objectweb.jotm.UserTransactionFactory" jotm.timeout="60"/>
<Manager className="org.apache.catalina.session.PersistentManager" saveOnRestart="false"/>
</Context>
</Host>
</Engine>
</Service>
</Server>
六、编辑atlassian-jira/WEB-INF/classes/entityengine.xml文件
<!-- DATASOURCE - You will need to update this tag for your installation.
-->
<datasource name="defaultDS" field-type-name="mysql"
[ delete this, if it exists: schema-name="PUBLIC" ]
helper-class="org.ofbiz.core.entity.GenericHelperDAO"
check-on-start="true"
use-foreign-keys="false"
...
七汉化: 将language_zh_cn.JAR汉化包拷贝至JIRA-Enterprise-3.9.1/atlassian-jira/WEB-INF/lib目录下。
八、jira破解
将atlassian-extras-1.12.jar覆盖JIRA-Enterprise-3.12.3/atlassian-jira/WEB-INF/lib下同名文件即可。
九、开启服务,在浏览器输入 http://localhost:8080 如果出现jira向导就说明成功安装了。
输入序列号的地方输入
12345
12345
12345
12345
12345
如果点击下一步不提示序列号错误就完成注册了。
四五两步参见 http://www.atlassian.com/software/jira/docs/v3.12.3/databases/mysql.html