官网下载:https://www.atlassian.com/software/confluence/download-archives

服务器要求:4 核 8G

版本:

mysql:5.7.44

jdk-11.0.20_linux-x64.rpm

mysql-connector-java-5.1.49

atlassian-confluence-8.5.14-x64.bin

1.安装 java

rpm -ivh jdk-11.0.20_linux-x64.rpm

2.安装 mysql

CREATE DATABASE confluence CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
grant all on confluence.* to confluence@'%' identified by 'confluence';
grant all on confluence.* to 'confluence'@'localhost' identified by 'confluence';
flush privileges;

3.安装atlassian-confluence

chmod +x atlassian-confluence-8.5.14-x64.bin
./atlassian-confluence-8.5.14-x64.bin
# 注意默认安装路径,可以修改,本次没有修改
# 默认 o 1 i y
Regenerating the font cache
Fonts and fontconfig have been installed
Unpacking JRE ...
Starting Installer ...

This will install Confluence 8.5.14 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]
1

See where Confluence will be installed and the settings that will be used.
Installation Directory: /opt/atlassian/confluence 
Home Directory: /var/atlassian/application-data/confluence 
HTTP Port: 8090 
RMI Port: 8000 
Install as service: Yes 
Install [i, Enter], Exit [e]
i

Extracting files ...
                                                                           

Please wait a few moments while we configure Confluence.

Start Confluence now?
Yes [y, Enter], No [n]
y

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

Your installation of Confluence 8.5.14 is now ready and can be accessed via
your browser.
Confluence 8.5.14 can be accessed at http://localhost:8090
SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details.
Finishing installation ...
# 启动关闭命令,安装完成后默认是启动的,端口 8090
/etc/init.d/confluence stop

3.激活授权

atlassian-agent下载地址:

 https://raw.githubusercontent.com/pmkol/atlassian-agent/master/atlassian-agent-v1.2.3.tar.gz

https://github.com/haxqer/confluence/releases/download/v1.3.3/atlassian-agent.jar

mysql-connector驱动下载地址:8.0 版本之前都可以下载 5.1.49 版本的驱动:mysql-connector-java-5.1.49.tar.gz

https://downloads.mysql.com/archives/c-j/

tar -xzvf mysql-connector-java-5.1.49.tar.gz && cd mysql-connector-java-5.1.49 
cp mysql-connector-java-5.1.49-bin.jar /opt/atlassian/confluence/confluence/WEB-INF/lib/
cp atlassian-agent.jar /opt/atlassian/confluence/

echo -e ‘\nexport JAVA_OPTS=“-javaagent:/opt/atlassian/atlassian-agent-v1.2.3/atlassian-agent.jar ${JAVA_OPTS}”\n’ >> /opt/atlassian/confluence/bin/setenv.sh

/etc/init.d/confluence start
# 可以看到启动后有:-javaagent:/opt/atlassian/confluence/atlassian-agent.jar
[root@wiki243 atlassian-agent-v1.3.1]# ps -ef | grep java
conflue+ 16422     1 24 17:47 ?        00:16:55 /opt/atlassian/confluence/jre//bin/java -Djava.util.logging.config.file=/opt/atlassian/confluence/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -javaagent:/opt/atlassian/confluence/atlassian-agent.jar -Datlassian.plugins.startup.options= -Dorg.apache.tomcat.websocket.DEFAULT_BUFFER_SIZE=32768 -Dconfluence.context.path= -Dsynchrony.enable.xhr.fallback=true -Datlassian.plugins.enable.wait=300 -Djava.awt.headless=true -Xlog:gc*:file=/opt/atlassian/confluence/logs/gc-%t.log:tags,time,uptime,level:filecount=5,filesize=2M -XX:G1ReservePercent=20 -XX:+UseG1GC -XX:+ExplicitGCInvokesConcurrent -XX:+IgnoreUnrecognizedVMOptions @/opt/atlassian/confluence/confluence/WEB-INF/jpms-args.txt -XX:ReservedCodeCacheSize=256m -Xms1024m -Xmx1024m -Dignore.endorsed.dirs= -classpath /opt/atlassian/confluence/bin/bootstrap.jar:/opt/atlassian/confluence/bin/tomcat-juli.jar -Dcatalina.base=/opt/atlassian/confluence -Dcatalina.home=/opt/atlassian/confluence -Djava.io.tmpdir=/opt/atlassian/confluence/temp org.apache.catalina.startup.Bootstrap start

4.web页面授权

http://192.168.10.10:8090

Confluence 构建企业级 Wiki_jar

Confluence 构建企业级 Wiki_jar_02

Confluence 构建企业级 Wiki_mysql_03

# 生成许可证注:参数说明【-m邮箱】 【-n 用户名】 【-o 公司名】 【-s 服务器ID】
[root@wiki243 confluence]# java -jar /opt/atlassian/confluence/atlassian-agent.jar -d -m qq@163.com -n BAT -p conf -o http://192.168.10.10 -s BP96-OEJR-EK64-MVQ4

====================================================
=======     Atlassian Crack Agent v1.3.1     =======
=======           https://zhile.io           =======
=======          QQ Group: 30347511          =======
====================================================

Your license code(Don't copy this line!!!): 

AAABpA0ODAoPeJxtkVuPmzAQhd/9K5D6uCLhVgKRLDUhpE3KJQtk2z4aMglWiUHGZMP++hrCqtJq5
SfPseec+ebLLzgpq+6iaAtFXyy/WkvNVrw0UwzNsJDHgQhasw0RgIeKqjmqtkD+jVTdqOAzqVpAG
2gLTpuxcmQVvVIh+1a0ANaCkvdKKUTTLufzt5JWMKM1ivmFMNo+mgyqFHVtpstjWCYqanaekULQG
2DBO0BezYS8+yGhFe4Ju9zlx0tRduybbpuzor6iye4HaUsceq/edh15c/fPaX2MnGwnnvfNb7u2n
UNxyvJVmTw1W+LSOmjimJ8Svm/vsZtsv3dd/orxI0AqCBfApyHHUvAwyfoGInIF7MVh6CfebhUgG
Y0JYIQV4N8byvsJm+NKddO26e9ug4PdJvUjNdAXhimxWpatWzZKgd+AS3l9cG019veJ6v+0LTV8e
bYe7rIj8YANmUYqf6F/Ad4ODHVbssaaY5r6u8/nIQ4dL0rSwsedTvTe2xko7fL/Sx3dxghRd82Bx
+djK19iVUdyEPzJMNPCRkjrVfYP85zHjzAsAhRogttPVr3TFjf36OLPE4HUeW9oMQIUHqpiIKBjR
N+dMe5OcMytbmf3/V0=X02k8

5.设置连接自己的数据库账号密码

6.设置 admin账号密码

7.登录成功后查看授权是否成功

点击“人员”---admin---"授权细节“

Confluence 构建企业级 Wiki_mysql_04