JIRA Standalone版本转移到sqlServer2000 and Above数据库
Author: jiracn
Create Date:2006.04.17.
环境:windows,Tomcat5.5.4,MS sqlServer2000
1.将JIRA的zip包文件解压缩到硬盘中(不要使用windowsXP自带的unzip功能!);
2.运行JIRA的启动脚本文件:windows平台上就是运行bin目录下的startup.bat 文件;
以上就可以启动JIRA了,通过http:/localhost:8080/就可以访问JIRA了!
这时候的JIRA使用了Standalone版本中集成的Tomcat和Hsql数据库(轻量级的数据库)。
如果用作商业使用,应该将JIRA安装到企业级的外部数据库上!以下介绍JIRA的Standalone版本在外部MS sqlServer2000上的安装过程:
1.安装MS sqlServer2000数据库,记着要安装MS sqlServer2000的Service Pack4;
1.1安装过程要自定义,选择chinese_RPC排序方式,语言为simple chinese;
1.2身份验证选择混合模式;
2.然后创建jiradb和jirauser,创建jirauser的过程中要先创建一个登录名jirauser;把public和db_owner 角色赋给jirauser,不要将jirauser作为database owner;
3. 确认在sql Server的配置中没有设置 NOCOUNT 选项:
3.1 对于MSsql Server 2005,打开sql Server 的管理控制台窗口再找到工具菜单-> 选项 -> 查询执行-> sql Server -> 高级. 如下图:
3.2 对于MSsql Server 2000,打开sql Server 的管理控制台窗口再找到工具菜单 -> sql Server 配置属性-> 连接. 如下图:
3.编辑conf/server.xml 文件,将<Context ... .../>中的内容,修改为:
4.编辑 atlassian-jira/WEB-INF/classes/entityengine.xml文件,修改field-type-name 的属性值为mssql(field-type-name="mssql");
删除 schema-name="PUBLIC" 参数.
5.下载连接MS sqlServer数据库的JDBC Driver,推荐使用jtds( http://jtds.sourceforge.net/ ),将jtds-[version].jar文件拷贝到common/lib目录下; 可从本站下载jtds-1.2.jar文件:
6.运行bin目录下的startup.bat,启动JIRA;
7.通过浏览器地址http://localhost:8080/访问JIRA,根据向导配置JIRA.
Ref:
https://www.atlassian.com/software/jira/docs/latest/databases/sqlserver.html
Create Date:2006.04.17.
环境:windows,Tomcat5.5.4,MS sqlServer2000
1.将JIRA的zip包文件解压缩到硬盘中(不要使用windowsXP自带的unzip功能!);
2.运行JIRA的启动脚本文件:windows平台上就是运行bin目录下的startup.bat 文件;
以上就可以启动JIRA了,通过http:/localhost:8080/就可以访问JIRA了!
这时候的JIRA使用了Standalone版本中集成的Tomcat和Hsql数据库(轻量级的数据库)。
如果用作商业使用,应该将JIRA安装到企业级的外部数据库上!以下介绍JIRA的Standalone版本在外部MS sqlServer2000上的安装过程:
1.安装MS sqlServer2000数据库,记着要安装MS sqlServer2000的Service Pack4;
1.1安装过程要自定义,选择chinese_RPC排序方式,语言为simple chinese;
1.2身份验证选择混合模式;
2.然后创建jiradb和jirauser,创建jirauser的过程中要先创建一个登录名jirauser;把public和db_owner 角色赋给jirauser,不要将jirauser作为database owner;
3. 确认在sql Server的配置中没有设置 NOCOUNT 选项:
3.1 对于MSsql Server 2005,打开sql Server 的管理控制台窗口再找到工具菜单-> 选项 -> 查询执行-> sql Server -> 高级. 如下图:
3.2 对于MSsql Server 2000,打开sql Server 的管理控制台窗口再找到工具菜单 -> sql Server 配置属性-> 连接. 如下图:
3.编辑conf/server.xml 文件,将<Context ... .../>中的内容,修改为:
CODE:
4.编辑 atlassian-jira/WEB-INF/classes/entityengine.xml文件,修改field-type-name 的属性值为mssql(field-type-name="mssql");
删除 schema-name="PUBLIC" 参数.
5.下载连接MS sqlServer数据库的JDBC Driver,推荐使用jtds( http://jtds.sourceforge.net/ ),将jtds-[version].jar文件拷贝到common/lib目录下; 可从本站下载jtds-1.2.jar文件:
6.运行bin目录下的startup.bat,启动JIRA;
7.通过浏览器地址http://localhost:8080/访问JIRA,根据向导配置JIRA.
Ref:
https://www.atlassian.com/software/jira/docs/latest/databases/sqlserver.html
JIRA WAR/EAR 版本在Tomcat和MS sqlServer2000上的安装过程
Author: jiracn
Create Date:2006.04.17.
环境:windows,MS sqlServer2000,Tomcat5.5.4
0.安装JDK,配置java运行环境;
1.安装MS sqlServer2000数据库,记着要安装MS sqlServer2000的Service Pack4;
1.1安装过程要自定义,语言为simple chinese;
1.2身份验证选择混合模式;
2.然后创建jiradb和jirauser,创建jirauser的过程中要先创建一个登录名jirauser;把public和dbo角色赋给jirauser,不要将jirauser作为dbower;
3.将JIRA的zip包文件解压缩到硬盘中(不要使用windowsXP自带的unzip功能!);
4.编辑edit-webapp/WEB-INF/classes/entityengine.xml文件,将<datasource>标签内的field-type-name属性的值设置为mssql;
[code:1] <datasource name="defaultDS"
helper-class="org.ofbiz.core.entity.GenericHelperDAO"
field-type-name="mssql"
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">
<jndi-jdbc jndi-server-name="default"
jndi-name="java:comp/env/jdbc/JiraDS" />
</datasource>[/code:1]
然后,找到:
[code:1]<transaction-factory class="org.ofbiz.core.entity.transaction.JNDIFactory"> <user-transaction-jndi jndi-server-name="default" jndi-name="java:comp/UserTransaction"/> <transaction-manager-jndi jndi-server-name="default" jndi-name="java:comp/UserTransaction"/> </transaction-factory>[/code:1]
修改为:
[code:1]<transaction-factory class="org.ofbiz.core.entity.transaction.JNDIFactory">
<user-transaction-jndi jndi-server-name="default" jndi-name="java:comp/env/UserTransaction"/>
<transaction-manager-jndi jndi-server-name="default" jndi-name="java:comp/env/UserTransaction"/>
</transaction-factory>[/code:1]
5.编译 JIRA
6.更新 Tomcat 库,下载 jira-jars-tomcat5.zip ,解压缩后将jar文件拷贝到Tomcat的 common/lib/ 目录下;
7.Configure Tomcat
7.1. copy dist-tomcat/tomcat-5.5/jira.xml from the built JIRA distribution to your Tomcat's conf/Catalina/localhost/ directory;
7.2. 修改jira.xml文件内容:
[code:1] <Resource name="jdbc/JiraDS" auth="Container" type="javax.sql.DataSource"
username="jirauser"
password="123456"
driverClassName="net.sourceforge.jtds.jdbc.Driver"
url="jdbc:jtds:sqlserver://localhost:1433/jiradb"/>[/code:1]
8. Modify Tomcat server.xml
In order for JIRA to correctly display internationalized characters in user and group names you need to modify your Tomcat distributions conf/server.xml file. You need to set the property useBodyEncodingForURI="true" within the connector deFinition for your http protocol. The connector block should look very much like this:
[code:1]<Connector port="8080" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableuploadTimeout="true"/>
修改为:
<Connector port="8080" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableuploadTimeout="true" useBodyEncodingForURI="true"/>[/code:1]
9. Start Tomcat
JIRA should Now be ready to run in Tomcat. To start using JIRA,first start (or restart) the Tomcat server with Tomcat's bin/startup.(sh|bat) scripts,and point your browser to http://localhost:8080/jira
You should Now see the Setup Wizard,which will take you through the brief setup procedure.
Create Date:2006.04.17.
环境:windows,MS sqlServer2000,Tomcat5.5.4
0.安装JDK,配置java运行环境;
1.安装MS sqlServer2000数据库,记着要安装MS sqlServer2000的Service Pack4;
1.1安装过程要自定义,语言为simple chinese;
1.2身份验证选择混合模式;
2.然后创建jiradb和jirauser,创建jirauser的过程中要先创建一个登录名jirauser;把public和dbo角色赋给jirauser,不要将jirauser作为dbower;
3.将JIRA的zip包文件解压缩到硬盘中(不要使用windowsXP自带的unzip功能!);
4.编辑edit-webapp/WEB-INF/classes/entityengine.xml文件,将<datasource>标签内的field-type-name属性的值设置为mssql;
[code:1] <datasource name="defaultDS"
helper-class="org.ofbiz.core.entity.GenericHelperDAO"
field-type-name="mssql"
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">
<jndi-jdbc jndi-server-name="default"
jndi-name="java:comp/env/jdbc/JiraDS" />
</datasource>[/code:1]
然后,找到:
[code:1]<transaction-factory class="org.ofbiz.core.entity.transaction.JNDIFactory"> <user-transaction-jndi jndi-server-name="default" jndi-name="java:comp/UserTransaction"/> <transaction-manager-jndi jndi-server-name="default" jndi-name="java:comp/UserTransaction"/> </transaction-factory>[/code:1]
修改为:
[code:1]<transaction-factory class="org.ofbiz.core.entity.transaction.JNDIFactory">
<user-transaction-jndi jndi-server-name="default" jndi-name="java:comp/env/UserTransaction"/>
<transaction-manager-jndi jndi-server-name="default" jndi-name="java:comp/env/UserTransaction"/>
</transaction-factory>[/code:1]
5.编译 JIRA
6.更新 Tomcat 库,下载 jira-jars-tomcat5.zip ,解压缩后将jar文件拷贝到Tomcat的 common/lib/ 目录下;
7.Configure Tomcat
7.1. copy dist-tomcat/tomcat-5.5/jira.xml from the built JIRA distribution to your Tomcat's conf/Catalina/localhost/ directory;
7.2. 修改jira.xml文件内容:
[code:1] <Resource name="jdbc/JiraDS" auth="Container" type="javax.sql.DataSource"
username="jirauser"
password="123456"
driverClassName="net.sourceforge.jtds.jdbc.Driver"
url="jdbc:jtds:sqlserver://localhost:1433/jiradb"/>[/code:1]
8. Modify Tomcat server.xml
In order for JIRA to correctly display internationalized characters in user and group names you need to modify your Tomcat distributions conf/server.xml file. You need to set the property useBodyEncodingForURI="true" within the connector deFinition for your http protocol. The connector block should look very much like this:
[code:1]<Connector port="8080" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableuploadTimeout="true"/>
修改为:
<Connector port="8080" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableuploadTimeout="true" useBodyEncodingForURI="true"/>[/code:1]
9. Start Tomcat
JIRA should Now be ready to run in Tomcat. To start using JIRA,first start (or restart) the Tomcat server with Tomcat's bin/startup.(sh|bat) scripts,and point your browser to http://localhost:8080/jira
You should Now see the Setup Wizard,which will take you through the brief setup procedure.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。