Linux 同时安装 tomcat和jira 遇到的问题梳理

来源:互联网 发布:显示时间软件 编辑:程序博客网 时间:2024/05/31 19:20

工作中要在Linux系统中安装一个jira,问题的关键是这个操作系统中已经有一个tomcat在运行了,所以遇到了一些问题,现在梳理如下。




1、安装包

windows/linux是不同的,官网比较慢,可以从百度云盘搜索。

比如:atlassian-jira-6.3.5.tar.gz

2、文件夹结构

比如当前用户为 user,则在user下新建文件夹jira,并将atlassian-jira-6.3.6.tar.gz 复制到这个文件夹内

再创建一个jira_home 文件夹,这个会在后期保存jira的本地数据,包括表示数据库配置的 deconfig.xml

创建文件夹目录为

/home/user/jira/atlassian-jira-6.3.5.tar.gz

/home/user/jira/jira_home


3、安装

tar -zxvf  atlassian-jira-6.3.5.tar.gz

得到下面目录结构

/home/user/jira/atlassian-jira-6.3.5-standalone 


4、修改jira-application.properties

编辑

vi /home/user/jira/atlassian-jira-6.3.5-standalone/atlassian-jira/WEB-INF/classes/jira-application.properties 

修改

jira.home = /home/user/jira/jira_home

保存

:wq 


5、大家可以先参考

http://blog.itpub.net/26230597/viewspace-1275597/

http://blog.csdn.net/doegoo/article/details/52219860


遇到 jira无法启动、端口占用、数据库(mysql)com.atlassian.jira.exception.DataAccessException: org.ofbiz.core.entity.GenericDataSourceException: Generic Entity Exception occurred in deleteByAnd (SQL Exception while executing the following:DELETE FROM jiraaction (Cannot execute statement: impossible to write to binary log since BINLOG_FORMAT = STATEMENT and at least one table uses a storage engine limited to row-based logging. InnoDB is limited to row-logging when transaction isolation level is READ COMMITTED or READ UNCOMMITTED.))报错再看我的文章


6、修改server.xml 中默认端口号

这个要和tomcat的端口号比对下,不要重复

/home/user/jira/atlassian-jira-6.3.5-standalone/conf/server.xml

修改其中默认的8080为7777,8005为7778即可


7、在数据库中新建一个数据库,utf-8格式


8、启动jira-解决地址占用问题

必须注意,jira有多个启动方式,有控制台启动(就是控制台输出信息,但是一旦控制台关闭,jira服务就关闭了)

而这就容易造成重复启动的问题


控制台启动方式1:

/home/bijia/jira/atlassian-jira-6.3.5-standalone/bin/start-jira.sh run


控制台启动方式2:

/home/bijia/jira/atlassian-jira-6.3.5-standalone/bin/catalina.sh run


手动常规启动服务方式

/home/bijia/jira/atlassian-jira-6.3.5-standalone/bin/start-jira.sh

手动关闭jira服务的方式

/home/bijia/jira/atlassian-jira-6.3.5-standalone/bin/stop-jira.sh


9、我的端口开始没改,的确占用,后来我确定tomcat和jira配置的是不同端口,依旧报错,后来甚至导致jira被锁

对于端口不通依旧包端口被占用,要细看第8 ,看是不是启动了多个jira服务,比如既用控制台启动,甚至使用了两个控制台启动


关于jira被锁的问题

网上说的办法:

http://www.cnblogs.com/maozhh/archive/2010/12/03/1895884.html

不管用

其实直接使用

/home/bijia/jira/atlassian-jira-6.3.5-standalone/bin/stop-jira.sh

即可

然后再使用

 /home/bijia/jira/atlassian-jira-6.3.5-standalone/bin/start-jira.sh



10、这个过程会要求连接数据库,自动建表报错(mysql)

 com.atlassian.jira.exception.DataAccessException: org.ofbiz.core.entity.GenericDataSourceException: Generic Entity Exception occurred in deleteByAnd (SQL Exception while executing the following:DELETE FROM jiraaction (Cannot execute statement: impossible to write to binary log since BINLOG_FORMAT = STATEMENT and at least one table uses a storage engine limited to row-based logging. InnoDB is limited to row-logging when transaction isolation level is READ COMMITTED or READ UNCOMMITTED.)) 



解决办法是允许你的mysql存储binlog格式数据,找到 etc/mysql/my.cnf 文件 在 [mysqld] 下增加 binlog_format=row,重启mysql和jira即可,按照6的方法启动jira


Shutdown JIRA and your MySQL service if necessary.
Open the MySQL configuration file (my.cnf) in a text editor.
(info) On UNIX-based systems, this file may be located in the /etc directory.
Locate the binlog_format property in this file in the [mysqld] section and ensure that its value is row, such that you end up with:


binlog_format=row
(info) This is only needed (and valid) for MySQL versions 5.1.5 and later.


Save your changes to this file and restart your MySQL service and JIRA.


11、中文插件-即汉化问题

jira提供了汉化插件

等注册完毕后,登陆后可以


12、破解看

http://blog.csdn.net/doegoo/article/details/52219860


原创声明:转载请声明出处:http://blog.csdn.net/bestcxx/article/details/54637204

0 0
原创粉丝点击