在centos7.5下安装Confluence数据库采用mysql5.7
mysql5.7 install
安装步骤见如下链接:点这里.
安装并配置Confluence
注:confluence本身自带jdk无须额外配置
1. Run the installer with ‘root‘ user privileges and the installation will create a dedicated Linux user account named ‘confluence‘ which will be used to run Confluence:
./atlassian-confluence-6.4.2-x64.bin
You will get the following output:
Unpacking JRE …
Starting Installer …
Dec 03, 2015 10:43:54 AM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
This will install Confluence 6.4.2 on your computer.
OK [o, Enter], Cancel [c]
Press enter.
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]
You can proceed with a custom install if you want, but we will enter 2 in our CLI for an Express install with the default settings:
See where Confluence will be installed and the settings that will be used.
Installation Directory: /opt//inno/atlassian/confluence (这里可以设置安装路径)
Home Directory: /opt/inno/atlassian/application-data/confluence (这里可以设置home directory)
HTTP Port: 8090
RMI Port: 8000
Install as service: Yes
Install [i, Enter], Exit [e]
Press Enter again to start the Confluence installation which will give you the below output:
Extracting files …
Please wait a few moments while Confluence starts up.
Launching Confluence …
Installation of Confluence 6.4.2 is complete
Your installation of Confluence 6.4.2 is now ready and can be accessed via your browser.
Confluence 6.4.2 can be accessed at http://localhost:8090
Finishing installation …
2. 配置Confluence
• Install type – choose option 2 (custom) for the most control.
• Destination directory – this is where Confluence will be installed.
• Home directory – this is where Confluence data like logs, search indexes and files will be stored.
• TCP ports – these are the HTTP connector port and control port Confluence will run on. Stick with the default unless you're running another application on the same port.(
• Install as service – this option is only available if you ran the installer as sudo.
• Once installation is complete head to http://localhost:8090/ in your browser to begin the setup process. (Replace 8090 if you chose a different port during installation).
在火狐浏览器打开http://localhost:8090
(1)Choose installation type(选择安装类型)
1. Choose Production installation.
2. Choose any apps you'd also like to install.
(2)Enter your license(输入许可证)
Follow the prompts to log in to my.atlassian.com to retrieve your license, or enter a license key.
(3)Connect to your database(连接到数据库)
(4)Enter your database details(输入数据库详细信息。使用测试连接检查数据库是否正确设置。)
a) choose mysql(这里看上文安装的是哪个数据库)
b) 这里有两种方式,一种是选择Simple,一种是选择By connection string。这里我mysql用的是Simple。
下面是官网的说法,和我上面的意思差不多一致
The Confluence setup wizard will provide you with two setup options:
(1)Simple - this is the most straightforward way to connect to your database.
(2)By connection string - use this option if you want to specify additional parameters and are comfortable constructing a database URL.
• 选择 By connection string
Database URL
The database URL is entered in this format:(填写以下信息,具体见下方实例)
jdbc:sqlserver://<hostname>:<port>;databaseName=<database>
For example:(如果数据库是本地安装的则使用localhost即可,如果是在别的服务器安装的则把hostname换成服务器的ip地址)
jdbc:sqlserver://localhost:3306;databaseName=confluence
note:
PortThis is the Mysql port. If you didn’t change the port when you installed Mysql, it will default to 3306.
Username 这里就是你创建的数据库用户的名称,我这里是填confluencelogin
Password 这里就是数据库用户的密码
• 选择Simple
Setup type | Field | Description |
---|---|---|
Simple | Hostname | 如果数据库是本地安装的则使用localhost即可,如果是在别的服务器安装的则把hostname换成服务器的ip地址 |
Simple | Port | mysql 默认端口为3306/sqlserver默认端口为1433 |
Simple | Database name | 这里就是你创建的数据库的名称,我这里是填confluence |
Simple | Username | 这里就是你创建的数据库用户的名称,我这里是填confluencelogin |
Simple | Password | 这里就是数据库用户的密码 |
(5)Test your database connection(测试数据库的连接若没有问题则进行下一步)
In the database setup screen, hit the Test connection button to check:
• Confluence can connect to your database server
• the database collation and isolation level is correct
• your database user has appropriate permissions for the database
Once the test is successful, hit Next to continue with the Confluence setup process.
4.choose Example Site(选择示例站点)
Load Content
Example Site
Recommended: Load the ‘Demonstration Space’ to begin working with Confluence immediately.
Empty Site
Start with an empty site. After finishing the setup you will need to create at least one space before you can add any content of your own.
Restore From Backup
Use data from another installation of Confluence. If you are migrating to another database or replicating Confluence you will probably want to select this option.
出现了页面响应超时的问题:
问题详细描述:
先往前退一步重新加载页面,显示数据库里已经存在表,点击覆盖出现系统问题
解决方法:
将/opt/inno/atlassian/application-data/confluence里的confluence.cfg.xml删除
执行/opt/inno/confluence/bin目录下的
./stop-confluence.sh
./start-confluence.sh
5.建立账户
参考链接:
数据库搭建:Database Configuration.
Confluence搭建Installing Confluence on Linux.