JIRA从3.6.2旧版升级到新版6.0.8详细图解过程(5)

tar czvf jdk-6u35-linux-x64.bin.tar.gz jdk-6u35-linux-x64.bin

split -b 40M ./jdk-6u35-linux-x64.bin.tar.gz ./jdk-6u35-linux-x64.bin.tar.gz.

合并命令:

cat jdk-6u35-linux-x64.bin.tar.gz.a* > jdk-6u35-linux-x64.bin.tar.gz

tar xf jdk-6u35-linux-x64.bin.tar.gz

增加可执行权限

chmod +x jdk-6u35-linux-x64.bin

解压

./jdk-6u35-linux-x64.bin

将解压好的jdk1.6.0_35文件夹用最高权限复制到/usr/lib/jvm目录中:

$ sudo cp -R jdk1.6.0_35 /usr/lib/jvm

(注意:

如果:不存在jvm目录,请以最高权限创建jvm目录:

$ sudo mkdir /usr/lib/jvm

)

在$HOME的.profile文件中设置环境变量Java_HOME:

$ cd ~

$ vi /etc/profile

(

添加:

export JAVA_HOME=/usr/lib/jvm/jdk1.6.0_35

export JRE_HOME=${JAVA_HOME}/jre

export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib

export PATH=${JAVA_HOME}/bin:$PATH)

参数立即生效

source /etc/profile

验证java版本号码

[root@name01 java]# java -version

java version "1.6.0_35"

Java(TM) SE Runtime Environment (build 1.6.0_35-b10)

Java HotSpot(TM) 64-Bit Server VM (build 20.10-b01, mixed mode)

[root@name01 java]# javac -version

javac 1.6.0_35

[root@name01 java]#

然后修改jira的jdk版本为jdk6:

[root@name01 java]# vim /root/atlassian-jira-4.4.5-standalone/atlassian-jira/WEB-INF/classes/jira-application.properties

# Do not modify this file unless instructed. It is here to store the location of the JIRA home directory only and is typically written to by the installer.

jira.home =  /usr/lib/jvm/jdk1.6.0_35

~                                       

解决好JDK,重复3.1到3.7的步骤,最后几个步骤如下:

JIRA从3.6.2旧版升级到新版6.0.8详细图解过程

JIRA从3.6.2旧版升级到新版6.0.8详细图解过程

JIRA从3.6.2旧版升级到新版6.0.8详细图解过程

3.8,登录报错

The Gadget Dashboard bundled plugin is not available. To ensure the Gadget Dashboard plugin is enabled, please contact your <a href="https://www.linuxidc.com/secure/ContactAdministrators!default.jspa">JIRA administrators.

如果你认为这个信息是错误的, 请联系你的 please contact your JIRA administrators管理员{1} 以得到需要的权限.

Jira需要重新编译安装,以为之前是在jdk7下安装的,现在jdk版本换到了jdk6,所以jira也需要重新编译安装一下,重复之前的所有步骤1—>3,最后登录界面如下:

JIRA从3.6.2旧版升级到新版6.0.8详细图解过程



3.9JIRA重启报错 JIRA Startup Failed  

You cannot access JIRA at present. Look at the table below to identify the reasons

 

Description

 

com.atlassian.jira.rpc.soap.JiraSoapServiceImpl doesn't have any satisfiable constructors. Unsatisfiable dependencies: [[interface com.atlassian.jira.rpc.auth.TokenManager, interface com.atlassian.jira.rpc.soap.service.ProjectService, interface com.atlassian.jira.rpc.soap.service.IssueService, interface com.atlassian.jira.rpc.soap.service.UserService, interface com.atlassian.jira.rpc.soap.service.SchemeService, interface com.atlassian.jira.rpc.soap.service.AdminService, interface com.atlassian.jira.rpc.soap.service.SearchService, interface com.atlassian.jira.rpc.soap.service.ProjectRoleService, interface com.atlassian.jira.rpc.soap.service.IssueConstantsService]]

 
 

原因就是没有使用shutdown.sh来关闭jira,所以最好是使用start-jira.sh启动,使用shutdown.sh关闭,那么下次启动就不会有问题了。若安装目录找不到 .jira-home.lock文件(所在目录不一定是你的安装路径),可以使用搜索功能搜索,如下所示:

[root@name01 logs]# find / -name .jira-home.lock

/usr/lib/jvm/jdk1.6.0_35/.jira-home.lock

[root@name01 logs]#

[root@name01 logs]# rm -rf /usr/lib/jvm/jdk1.6.0_35/.jira-home.lock

[root@name01 logs]#

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/17533.html