Atlassian confluence update

confluence 升级版本

  1. 备份confluence安装目录

    1
    [root@confluence app]# tar czf confluence.bin.tar.gz /mnt/app/confluence
  2. 备份confluence.home目录

    1
    [root@confluence app]# tar czf confluence.home.tar.gz /mnt/data/confluence.home
  3. 备份confluence数据库

    1
    [root@confluence app]# mysqldump -u{username} -p{password} -h{ipaddress} confluence > confluence.sql
  4. 升级confluence

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    [root@confluence app]# ./atlassian-confluence-6.4.1-x64.bin
    Unpacking JRE ...
    Starting Installer ...
    Oct 10, 2017 1:44:58 PM java.util.prefs.FileSystemPreferences$2 run
    INFO: Created system preferences directory in java.home.

    This will install Confluence 6.4.1 on your computer.
    OK [o, Enter], Cancel [c]
    o
    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:
    [/mnt/app/confluence]
    /mnt/app/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.

    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:
    bin/catalina.sh
    bin/setenv.sh
    conf/server.xml
    Removed files:
    (none)
    Added files:
    confluence/WEB-INF/lib/mysql-connector-java-5.1.38-bin.jar
    confluence/images/welcome.png
    conf/server.xml_bak

    [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:
    http://docs.atlassian.com/confluence/docs-64/Production+Backup+Strategy

    Check plugin compatibility
    Check that your non-bundled plugins are compatible with Confluence 6.4.1.

    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:
    http://docs.atlassian.com/confluence/docs-64/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]
    u

    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.
    Installation of Confluence 6.4.1 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 6.4.1 is complete
    Your installation of Confluence 6.4.1 is now ready and can be accessed via
    your browser.
    Custom modifications
    Your previous Confluence installation contains customisations (eg
    server.xml) that must be manually transferred. Refer to our documentation
    more information:
    http://docs.atlassian.com/confluence/docs-64/Upgrading+Confluence#UpgradingConfluence-custommodifications
    Confluence 6.4.1 can be accessed at http://localhost:8090

    Confluence 6.4.1 may take several minutes to load on first start up.
    Finishing installation ...
  5. 停止服务

    1
    2
    3
    [root@confluence app]# systemctl stop confluence
    或者
    [root@confluence app]# /etc/init.d/confluence stop
  6. 将JDBC的客户端拷贝到confluence安装目录lib下

    1
    2
    3
    [root@confluence app]# cp mysql-connector-java-5.1.44-bin.jar /mnt/app/confluence/lib/
    [root@confluence app]# ls -1 /mnt/app/confluence/lib/mysql-connector-java-5.1.44-bin.jar
    /mnt/app/confluence/lib/mysql-connector-java-5.1.44-bin.jar
  7. 启动服务

    1
    2
    3
    [root@confluence app]# systemctl start confluence
    或者
    [root@confluence app]# /etc/init.d/confluence start
  8. 通过URL访问,进行验证