Page tree

如需转载请标注内容地址为: https://wiki.shileizcc.com/confluence/display/atlassian/Confluence+install+7.0.1

Skip to end of metadata
Go to start of metadata

请在使用站内资源的同时不要恶意进行爬取或倒链等行为,感谢支持!

Confluence install 7.0.1

Confluence 7.0 在  正式推出。

MySQL

安装 MySQL:(需要使用默认的 utf8 字符集)

$ docker run -d --name mysql -p 3306:3306 -v /data/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=shileizcc.com slzcc/mysql:5.6-custom
$ docker exec -it mysql mysql -uroot -pshileizcc.com -e "CREATE DATABASE confluence CHARACTER SET 'UTF8' COLLATE 'utf8_bin';"

Confluence

下载 bin 包:

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

执行安装:

$ chmod +x atlassian-confluence-7.0.1-x64.bin
$ ./atlassian-confluence-7.0.1-x64.bin
Installing fontconfig...
Hit:1 http://asia-northeast1.gce.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://asia-northeast1.gce.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:3 http://asia-northeast1.gce.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:4 http://asia-northeast1.gce.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [1,033 kB]
Get:5 http://asia-northeast1.gce.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [764 kB]
Hit:6 https://download.docker.com/linux/ubuntu xenial InRelease
Get:7 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Ign:9 http://ppa.launchpad.net/chris-lea/node.js/ubuntu xenial InRelease
Hit:10 http://archive.canonical.com/ubuntu xenial InRelease
Hit:8 https://packages.cloud.google.com/apt kubernetes-xenial InRelease
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/chris-lea/node.js/ubuntu xenial Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Unpacking JRE ...
Starting Installer ...

This will install Confluence 7.0.1 on your computer.
OK [o, Enter], Cancel [c]
o
Click Next to continue, or Cancel to exit Setup.

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, Enter],
Upgrade an existing Confluence installation [3]


Select the folder where you would like Confluence 7.0.1 to be installed,
then click Next.
Where should Confluence 7.0.1 be installed?
[/opt/atlassian/confluence]


Default location for Confluence data
[/var/atlassian/application-data/confluence]


Configure which ports Confluence will use.
Confluence requires two TCP ports that are not being used by any other
applications on this machine. The HTTP port is where you will access
Confluence through your browser. The Control port is used to Startup and
Shutdown Confluence.
Use default ports (HTTP: 8090, Control: 8000) - Recommended [1, Enter], Set custom value for HTTP and Control ports [2]


Confluence can be run in the background.
You may choose to run Confluence as a service, which means it will start
automatically whenever the computer restarts.
Install Confluence as Service?
Yes [y, Enter], No [n]


Extracting files ...


Please wait a few moments while we configure Confluence.

Installation of Confluence 7.0.1 is complete
Start Confluence now?
Yes [y, Enter], No [n]


Please wait a few moments while Confluence starts up.
Launching Confluence ...

Installation of Confluence 7.0.1 is complete
Your installation of Confluence 7.0.1 is now ready and can be accessed via
your browser.
Confluence 7.0.1 can be accessed at http://localhost:8090
Finishing installation ...

访问页面 localhost:8090:

下一步:

到这一步骤后进入破解环节:

开始破解程序,首先把下面的文件拷贝到出来:

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

然后下载文件:iNViSiBLE.zip,打开 confluence_keygen.jar 文件,输入上方的 Server ID 以及 Name,点击 gen:

把拷贝出来的文件 atlassian-extras-decoder-v2-3.4.1.jar,更名为, atlassian-extras-2.4.jar 否则破解软件会不识别。


$ mv atlassian-extras-decoder-v2-3.4.1.jar atlassian-extras-2.4.jar

然后通过破解软件点击 path,找到这个文件并打开:

破解成功后显示如下:

并生成一个后缀 bak 的原名包,如果重复破解 jar,请把 bak 包删除掉在破解,并把生成的 Key 复制下来!

把破解成功后的包移回之前的目录内:

$ mv atlassian-extras-2.4.jar atlassian-extras-decoder-v2-3.4.1.jar
$ mv atlassian-extras-decoder-v2-3.4.1.jar /opt/atlassian/confluence/confluence/WEB-INF/lib/

下载 jdbc 官方包:https://dev.mysql.com/downloads/connector/j/5.1.html

$ wget -qO- https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.48.tar.gz | tar zx -C /opt
$ cp -a /opt/mysql-connector-java-5.1.48/mysql-connector-java-5.1.48-bin.jar /opt/atlassian/confluence/confluence/WEB-INF/lib/

重启 Confluence:

$ /opt/atlassian/confluence/bin/shutdown.sh
$ /opt/atlassian/confluence/bin/startup.sh

成功启动后,进入输入 License 环节,然后把破解出来的 License 复制到内容框里:

下一步:

选择 MySQL:

如果没有下载驱动,则会显示如下:

请参照上述步骤下载 MySQL 驱动。然后重启后生效。

等待导入数据:

选择 Example Site(自定义):

选择 第一项,如果有其他需求可关联 JIRA:

输入管理员账户密码:

完成安装:

测试空间名称:

尽情享用把~

安装插件

安装个人偏好的插件:RefinedToolki

集成 Docker 

把现有的项目放入 Docker。

停止当前服务:

$ /opt/atlassian/confluence/bin/shutdown.sh

备份数据库

$ docker exec -it mysql sh -c "mysqldump -uroot -pshileizcc.com  confluence > /var/lib/mysql/confluence_`date +%F_%R`.sql"
$ mv /data/mysql/confluence_2018-12-12_15\:49.sql  /mnt/

拷贝数据目录和软件目录:

$ cp -a /var/atlassian/application-data /mnt/
$ cp -a /opt/atlassian /mnt/
$ rm -rf /mnt/atlassian/confluence/logs/*
$ cd /mnt

编写 Dockerfile:

Dockerfile
FROM ubuntu:16.04
LABEL AuthorEmail 383821949@qq.com \
      Domain Shileizcc.com \
      CreateTime 2019年 09月 19日 星期四

COPY atlassian /opt/atlassian
COPY application-data /var/atlassian/application-data
COPY *.sql /
COPY docker-entrypoint.sh /docker-entrypoint.sh

RUN apt-get update && \
    apt-get install -y fonts-baekmuk ttf-baekmuk fonts-nanum language-pack-zh-hans vim fontconfig && \
    rm -rf /var/lib/apt/lists/* && \
    fc-cache --force

ENV TZ="Asia/Shanghai"

EXPOSE 8090 8000

CMD ["/docker-entrypoint.sh"]

脚本文件,并且赋予可执行权限:

docker-entrypoint.sh
#!/bin/bash
set -e
# Start Server
/opt/atlassian/confluence/bin/startup.sh

ln -sf /dev/stdout /opt/atlassian/confluence/logs/catalina.out

exec tailf /opt/atlassian/confluence/logs/synchrony-proxy-watchdog.log

打包镜像:

$ chmod +x docker-entrypoint.sh
$ docker build -t slzcc/confluence:7.0.1 .


文档创建于 最后一次更新于  , 文档当前的状态 正式版 , 当前编写页面的版本 V1.3.1 。

  • No labels