学习软件包
https://download.csdn.net/download/westlifeml/87468819
防火墙
systemctl status firewalld.service
systemctl stop firewalld.service
systemctl disable firewalld.service
生成文件夹
mkdir -p /home/work/confluence
cd /home/work/confluence
下载
##wget https://product-downloads.atlassian.com/software/confluence/downloads/atlassian-confluence-8.1.0-x64.bin 破不了
wget https://down.whsir.com/downloads/atlassian-confluence-7.4.6-x64.bin
修改权限
chmod -c 744 atlassian-confluence-7.4.6-x64.bin
安装
./atlassian-confluence-7.4.6-x64.bin
安装中的提示
This will install Confluence 8.1.0 on your computer. # 问是不是要在这个电脑上装
OK [o, Enter], Cancel [c]
o #选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 #选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 #默认端口 8090 选i
Extracting files …
Please wait a few moments while we configure Confluence.
Installation of Confluence 8.1.0 is complete #是不是要启动
Start Confluence now?
Yes [y, Enter], No [n]
y #是 y
Please wait a few moments while Confluence starts up.
Launching Confluence …
Installation of Confluence 8.1.0 is complete
Your installation of Confluence 8.1.0 is now ready and can be accessed via
your browser.
Confluence 8.1.0 can be accessed at http://localhost:8090
Finishing installation …
装完
上传对应的java连接mysql数据的包至路径
/opt/atlassian/confluence/confluence/WEB-INF/lib
例:mysql8
maven库
https://mvnrepository.com/artifact/com.mysql/mysql-connector-j/8.0.32
软件包里有
mysql创建库
字符集
utf8mb4
排序
utf8mb4_bin
事物提交
set global transaction_isolation=‘READ-COMMITTED’
#mysql5
#set global tx_isolation=‘READ-COMMITTED’
配置开始
右上角切换语言到中文
选择第二个
安装产品
其他
服务器上下载文件
/opt/atlassian/confluence/confluence/WEB-INF/lib/atlassian-extras-decoder-v2-3.4.1.jar
本地重命名为 atlassian-extras-2.4.jar
cmd运行
java -jar confluence_keygen.jar
选择.patch!找到刚才重命名的atlassian-extras-2.4.jar文件
打开后在当前目录下可以看到atlassian-extras-2.4.jar和atlassian-extras-2.4.bak两个文件,这里atlassian-extras-2.4.jar已经是破解好的了,将atlassian-extras-2.4.jar名字改回atlassian-extras-decoder-v2-3.4.1.jar
备份原来的文件
mv /opt/atlassian/confluence/confluence/WEB-INF/lib/atlassian-extras-decoder-v2-3.4.1.jar /opt/atlassian/confluence/confluence/WEB-INF/lib/atlassian-extras-decoder-v2-3.4.1.jar.bak
然后上传回服务器目录
/opt/atlassian/confluence/confluence/WEB-INF/lib/
重启confluence服务:
/etc/init.d/confluence restart
获取ID
cmd运行
java -jar confluence_keygen.jar
计算完粘贴回去,一直下一步,最后测试数据库。