centos7搭建conference

安装前:关闭firewalld、selinux1
需要准备:
Confluence6.7.1安装包2
Confluence破解器3
(破解器需要电脑配置Java打开)
mysql-connector-java-5.0.8-bin.jar
jdk-8u181-linux-x64.rpm5
可以去我的文档:centos7搭建conference.note下载保存
链接:http://note.youdao.com/noteshare?id=f8a013e578843f95bbaa44d900469d60&sub=CEC88529543D451A89FEFDEDB745482D
1、安装数据库Mariadb
yum -y install mariadb mariadb-server1
systemctl start mariadb1 #启动
systemctl enable mariad #开机启动
mysql_secure_installation 开启配置

centos7搭建conference_第1张图片

2、配置mariadb
vim /etc/my.cnf
init_connect=‘SET collation_connection = utf8_unicode_ci’
init_connect=‘SET NAMES utf8’
character-set-server=utf8
collation-server=utf8_unicode_ci
skip-character-set-client-handshake9
vim /etc/my.cnf.d/client.cnf,
在【client】中添加default-character-set=utf81
vim /etc/my.cnf.d/mysql-clients.cnf
在【MySQL】中添加default-character-set=utf81

3、添加数据库,用户,密码
MariaDB [(none)]> create database confluence default character set utf8 collate utf8_bin;
Query OK, 1 row affected (0.01 sec)
MariaDB [(none)]> grant all on confluence.* to ‘confluence’@’%’ identified by ‘confluencepasswd’;

Query OK, 0 rows affected (0.00 sec)MariaDB [(none)]> flush privileges; Query OK, 0 rows affected (0.00 sec)
4、安装confluence
chmod +x atlassian-confluence-6.7.1-x64.bin
./atlassian-confluence-6.7.1-x64.bin
Unpacking JRE …
Starting Installer …

o确定安装,c取

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

选择1是使用默认安装路径,2为自定义安装

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

Confluence can be run in the background.3
You may choose to run Confluence as a service, which means it will start3
automatically whenever the computer restarts.3
Install Confluence as Service?3
Yes [y, Enter], No [n]
y
Extracting files……
Please wait a few moments while we configure Confluence.

是否启动Confluence

Installation of Confluence 6.8.5 is complete
Start Confluence now? Yes [y, Enter], No [n]
y
Please wait a few moments while Confluence starts up.
Launching Confluence …

安装完成,访问本机的8090端口进行web端安装

Installation of Confluence 6.8.5 is complete
Your installation of Confluence 6.8.5 is now ready and can be accessed via5 3 your browser. Confluence 6.8.5 can be accessed at http://localhost:80905
Finishing installation …
默认安装目录:/opt/atlassian/confluence
默认数据存放目录:/var/atlassian/application-data/confluence
日志:/opt/atlassian/confluence/logs/catalina.out

5、浏览器测试
http://ip:8090
进入以后选择中文下一步,
记住server id

service confluence stop
cp /opt/atlassian/confluence/confluence/WEB-INF/lib/atlassian-extrasdecoder-v2-3.3.0.jar /opt/atlassian-extras-decoder-v2-3.3.0.jar.bak #备份
mv /opt/atlassian/confluence/confluence/WEB-INF/lib/atlassian-extrasdecoder-v2-3.3.0.jar /opt/atlassian-extras-2.4.jar
将atlassian-extras-2.4.jar,下载到window
6、破解confluence
运行破解器confluence_keygen.jar
① 打开下载的破解工具,运行confluence_keygen.jar
②将记录的server ID填入,Name随便填。
③点击gen, 生成key并记录。
④点击patch,选择刚下传到本地的atlassian-extras-2.4.jar文件进行破解

centos7搭建conference_第2张图片
点击gen 运行patch
centos7搭建conference_第3张图片
7、将破解后的文件传到服务器
mv atlassian-extras-2.4.jar atlassian-extras-decoder-v2-3.3.0.jar mv atlassian-extras-decoder-v2-3.3.0.jar
/opt/atlassian/confluence/confluence/WEB-INF/lib/
8、上传mysql驱动
cp mysql-connector-java-5.1.46-bin.jar /opt/atlassian/confluence/lib/
service confluence start
9、配置confluence
9.1 输入key进行授权
centos7搭建conference_第4张图片
下一步

9.2、配置数据库
centos7搭建conference_第5张图片
设置管理员后进入以下页面
centos7搭建conference_第6张图片
安装插件
yum install texmaker texlive-latex latexmk
yum install dvipng

你可能感兴趣的:(centos,linux,conference)