1655  
查询码:00000048
linux升级Confluence,此文档从6.13升级到7.5版本
作者: 文艺范儿 于 2020年06月04日 发布在分类 / Linux / 服务安装 下,并于 2020年06月04日 编辑
confluence wiki

linux升级Confluence,此文档从6.13升级到7.5版本

1.1 备份jar文件,并下载最新版本的安装包

cd atlassian/confluence/confluence/WEB-INF/lib/

cp -a atlassian-extras-decoder-v2-3.4.1.jar /tmp/

cd /home/tools

wget https://product-downloads.atlassian.com/software/confluence/downloads/atlassian-confluence-7.5.0-x64.bin

1.2 开始升级

[root@VM_0_9_centos deploy]# chmod a+x atlassian-confluence-7.5.0-x64.bin

[root@VM_0_9_centos deploy]# ./atlassian-confluence-7.5.0-x64.bin

Unpacking JRE ...

Starting Installer ...


##输入o确认

This will install Confluence 7.5.0 on your computer.

OK [o, Enter], Cancel [c]

o

Click Next to continue, or Cancel to exit Setup.


##输入3选择升级

Choose the appropriate installation or upgrade option.

Please choose one of the following:

Express Install (uses default settings) [1],

Custom Install (recommended for advanced users) [2],

Upgrade an existing Confluence installation [3, Enter]

3

##输入回车选择目录不变

Existing installation directory:

[/home/deploy/atlassian/confluence]

Back Up Confluence Home

The upgrade process will automatically back up your Confluence Installation

Directory. You can also choose to back up your existing Confluence Home

Directory. Both directories are backed up as zip archive files in their

respective parent directory locations.

We strongly recommend choosing this option in the unlikely event that you

experience problems with the upgrade and may require these backups to

restore your existing Confluence installation.


##输入y,选择备份数据

If you have many attachments in your Confluence Home Directory, the zip

archive of this directory may consume a significant amount of disk space.

Back up Confluence home ?

Yes [y, Enter], No [n]

y

Checking for local modifications.

List of modifications made within Confluence directories.

The following provides a list of file modifications within the confluence

directory.

Modified files:

       confluence/WEB-INF/lib/atlassian-extras-decoder-v2-3.4.1.jar

       bin/catalina.sh

Removed files:

       (none)

Added files:

       confluence/WEB-INF/lib/mysql-connector-java-5.1.39-bin.jar

       confluence/WEB-INF/classes/log4j-diagnostic.properties


##输入回车确认

[Enter]

Checking if your instance of Confluence is running

Upgrade Check List

Back up your external database

We strongly recommend you back up your Confluence database if you have not

already done so.

Please refer to the following URL for back up guidelines:

https://docs.atlassian.com/confluence/docs-75/Production+Backup+Strategy

Check plugin compatibility

Check that your non-bundled plugins are compatible with Confluence 7.5.0.

Access the plugin manager through the following URL:

http://localhost:8090/plugins/servlet/upm#compatibility

For more information see our documentation at the following URL:

https://docs.atlassian.com/confluence/docs-75/Installing+and+Configuring+Plugins+using+the+Universal+Plugin+Manager

Please ensure you have read the above checklist before upgrading.

Your existing Confluence installation is about to be upgraded!

The upgrade process will shut down your existing Confluence installation to complete the upgrade.


##输入回车确认

Do you want to proceed?

Upgrade [u, Enter], Exit [e]

Your instance of Confluence is currently being upgraded.

Shutting down Confluence...

Checking if Confluence has been shutdown...

Backing up the Confluence installation directory

                                                                          

Backing up the Confluence home directory

                                                                           

Deleting the previous Confluence installation directory...

Extracting files ...

                                                                          

Please wait a few moments while we configure Confluence.


输入y启动

Installation of Confluence 7.5.0 is complete

Start Confluence now?

Yes [y, Enter], No [n]

y

Please wait a few moments while Confluence starts up.

Launching Confluence ...

Installation of Confluence 7.5.0 is complete

Your installation of Confluence 7.5.0 is now ready and can be accessed via

your browser.

Custom modifications

Your previous Confluence installation contains customisations that must be

manually transferred. Refer to our documentation more information:

https://docs.atlassian.com/confluence/docs-75/Upgrading+Confluence#UpgradingConfluence-custommodifications

Confluence 7.5.0 can be accessed at http://localhost:8090

Confluence 7.5.0 may take several minutes to load on first start up.

Finishing installation ...

1.3 升级后出现以下画面,代表验证不通过

粘贴图片

##恢复前面备份的atlassian-extras-decoder-v2-3.4.1.jar文件重启即可。

cd /home/deploy/atlassian/confluence/confluence/WEB-INF/lib/

mv atlassian-extras-decoder-v2-3.4.1.jar atlassian-extras-decoder-v2-3.4.1.jar-bak

cp /tmp/atlassian-extras-decoder-v2-3.4.1.jar ./

cd /home/deploy/atlassian/confluence/ 

bin/stop-confluence.sh

bin/start-confluence.sh

1.4 然后便可正常访问了,此次版本升级成功

注意:升级后查看日志:

tail -1999f logs/catalina.out

#会出现大量WARN

Thu Jun 04 18:23:20 CST 2020 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.

Thu Jun 04 18:23:20 CST 2020 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.

       …

##解决办法

cd /home/deploy/atlassian/

vim ./application-data/confluence/confluence.cfg.xml

#修改这一行

<property name="hibernate.connection.url">jdbc:mysql://localhost:53306/confluence </property>

##修改后为

<property name="hibernate.connection.url">jdbc:mysql://localhost:53306/confluence?useSSL=false</property>

##然后重启程序即可

cd /home/deploy/atlassian/confluence/ 

bin/stop-confluence.sh

bin/start-confluence.sh



 推荐知识

 历史版本

修改日期 修改人 备注
2020-06-04 19:13:22[当前版本] 文艺范儿 格式调整
2020-06-04 18:57:02 文艺范儿 格式调整
2020-06-04 18:55:49 文艺范儿 创建版本

 附件

附件类型

PNGPNG

文艺知识分享平台 -V 4.9.5 -wcp
京公网安备100012199188号 京ICP备2021030911号