confluence安装
1、jre安装
java下载
创建目录和解压缩
mkdir -p /usr/local/java
tar -zxf jre-8u101-linux-x64.tar.gz -C /usr/local/java/
环境变量更改
vim ~/.bashrc
export JAVA_HOME=/usr/local/java/jre1.8.0_101export PATH=$JAVA_HOME/bin:$PATHexport CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:$CLASSPATH
source ~/.bashrc
查看java版本java -version
2、安装mysql
mysql -u root -p #登录mysql数据库create database confluence character set UTF8; # 创建confluence 库grant all on confluence.* to confluence@"%" identified by "confluence";grant all on confluence.* to confluence@"localhost" identified by "confluence";FLUSH PRIVILEGES;quit #退出
3、安装confluence
chmod +x atlassian-confluence-5.4.4-x64.bin
./atlassian-confluence-5.4.4-x64.bin
分别选择o,1,i
打开浏览器 输入 http://服务器ip:8090,记下Server IDservice confluence stop #停掉Confluence 服务将confluence5.1-crack.zip 解压 将/opt/atlassian/confluence/confluence/WEB-INF/lib/atlassian-extras-2.4.jar 复制出来。替换confluence5.1-crack 中的atlassian-extras-2.4.jarchmod +x keygen.sh
使用Xmanager远程连接CentOS6.6图形界面
yum groupinstall "Desktop" "Desktop Platform" "X Window System" -y
修改/etc/gdm/custom.conf
[daemon][security]AllowRemoteRoot=true [xdmcp]Port=177Enable=true [gui][greeter][chooser][debug]
修改/etc/inittab
id:3:initdefault: 改成 id:5:initdefault:
重启服务器reboot
使用Xmanager的Xstart来启动界面
./keygen.sh #执行破解文件
输了Name,及之前记录下来的Server ID,按.patch! 选择需要破解的atlassian-extras-2.4.jar
按.gen!得到key
把破解好的包,复制回去复制破解后的atlassian-extras-2.4.jar 到 “/opt/atlassian/confluence/confluence/WEB-INF/lib/”覆盖原文件复制mysql-connector-java-5.1.32-bin.jar 到“/opt/atlassian/confluence/confluence/WEB-INF/lib/”
重新打开网页 http://服务器ip:8090 输入之前得到的key
参考: