分类: LINUX
2009-06-14 23:49:41
NrqqMtMXgitAOknSLGRrfsaoRmOaAOBIXwBmivsMNxvIUTb
mj2KfRo
NmRuuqrRqRRNOmQRpRXWQOpmQRqoMropnsvtUvUsXOvwvos
tUUnntvqmuopqvmvUUnntvqmuopqvmvUUvbbmXvkZlj
maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
c disableUploadTimeout="true" />
username="[enter db username]" //输入你刚在mysql中建的用户名和密码;
password="[enter db password]"
driverClassName="com.mysql.jdbc.Driver" //驱动程序类名
url="jdbc:mysql://localhost/jiradb?autoReconnect=true&useUnicode=true&characterEncoding=gbk" //输入mysql服务器地址,建议输入ip地址和端口号
minEvictableIdleTimeMillis="4000"
timeBetweenEvicti //将红色处删除
maxActive="20"
/>
factory="org.objectweb.jotm.UserTransactionFactory" jotm.timeout="60"/>
[ delete this, if it exists: schema-name="PUBLIC" ] //删除该行,如果存在的话
helper-class="org.ofbiz.core.entity.GenericHelperDAO"
check-on-start="true"
use-foreign-keys="false"
...
jira的安装路径为/opt/jira
修改/opt/jira/conf/server.xml,将如下内容
password=”"
driverClassName=”org.hsqldb.jdbcDriver”
url=”jdbc:hsqldb:${catalina.home}/database/jiradb”
minEvictableIdleTimeMillis=”4000″
timeBetweenEvictionRunsMillis=”5000″
maxActive=”20″ />
修改为
password=”"
driverClassName=”com.mysql.jdbc.Driver”
url=”jdbc:mysql://localhost/jira?autoReconnect=true&useUnicode=true&characterEncoding=UTF8″
minEvictableIdleTimeMillis=”4000″
timeBetweenEvictionRunsMillis=”5000″
maxActive=”20″ />
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”>
–>
–>
–>
NrqqMtMXgitAOknSLGRrfsaoRmOaAOBIXwBmivsMNxvIUTb
mj2KfRo
NmRuuqrRqRRNOmQRpRXWQOpmQRqoMropnsvtUvUsXOvwvos
tUUnntvqmuopqvmvUUnntvqmuopqvmvUUvbbmXvkZlj
要在jira中集成subversion,使用。很奇怪的是,在官方的上竟然没有针对3.9版本的subversion插件,好在下面的变更历史中有一段关于v3.9的说明
0.9.10 released
Contains a fix for SVN-133 (commit data does not follow Project Permission Scheme - honoring current assignee and reporter) and upped source dependencies for JIRA v3.9.
因此看来对应jira 3.9版本的subversion的插件需要使用0.9.10版本,下载地址为:
(注:我这里的版本对应是:jira-13.4 --> svn-plugin-0.10.4.2 -->mysql-connector-java-5.1.7)
安装过程很简单:
把javasvn-1.0.5.jar,ganymed.jar,atlassian-jira-subversion-plugin-0.9.10.jar复制到/opt/jira/atlassian-jira/WEB-INF/lib下。
修改subversion-jira-plugin.properties的svn.root、svn.username、svn.password,上传到/opt/jira/atlassian-jira/WEB-INF/classes下
tar zxvf jakarta-tomcat-connectors-jk2-src-current.tar.gz
cd jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/
./configure –with-apxs2=/usr/bin/apxs
make
cd ../build/jk2/apache2
apxs -n jk2 -i mod_jk2.so
修改/etc/httpd/conf/httpd.conf,在httpd.conf中的LoadModule部分添加jk2_module
LoadModule jk2_module modules/mod_jk2.so
同时修改DirectoryIndex
DirectoryIndex index.html index.html.var,index.php,index.jsp
需要手工创建JK2所用的2个配置文件:
touch //opt/jira/conf/jk2.properties
内容如下:
# list of needed handlers.
handler.list=channelSocket,request
# Override the default port for the channelSocket
channelSocket.port=8009
touch /etc/httpd/conf/workers2.properties
内容如下:
[channel.socket:localhost:8009]
port=8009
host=localhost
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
[uri:/jira/*]
worker=ajp13:localhost:8009
# Define the log file location and file size
[shm]
file=/etc/httpd/logs/shm.file
size=1048576
apachectl restart
killall -9 java; sleep 5;/opt/jira/bin/startup.sh
访问jira:
或者