ubuntu安装confluence

环境

系统:ubuntu

安装环境:confluence

1.安装java环境

详情见:ubuntu下安装java、jira

2.安装mysql数据库

sudo apt-get update
sudo apt-get install mysql-server //安装mysql
mysql -u root -p //进入mysql
mysql> create database confluence character SET utf8 COLLATE utf8_bin; //创建Confluence对应数据库并授权
mysql> SET GLOBAL transaction_isolation='READ-COMMITTED';  //设置mysql隔离级别 
mysql>create user 'confluence'@'%' identified by '123456';
mysql>GRANT ALL PRIVILEGES ON confluence.* TO 'confluence'@'%' WITH GRANT OPTION;
mysql> FLUSH PRIVILEGES;

如果mysql隔离级别不能生效,则对配置文件强行修改

对mysql配置文件/etc/mysql/mysql.conf.d/mysqld.cnf中最后添加如下

transaction-isolation=READ-COMMITTED

3.到官网下载confluence

下载地址:https://www.atlassian.com/software/confluence/download

ubuntu安装confluence

 

 

 

添加权限

sudo chmod +x atlassian-confluence-6.15.2-x64.bin

安装

sudo ./atlassian-confluence-6.15.2-x64.bin

ubuntu安装confluence

 

 

 

This will install Confluence 7.9.3 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

 

需要下载mysql-connector-java-8.0.15.jar

下载地址:

https://confluence.atlassian.com/doc/database-jdbc-drivers-171742.html

https://repo1.maven.org/maven2/mysql/mysql-connector-java/8.0.15/

将mysql-connector-java-8.0.15.jar拷贝到/opt/atlassian/confluence/confluence/WEB-INF/lib文件夹下
mv mysql-connector-java-8.0.15.jar /opt/atlassian/confluence/confluence/WEB-INF/lib/mysql-connector-java-8.0.15.jar

 

 

启动confluence服务,浏览器访问http://ip:8090/开始安装

sudo service confluence start

设置confluence,选择“产品安装”

ubuntu安装confluenceubuntu安装confluenceubuntu安装confluence

 添加自己的License Key,然后设置数据库

ubuntu安装confluence

 加载内容,选择“示范站点”ubuntu安装confluence

 

 配置用户管理,选择“在confluence中管理用户与组”ubuntu安装confluence

 

 配置系统管理员账户

ubuntu安装confluence

 

设置好后,进入主页

ubuntu安装confluence

 

这就完成了 

上一篇:sql server已忽略重复的主键的错误分析


下一篇:你的NMS该换了!Confluence:实现更准、更强的目标检测