赞
踩
前提:web服务,文件服务,数据库服务部署在同一台服务器上。
推荐配置
2核 + 4G8G内存 + 300G硬盘
经过实践,4G内存还是不够用。
- cd /home/confluence
- chmod 777 atlassian-confluence-6.9.1-x64.bin
- [root@localhost confluence]# ./atlassian-confluence-6.9.1-x64.bin
- Unpacking JRE ...
- Starting Installer ...
- #是否要安装:是
- This will install Confluence 6.9.1 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]
- 2
- #默认安装目录?:否 /home/confluence/app
- Select the folder where you would like Confluence 6.9.1 to be installed,
- then click Next.
- Where should Confluence 6.9.1 be installed?
- [/opt/atlassian/confluence]
- /home/confluence/app
- #默认数据目录?:否 /home/confluence/data
- Default location for Confluence data
- [/var/atlassian/application-data/confluence]
- /home/confluence/data
- #默认端口?:是
- Configure which ports Confluence will use.
- Confluence requires two TCP ports that are not being used by any other
- applications on this machine. The HTTP port is where you will access
- Confluence through your browser. The Control port is used to Startup and
- Shutdown Confluence.
- Use default ports (HTTP: 8090, Control: 8000) - Recommended [1, Enter], Set custom value for HTTP and Control ports [2]
- 1
- #确认安装confluence作为服务?:是
- Confluence can be run in the background.
- You may choose to run Confluence as a service, which means it will start
- automatically whenever the computer restarts.
- Install Confluence as Service?
- Yes [y, Enter], No [n]
- y
- Extracting files ...
-
-
- Please wait a few moments while we configure Confluence.
- #安装完成,是否启动?是
- Installation of Confluence 6.9.1 is complete
- Start Confluence now?
- Yes [y, Enter], No [n]
- y
-
- Please wait a few moments while Confluence starts up.
- Launching Confluence ...
-
- Installation of Confluence 6.9.1 is complete
- Your installation of Confluence 6.9.1 is now ready and can be accessed via
- your browser.
- Confluence 6.9.1 can be accessed at http://localhost:8090
- Finishing installation ...
- [root@localhost confluence]# firewall-cmd --zone=public --add-port=8090/tcp --permanent
- success
- [root@localhost confluence]# firewall-cmd --zone=public --add-port=8000/tcp --permanent
- success
- [root@localhost confluence]# systemctl reload firewalld
- [root@localhost ~]# /home/confluence/app/bin/shutdown.sh
- If you encounter issues starting up Confluence, please see the Installation guide at http://confluence.atlassian.com/display/DOC/Confluence+Installation+Guide
-
- Server startup logs are located in /home/confluence/app/logs/catalina.out
- ---------------------------------------------------------------------------
- Using Java: /home/confluence/app/jre//bin/java
- 2020-09-17 08:22:40,784 INFO [main] [atlassian.confluence.bootstrap.SynchronyProxyWatchdog] A Context element for ${confluence.context.path}/synchrony-proxy is found in /home/confluence/app/conf/server.xml. No further action is required
- ---------------------------------------------------------------------------
- Using CATALINA_BASE: /home/confluence/app
- Using CATALINA_HOME: /home/confluence/app
- Using CATALINA_TMPDIR: /home/confluence/app/temp
- Using JRE_HOME: /home/confluence/app/jre/
- Using CLASSPATH: /home/confluence/app/bin/bootstrap.jar:/home/confluence/app/bin/tomcat-juli.jar
- Using CATALINA_PID: /home/confluence/app/work/catalina.pid
- Tomcat stopped.
- [root@localhost ~]#
- [root@localhost ~]# /home/confluence/app/bin/startup.sh
- If you encounter issues starting up Confluence, please see the Installation guide at http://confluence.atlassian.com/display/DOC/Confluence+Installation+Guide
-
- Server startup logs are located in /home/confluence/app/logs/catalina.out
- ---------------------------------------------------------------------------
- Using Java: /home/confluence/app/jre//bin/java
- 2020-09-17 08:29:19,271 INFO [main] [atlassian.confluence.bootstrap.SynchronyProxyWatchdog] A Context element for ${confluence.context.path}/synchrony-proxy is found in /home/confluence/app/conf/server.xml. No further action is required
- ---------------------------------------------------------------------------
- Using CATALINA_BASE: /home/confluence/app
- Using CATALINA_HOME: /home/confluence/app
- Using CATALINA_TMPDIR: /home/confluence/app/temp
- Using JRE_HOME: /home/confluence/app/jre/
- Using CLASSPATH: /home/confluence/app/bin/bootstrap.jar:/home/confluence/app/bin/tomcat-juli.jar
- Using CATALINA_PID: /home/confluence/app/work/catalina.pid
- Tomcat started.
#mariadb是mysql的一个分支,具体内容参考百科
#https://baike.baidu.com/item/mariaDB/6466119?fr=aladdin
yum -y install mariadb mariadb-server
systemctl start mariadb
接下来进行MariaDB的相关简单配置
执行命令
mysql_secure_installation
首先是设置密码,会提示先输入密码
Enter current password for root (enter for none):<–初次运行直接回车
设置密码
Set root password? [Y/n] <– 是否设置root用户密码,输入y并回车或直接回车
New password: <– 设置root用户的密码
Re-enter new password: <– 再输入一次你设置的密码
其他配置
Remove anonymous users? [Y/n] <– 是否删除匿名用户,回车
Disallow root login remotely? [Y/n] <–是否禁止root远程登录,回车,
Remove test database and access to it? [Y/n] <– 是否删除test数据库,回车
Reload privilege tables now? [Y/n] <– 是否重新加载权限表,回车
初始化MariaDB完成,接下来测试登录
mysql -u root -p
修改my.cnf文件设置字符集等配置
my.cnf文件配置的坑:
坑1:
# Disabling symbolic-links is recommended to prevent assorted security risks symbolic-links=0
应该是分两行展示了,修改该行为一行显示,或者把这两行全部注释掉即可
坑2:
以下红色部分提前配置一下,否则后面会有进行配置和重启数据库服务的操作。
[root@heaven00 soft]# cat /etc/my.cnf
[mysqld]
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-handshake
max_allowed_packet=256M
innodb_log_file_size=1G
[client]
default-character-set=utf8
[mysql]
default-character-set=utf8
重启数据库
systemctl restart mariadb.service
#如果重启失败了,删除以下log再重启
cd /var/lib/mysql
rm -rf ib_logfile*
systemctl restart mariadb.service
- [root@localhost ~]# mysql -u root -p
- Enter password:
- Welcome to the MariaDB monitor. Commands end with ; or \g.
- Your MariaDB connection id is 2
- Server version: 5.5.65-MariaDB MariaDB Server
-
- Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
-
- Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
-
- MariaDB [(none)]> create database confluence default character set utf8 collate utf8_bin;
- Query OK, 1 row affected (0.00 sec)
-
- MariaDB [(none)]> grant all on confluence.* to 'confluence'@'%' identified by '123456';
- Query OK, 0 rows affected (0.00 sec)
-
- MariaDB [(none)]> flush privileges;
- Query OK, 0 rows affected (0.00 sec)
-
- MariaDB [(none)]> SET GLOBAL tx_isolation='READ-COMMITTED';
- Query OK, 0 rows affected (0.00 sec)
-
- MariaDB [(none)]>
官网找demo: https://gitee.com/enterprises/demo
用管理员创建用户什么的就不在此细说了。
设置一下就可以了
- mysql -u root -p
- Enter password:
- Welcome to the MariaDB monitor. Commands end with ; or \g.
- Your MariaDB connection id is 416
- Server version: 5.5.65-MariaDB MariaDB Server
-
- Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
-
- Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
-
- MariaDB [(none)]> use confluence
- Reading table information for completion of table and column names
- You can turn off this feature to get a quicker startup with -A
-
- Database changed
- MariaDB [confluence]> set @@session.tx_isolation='read-committed';
- Query OK, 0 rows affected (0.00 sec)
-
- MariaDB [confluence]> select @@session.tx_isolation;
- +------------------------+
- | @@session.tx_isolation |
- +------------------------+
- | READ-COMMITTED |
- +------------------------+
- 1 row in set (0.00 sec)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。