发表于: 2017-11-30 11:26:13
2 979
资源准备
atlassian-confluence-6.3.1-x64.bin
jdk-8u131-linux-x64.rpm
#----------------安装jdk8环境---------------------------
1. 将sorce资源包下面的文件全部上传到/opt下面
2. rpm -ivh jdk-8u131-linux-x64.rpm
3. vi /etc/profile
...
JAVA_HOME=/usr/java/jdk1.8.0_131
JAVA_BIN=/usr/java/jdk1.8.0_131/bin
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/bin
CLASSPATH=.:/lib/dt.jar:/lib/tools.jar
...
4. java -version
5. echo $JAVA_HOME
#----------------安装jdk8环境---------------------------
#----------------安装MariaDB数据库----------------------
1. 安装MariaDB数据库
centos7.2
yum install -y mariadb mariadb-server
systemctl start mariadb
centos6.5 /etc/init.d/mysqld start
http://blog.csdn.net/renfufei/article/details/17616549
2. 设置MariaDB数据库 密码123456
mysqladmin -u root password '123456'
3. 配置MariaDB字符集
vi /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
…
vi /etc/my.cnf.d/client.cnf
[client]
default-character-set=utf8
重启
systemctl restart mariadb
4. 进入MariaDB,查看配置是否生效
mysql -uroot-p123456
mysq -p123456
MariaDB [(none)]> show variables like '%character%';show variables like '%collation%';
5. 创建对应的数据库、用户名、密码
MariaDB [(none)]> create database confluence default character set utf8 collate utf8_bin;
Query OK, 1 row affected (0.02 sec)
6. 赋予confluence用户任意主机访问confluence数据库,密码是******
MariaDB [(none)]> grant all on confluence.* to 'confluence'@'%' identified by '******';
Query OK, 0 rows affected (0.01 sec)
7. 刷新配置权限
MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.00 sec)
#----------------安装MariaDB数据库----------------------
#----------------安装破解Confluence6.3------------------
1. chmod +x atlassian-confluence-6.3.1-x64.bin
2. ./atlassian-confluence-6.3.1-x64.bin (全部enter使用默认配置)
#----------------安装破解Confluence6.3------------------
开启8090端口号,并启动服务
/etc/init.d/confluence start
遇到的问题
1.由于使用腾讯云服务器,内存1G 需要启动系统交换区
2.使用以上方法配置java环境变量时,需要重启服务器(export JAVA_HOME=/usr/java/jdk1.8.0_102/ 命令 则不需要重启服务器)
评论