三、在linux上安装Confluence

1.下载安装包

文件名称:atlassian-confluence-7.11.1-x64.bin
链接: https://pan.baidu.com/s/1RRw2Hbxg5Gd_0qMFZBYz9g 密码: 6n7w
将安装包上传至服务器“ / data / AtlassianResource”中

2.安装汇合

[root@langer ~]# df -h                                                                             // 查询当前系统磁盘分区情况
[root@langer ~]# cd /data/AtlassianResource                                                        // 进入安装资源目录
[root@langer AtlassianResource]# chmod a+x atlassian-confluence-5.9.8-x64.bin                      // 让安装包有可执行权限
[root@langer AtlassianResource]# ./atlassian-confluence-5.9.8-x64.bin                              // 执行安装
Unpacking JRE ...
Starting Installer ...
Apr 24, 2016 3:40:34 PM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
Apr 24, 2016 3:40:34 PM java.util.prefs.FileSystemPreferences$2 run
INFO: Created system preferences directory in java.home.
This will install Confluence 5.9.8 on your computer.
OK [o, Enter], Cancel [c]                                                                          // 询问是否安装?  安装[输入o,回车],取消[输入c]
o                                                                                                  // 当然输入o安装
Choose the appropriate installation or upgrade option.
Please choose one of the following:                                                                // 选择一个安装类型:
Express Install (uses default settings) [1],                                                       // 快速安装(使用默认配置)[1]
Custom Install (recommended for advanced users) [2, Enter],                                        // 自定义安装(建议使用此类型)[2]
Upgrade an existing Confluence installation [3]                                                    // 升级安装(升级已存在的Confluence)[3]
2                                                                                                  // 选2,自定义安装
Where should Confluence 5.9.8 be installed?                                                        // Confluence安装在哪?
[/opt/atlassian/confluence]                                                                        // 默认的【安装目录】
/data/atlassian/confluence                                                                         // 改为"/data/atlassian/confluence"
Default location for Confluence data                                                               // Confluence数据目录
[/var/atlassian/application-data/confluence]                                                       // 默认的【数据目录】
/data/atlassian/application-data/confluence                                                        // 改为"/data/atlassian/application-data/confluence"
Configure which ports Confluence will use.                                                         // 配置哪个端口给Confluence使用
Confluence requires two TCP ports that are not being used by any other                             // Confluence需要两个未被使用的TCP端口:HTTP端口和Control(控制)端口
applications on this machine. The HTTP port is where you will access                               // HTTP端口:用于浏览器访问
Confluence through your browser. The Control port is used to Startup and                           // Control(控制)端口:用于启动和停止Confluence
Shutdown Confluence.
Use default ports (HTTP: 8090, Control: 8000) - Recommended [1, Enter], Set custom value for HTTP and Control ports [2]        // 默认(HTTP: 8090, Control: 8000)[1, 回车],自定义[2]
2                                                                                                  // 这里我们也选择2,但是实际不去改它,只是阅览下
HTTP Port Number
[8090]
Control Port Number
[8000]
Confluence can be run in the background.
You may choose to run Confluence as a service, which means it will start                           // Confluence安装成系统服务后,可以后台运行,可以用服务命令形式(service 服务名 start/stop)启停,还可以随计算机自启动。
automatically whenever the computer restarts.
Install Confluence as Service?                                                                     // 将Confluence安装成系统服务?
Yes [y, Enter], No [n]                                                                             // 是[y,回车],否[n]
y                                                                                                  // y,回车
Extracting files ...
                                                                             
Please wait a few moments while Confluence starts up.
Launching Confluence ...
Installation of Confluence 5.9.8 is complete
Your installation of Confluence 5.9.8 is now ready and can be accessed via
your browser.
Confluence 5.9.8 can be accessed at http://localhost:8090                                          // 访问地址 http://[ip]:8090,如http://127.0.0.1:8090
Finishing installation ...                                                                         // 安装完毕
[root@langer AtlassianResource]#

3,放置MySQL数据库连接驱动(可选)

此步骤仅使用MySQL数据库时才需要,因为Confluence安装包中不自带MySQL连接驱动,而其他数据库的连接驱动均自带。使用非MySQL数据库的人请跳过此步骤。

  • 下载MySQL数据库连接驱动
    • 文件名:mysql-connector-java-5.1.40-bin.jar
    • 链接: https://pan.baidu.com/s/15h7gqULBKmMiGRKwTF8g2w 密码: ua63
  • 发布至服务器“ / data / AtlassianResource”中
  • 放置文件“ mysql-connector-java-5.1.40-bin.jar”
[root@langer ~]# service confluence stop                                                                                                      // 先停止Confluence服务
[root@langer ~]# cp -R /data/AtlassianResource/mysql-connector-java-5.1.34-bin.jar /data/atlassian/confluence/confluence/WEB-INF/lib          // 复制文件到Confluence【安装目录】中的WEB-INF/lib文件夹下
[root@langer ~]# service confluence start

4,汇合初始化设置

至此之后,Confluence就安装完成了,接下来将进行初始化设置,请查阅Confluence初始化设置向导页。

上一篇:第一章 Confluence基础介绍


下一篇:confluence插件开发