关注各种黑科技
B站UP主,编程教学,游戏玩家,挂B,金牛座

confluence安装部署破解

今天搭一个内部wiki,用现成的产品confluence。之前自己用django写过一个wiki,感觉就是权限部分比较麻烦,其他就是一个多人blog系统,当然wiki的url规则和blog是不同的。

atlassian confluence 6.12.0 下载
https://www.atlassian.com/software/confluence/download tar包
http://www.confluence.cn/pages/viewpage.action?pageId=6722516 bin包

为了简单 直接用bin包安装
wget http://downloads.atlassian.com/software/confluence/downloads/atlassian-confluence-6.12.0-x64.bin

安装遇到一个坑
CentOS release 5.10 (Final) 官方停止更新了 ,升级到5.11才能用,国内的yum镜像更新会报错
https://unix.stackexchange.com/questions/359902/yum-update-error-on-centos-5-6

安装流程
chmod +x atlassian-confluence-6.12.0-x64.bin
./atlassian-confluence-6.12.0-x64.bin
端口预留
HTTP: 8090, Control: 8000
http://公网IP:8090

在服务器上下载/opt/atlassian/confluence/confluence/WEB-INF/lib/atlassian-extras-decoder-v2-3.4.1.jar 文件到本地重命名为atlassian-extras-2.4.jar

运行 confluence_keygen.jar .path atlassian-extras-2.4.jar
confluence_keygen.jar 网上搜 貌似没有confluence版本限制

重新上传回 /opt/atlassian/confluence/confluence/WEB-INF/lib/
mv atlassian-extras-2.4.jar atlassian-extras-decoder-v2-3.4.1.jar

service confluence restart

复制网页中的服务器ID,运行破解工具confluence_keygen.jar,破解复制Key到Confluence里,gen

下载mysql lib
https://confluence.atlassian.com/doc/database-jdbc-drivers-171742.html
https://confluence.atlassian.com/doc/database-setup-for-mysql-128747.html

wget https://cdn.mysql.com//Downloads/Connector-J/mysql-connector-java-5.1.47.tar.gz
tar xf mysql-connector-java-5.1.47.tar.gz
cp mysql-connector-java-5.1.47/*.jar /opt/atlassian/confluence/confluence/WEB-INF/lib/

这里用mysql 要求使用 MySQL 5.6 或以上版本

vim /etc/yum.repos.d/mysql-community.repo
[mysql56-community]
name=MySQL 5.6 Community Server
baseurl=http://repo.mysql.com/yum/mysql-5.6-community/el/5/$basearch/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
yum install mysql-community-server

编辑 /etc/my.cnf
default-storage-engine=INNODB
transaction-isolation=READ-COMMITTED

service mysqld restart

mysql -uroot -p 默认空密码
mysql> create user cf@localhost identified by 'cf';
mysql> create database cf character set utf8 collate utf8_bin;
mysql> grant all privileges on cf.* to cf@'localhost';
mysql> FLUSH PRIVILEGES;
mysql> quit

bug 浏览器可以卡在连接数据库的界面 换个浏览器试试

参考
https://www.cyberciti.biz/faq/centos-5-6-install-mysql-server/
https://zisakuzien.exblog.jp/23831811/
https://dba.stackexchange.com/questions/36804/mysql-5-6-failure

转载请注明出处
分享到: 更多 (0)

评论 0