注:本文參考了 《 confluence搭建破解及漢化教程 》
本文是在yum環境搭建好,且可用聯網的前提下進行的實際操作並作記錄的。
關於yum本地環境搭建可以參考此文:《CentOS7.2 創建本地YUM源和局域網YUM源》
關於linux 環境聯網。設置靜態ip 可以參考此文:《Centos7 設置靜態IP地址》也可以直接設置為動態ip.
Confluence是一個專業的企業知識管理與協同軟件,也可以用於構建企業wiki。使用簡單,但它強大的編輯和站點管理特征能夠幫助團隊成員之間共享信息、文檔協作、集體討論,信息推送。
在此記錄下搭建以及破解過程。
一.環境介紹
1.jdk-8u151-linux-x64.rpm
2.mysql-server-5.1.73-8.el6_8.x86_64.rpm
3.atlassian-confluence-5.6.6-x64.bin
4.操作系統centos6.5 64位
二.安裝步驟
1.安裝JAVA環境
參考一:《Centos7 linux 卸載自帶安裝的jdk 並yum自動安裝jdk1.8》。本博主自己搭建的jdk環境安裝是用了該“參考一”的操作方式。
參考二:
#在/usr目錄下創建java目錄 mkdir /usr/java #下載jdk-8u151-linux-x64.rpm安裝包。 wget http://download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-i586.rpm ##安裝 rpm -ivh jdk-8u151-linux-i586.rpm #配置環境變量 vim /etc/profile #在最后文件末尾加入 JAVA_HOME=/usr/java/jdk1.7.0_79 JRE_HOME=/usr/java/jdk1.7.0_79/jre CLASS_PATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin export JAVA_HOME JRE_HOME CLASS_PATH PATH
#更新配置 source /etc/profile #查看JAVA版本 java -version
2.安裝mysql
注:本段內容參考了:《CentOS7安裝MySQL》
1: 下載並安裝MySQL官方的 Yum Repository
[root@localhost ~]# wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
[root@localhost ~]# wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm --2018-07-19 01:23:39-- http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm Resolving dev.mysql.com (dev.mysql.com)... 137.254.60.11 Connecting to dev.mysql.com (dev.mysql.com)|137.254.60.11|:80... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: https://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm [following] --2018-07-19 01:23:39-- https://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm Connecting to dev.mysql.com (dev.mysql.com)|137.254.60.11|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://repo.mysql.com//mysql57-community-release-el7-10.noarch.rpm [following] --2018-07-19 01:23:41-- https://repo.mysql.com//mysql57-community-release-el7-10.noarch.rpm Resolving repo.mysql.com (repo.mysql.com)... 23.59.65.109 Connecting to repo.mysql.com (repo.mysql.com)|23.59.65.109|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 25548 (25K) [application/x-redhat-package-manager] Saving to: ysql57-community-release-el7-10.noarch.rpm 100%[==================================================================================================================================>] 25,548 149KB/s in 0.2s 2018-07-19 01:23:42 (149 KB/s) - ysql57-community-release-el7-10.noarch.rpmsaved [25548/25548] -c: No such file or directory No URLs found in -c. FINISHED --2018-07-19 01:23:42-- Total wall clock time: 2.8s Downloaded: 1 files, 25K in 0.2s (149 KB/s) [root@localhost ~]# ls anaconda-ks.cfg Documents initial-setup-ks.cfg linuxamd64_12102_database_2of2.zipmysql57-community-release-el7-10.noarch.rpmPublic Videos Desktop Downloads linuxamd64_12102_database_1of2.zip Music Pictures Templates [root@localhost ~]#
使用上面的命令就直接下載了安裝用的Yum Repository,大概25KB的樣子,然后就可以直接yum安裝了。
[root@localhost ~]# yum -y install mysql57-community-release-el7-10.noarch.rpm[root@localhost ~]# yum -y install mysql57-community-release-el7-10.noarch.rpm Loaded plugins: fastestmirror, langpacks Examining mysql57-community-release-el7-10.noarch.rpm: mysql57-community-release-el7-10.noarch Marking mysql57-community-release-el7-10.noarch.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package mysql57-community-release.noarch 0:el7-10 will be installed --> Finished Dependency Resolution file://yum/mnt/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /mnt/repodata/repomd.xml" Trying other mirror. Dependencies Resolved ============================================================================================================================================================================ Package Arch Version Repository Size ============================================================================================================================================================================ Installing: mysql57-community-release noarch el7-10 /mysql57-community-release-el7-10.noarch 30 k Transaction Summary ============================================================================================================================================================================ Install 1 Package Total size: 30 k Installed size: 30 k Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : mysql57-community-release-el7-10.noarch 1/1 Verifying : mysql57-community-release-el7-10.noarch 1/1 Installed: mysql57-community-release.noarch 0:el7-10 Complete! [root@localhost ~]#
之后就開始安裝MySQL服務器。
[root@localhost ~]# yum -y install mysql-community-server[root@localhost ~]# yum -y install mysql-community-server Loaded plugins: fastestmirror, langpacks file://yum/mnt/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /mnt/repodata/repomd.xml" Trying other mirror. mysql-connectors-community | 2.5 kB 00:00:00 mysql-tools-community | 2.5 kB 00:00:00 mysql57-community | 2.5 kB 00:00:00 (1/3): mysql-connectors-community/x86_64/primary_db | 20 kB 00:00:00 (2/3): mysql-tools-community/x86_64/primary_db | 41 kB 00:00:00 (3/3): mysql57-community/x86_64/primary_db | 144 kB 00:00:00 Loading mirror speeds from cached hostfile Resolving Dependencies --> Running transaction check ---> Package mysql-community-server.x86_64 0:5.7.22-1.el7 will be installed --> Processing Dependency: mysql-community-common(x86-64) = 5.7.22-1.el7 for package: mysql-community-server-5.7.22-1.el7.x86_64 --> Processing Dependency: mysql-community-client(x86-64) >= 5.7.9 for package: mysql-community-server-5.7.22-1.el7.x86_64 --> Running transaction check ---> Package mariadb.x86_64 1:5.5.52-1.el7 will be obsoleted ---> Package mysql-community-client.x86_64 0:5.7.22-1.el7 will be obsoleting --> Processing Dependency: mysql-community-libs(x86-64) >= 5.7.9 for package: mysql-community-client-5.7.22-1.el7.x86_64 ---> Package mysql-community-common.x86_64 0:5.7.22-1.el7 will be installed --> Running transaction check ---> Package mariadb-libs.x86_64 1:5.5.52-1.el7 will be obsoleted --> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 2:postfix-2.10.1-6.el7.x86_64 --> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 1:mariadb-devel-5.5.52-1.el7.x86_64 --> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: 2:postfix-2.10.1-6.el7.x86_64 --> Processing Dependency: mariadb-libs(x86-64) = 1:5.5.52-1.el7 for package: 1:mariadb-devel-5.5.52-1.el7.x86_64 ---> Package mysql-community-libs.x86_64 0:5.7.22-1.el7 will be obsoleting --> Running transaction check ---> Package mariadb-devel.x86_64 1:5.5.52-1.el7 will be obsoleted ---> Package mysql-community-devel.x86_64 0:5.7.22-1.el7 will be obsoleting ---> Package mysql-community-libs-compat.x86_64 0:5.7.22-1.el7 will be obsoleting --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================================ Package Arch Version Repository Size ============================================================================================================================================================================ Installing: mysql-community-client x86_64 5.7.22-1.el7 mysql57-community 24 M replacing mariadb.x86_64 1:5.5.52-1.el7 mysql-community-devel x86_64 5.7.22-1.el7 mysql57-community 3.6 M replacing mariadb-devel.x86_64 1:5.5.52-1.el7 mysql-community-libs x86_64 5.7.22-1.el7 mysql57-community 2.1 M replacing mariadb-libs.x86_64 1:5.5.52-1.el7 mysql-community-libs-compat x86_64 5.7.22-1.el7 mysql57-community 2.0 M replacing mariadb-libs.x86_64 1:5.5.52-1.el7 mysql-community-server x86_64 5.7.22-1.el7 mysql57-community 165 M Installing for dependencies: mysql-community-common x86_64 5.7.22-1.el7 mysql57-community 274 k Transaction Summary ============================================================================================================================================================================ Install 5 Packages (+1 Dependent package) Total download size: 197 M Downloading packages: warning: /var/cache/yum/x86_64/7/mysql57-community/packages/mysql-community-common-5.7.22-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY0:18:11 ETA Public key for mysql-community-common-5.7.22-1.el7.x86_64.rpm is not installed (1/6): mysql-community-common-5.7.22-1.el7.x86_64.rpm | 274 kB 00:00:01 (2/6): mysql-community-devel-5.7.22-1.el7.x86_64.rpm | 3.6 MB 00:00:06 (3/6): mysql-community-libs-5.7.22-1.el7.x86_64.rpm | 2.1 MB 00:00:03 (4/6): mysql-community-libs-compat-5.7.22-1.el7.x86_64.rpm | 2.0 MB 00:00:03 (5/6): mysql-community-client-5.7.22-1.el7.x86_64.rpm | 24 MB 00:00:38 (6/6): mysql-community-server-5.7.22-1.el7.x86_64.rpm | 165 MB 00:11:41 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 281 kB/s | 197 MB 00:11:57 Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql Importing GPG key 0x5072E1F5: Userid : "MySQL Release Engineering <mysql-build@oss.oracle.com>" Fingerprint: a4a9 4068 76fc bd3c 4567 70c8 8c71 8d3b 5072 e1f5 Package : mysql57-community-release-el7-10.noarch (installed) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : mysql-community-common-5.7.22-1.el7.x86_64 1/9 Installing : mysql-community-libs-5.7.22-1.el7.x86_64 2/9 Installing : mysql-community-client-5.7.22-1.el7.x86_64 3/9 Installing : mysql-community-server-5.7.22-1.el7.x86_64 4/9 Installing : mysql-community-libs-compat-5.7.22-1.el7.x86_64 5/9 Installing : mysql-community-devel-5.7.22-1.el7.x86_64 6/9 Erasing : 1:mariadb-devel-5.5.52-1.el7.x86_64 7/9 Erasing : 1:mariadb-5.5.52-1.el7.x86_64 8/9 Erasing : 1:mariadb-libs-5.5.52-1.el7.x86_64 9/9 Verifying : mysql-community-libs-compat-5.7.22-1.el7.x86_64 1/9 Verifying : mysql-community-common-5.7.22-1.el7.x86_64 2/9 Verifying : mysql-community-devel-5.7.22-1.el7.x86_64 3/9 Verifying : mysql-community-server-5.7.22-1.el7.x86_64 4/9 Verifying : mysql-community-client-5.7.22-1.el7.x86_64 5/9 Verifying : mysql-community-libs-5.7.22-1.el7.x86_64 6/9 Verifying : 1:mariadb-5.5.52-1.el7.x86_64 7/9 Verifying : 1:mariadb-libs-5.5.52-1.el7.x86_64 8/9 Verifying : 1:mariadb-devel-5.5.52-1.el7.x86_64 9/9 Installed: mysql-community-client.x86_64 0:5.7.22-1.el7 mysql-community-devel.x86_64 0:5.7.22-1.el7 mysql-community-libs.x86_64 0:5.7.22-1.el7 mysql-community-libs-compat.x86_64 0:5.7.22-1.el7 mysql-community-server.x86_64 0:5.7.22-1.el7 Dependency Installed: mysql-community-common.x86_64 0:5.7.22-1.el7 Replaced: mariadb.x86_64 1:5.5.52-1.el7 mariadb-devel.x86_64 1:5.5.52-1.el7 mariadb-libs.x86_64 1:5.5.52-1.el7 Complete! [root@localhost ~]#
這步可能會花些時間,安裝完成后就會覆蓋掉之前的mariadb。
至此MySQL就安裝完成了,然后是對MySQL的一些設置。
2:啟動mysql,查看MySQL運行狀態,並重置密碼 123456
[root@localhost ~]# systemctl start mysqld.service [root@localhost ~]# systemctl status mysqld.service [0m mysqld.service - MySQL Server Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled) Active: active (running) since Thu 2018-07-19 07:56:21 CST; 19s ago Docs: man:mysqld(8) http://dev.mysql.com/doc/refman/en/using-systemd.html Process: 11839 ExecStart=/usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid $MYSQLD_OPTS (code=exited, status=0/SUCCESS) Process: 11753 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS) Main PID: 11842 (mysqld) CGroup: /system.slice/mysqld.service 11842 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid Jul 19 07:55:59 localhost.localdomain systemd[1]: Starting MySQL Server... Jul 19 07:56:21 localhost.localdomain systemd[1]: Started MySQL Server. [root@localhost ~]#
此時MySQL已經開始正常運行,不過要想進入MySQL還得先找出此時root用戶的密碼,通過如下命令可以在日志文件中找出密碼:
[root@localhost ~]# grep "password" /var/log/mysqld.log[root@localhost ~]# grep "password" /var/log/mysqld.log 2018-07-18T23:56:15.261967Z 1 [Note] A temporary password is generated for root@localhost: %w-=S)1C-?3H [root@localhost ~]#
如下命令進入數據庫:
[root@localhost ~]# mysql -uroot -p輸入初始密碼,此時不能做任何事情,因為MySQL默認必須修改密碼之后才能操作數據庫:
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY '%Mysq?l20180719%Lj';這里有個問題,新密碼設置的時候如果設置的過於簡單會報錯:
原因是因為MySQL有密碼設置的規范,具體是與validate_password_policy的值有關:
Last login: Thu Jul 19 00:36:24 2018 from 192.168.1.102 [root@localhost ~]# mysql -uroot -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 Server version: 5.7.22 Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'mysql_123456'; ERROR 1819 (HY000): Your password does not satisfy the current policy requirements mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'Mysql20180719Lj'; ERROR 1819 (HY000): Your password does not satisfy the current policy requirements mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY '%Mysq?l20180719%Lj'; Query OK, 0 rows affected (0.00 sec) mysql>密碼的長度是由validate_password_length決定的,而validate_password_length的計算公式是:
validate_password_length = validate_password_number_count + validate_password_special_char_count + (2 * validate_password_mixed_case_count)
我的是已經修改過的,初始情況下第一個的值是ON,validate_password_length是8。可以通過如下命令修改:
mysql> set global validate_password_policy=0; mysql> set global validate_password_length=1;[root@localhost ~]# mysql -uroot -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 3 Server version: 5.7.22 MySQL Community Server (GPL) Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> set global validate_password_policy=0; Query OK, 0 rows affected (0.00 sec) mysql> set global validate_password_length=1; Query OK, 0 rows affected (0.00 sec) mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY '123456'; Query OK, 0 rows affected (0.00 sec) mysql>
設置之后就是我上面查出來的那幾個值了,此時密碼就可以設置的很簡單,例如1234之類的。到此數據庫的密碼設置就完成了。
但此時還有一個問題,就是因為安裝了Yum Repository,以后每次yum操作都會自動更新,需要把這個卸載掉:
[root@localhost ~]# yum -y remove mysql57-community-release-el7-10.noarch
此時才算真的完成了。
或者參考下文內容:
mysqladmin -u root password '123456'
3:設置mysql開機自啟動。
注:本段內容來自於《CentOS 7安裝Mysql並設置開機自啟動》
1 vim /etc/rc.local 2 添加service mysqld start下文為本博主自己操作詳情:
[root@localhost ~]# cat /etc/rc.local #!/bin/bash # THIS FILE IS ADDED FOR COMPATIBILITY PURPOSES # # It is highly advisable to create own systemd services or udev rules # to run scripts during boot instead of using this file. # # In contrast to previous versions due to parallel execution during boot # this script will NOT be run after all other services. # # Please note that you must run 'chmod +x /etc/rc.d/rc.local' to ensure # that this script will be executed during boot. touch /var/lock/subsys/local # add JAVA_HOME export JAVA_HOME=/etc/alternatives/java_sdk_1.8.0 [root@localhost ~]# vi /etc/rc.local #!/bin/bash # THIS FILE IS ADDED FOR COMPATIBILITY PURPOSES # # It is highly advisable to create own systemd services or udev rules # to run scripts during boot instead of using this file. # # In contrast to previous versions due to parallel execution during boot # this script will NOT be run after all other services. # # Please note that you must run 'chmod +x /etc/rc.d/rc.local' to ensure # that this script will be executed during boot. touch /var/lock/subsys/local # add JAVA_HOME export JAVA_HOME=/etc/alternatives/java_sdk_1.8.0 service mysqld start ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ "/etc/rc.local" 19L, 563C written [root@localhost ~]# cat /etc/rc.local #!/bin/bash # THIS FILE IS ADDED FOR COMPATIBILITY PURPOSES # # It is highly advisable to create own systemd services or udev rules # to run scripts during boot instead of using this file. # # In contrast to previous versions due to parallel execution during boot # this script will NOT be run after all other services. # # Please note that you must run 'chmod +x /etc/rc.d/rc.local' to ensure # that this script will be executed during boot. touch /var/lock/subsys/local # add JAVA_HOME export JAVA_HOME=/etc/alternatives/java_sdk_1.8.0 service mysqld start [root@localhost ~]#
關於自啟動:只適用於mysqld沒有自啟動的條件下。
如果默認mysql是自啟動的,可能和rc.local中的自啟動出現亂序之類的問題。
更穩妥的一個解決辦法見:
注:本段內容來自於《CentOS 7 程序自啟動的問題 》
CentOS 7 程序自啟動的問題
一、問題現象:
系統重啟后,發現mysqld服務啟動正常,但是依賴mysql數據庫的應用程序A啟動失敗。
查看日志顯示,程序A啟動的時候鏈接數據庫失敗。
二、原因分析:
mysqld服務是正常啟動的。
此時手動重啟程序A,A也正常運行。
結論:說明程序A啟動的時候,mysqld可能沒有啟動。
三、啟動順序
首先想到的就是調整mysqld服務的啟動順序,讓它高過我的程序A。
然而發現/etc/init.d路徑下沒有關於mysqld的啟動腳本。
四、解決思路
按照鏈接指示安裝的mysqld默認是自動啟動的。
可以取消mysqld的自啟動,然后寫一個啟動腳本確保它啟動在程序A啟動之前。
五、解決辦法
1. 查看系統當前默認啟動項目的方法,不再是setup之類的了。
systemctl list-unit-files執行此命令能查看當前系統的服務啟動和服務狀態。
結果顯示如下:
1 ... 2 microcode.service enabled 3 mysql.service enabled 4 mysqld.service enabled 5 NetworkManager-dispatcher.service enabled 6 ...2. 取消mysqld的自啟動
systemctl disable mysqld執行該命令后再查看當前系統的服務狀態:
1 ... 2 microcode.service enabled 3 mysqld.service disabled 4 NetworkManager-dispatcher.service enabled 5 ...3. 自定義/etc/rc.local
先執行systemctl start mysqld
再執行startA
4:登入mysql ,創建:confluence 數據庫
mysql -u root -p create database confluence character set UTF8; grant all on confluence.* to confluence@"%" identified by "confluence"; grant all on confluence.* to confluence@"localhost" identified by "confluence"; FLUSH PRIVILEGES; quit具體操作為:
5:解決中文亂碼問題
vim /etc/my.cnf #在[mysql]下面添加下述代碼 character-set-server =utf8
具體操作如下:
[root@localhost ~]# cat /etc/my.cnf # For advice on how to change settings please see # http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html [mysqld] # # Remove leading # and set to the amount of RAM for the most important data # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%. # innodb_buffer_pool_size = 128M # # Remove leading # to turn on a very important data integrity option: logging # changes to the binary log between backups. # log_bin # # Remove leading # to set options mainly useful for reporting servers. # The server defaults are faster for transactions and fast SELECTs. # Adjust sizes as needed, experiment to find the optimal values. # join_buffer_size = 128M # sort_buffer_size = 2M # read_rnd_buffer_size = 2M datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock # Disabling symbolic-links is recommended to prevent assorted security risks symbolic-links=0 log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid [root@localhost ~]# vi /etc/my.cnf # For advice on how to change settings please see # http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html [mysqld] character-set-server =utf8 # # Remove leading # and set to the amount of RAM for the most important data # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%. # innodb_buffer_pool_size = 128M # # Remove leading # to turn on a very important data integrity option: logging # changes to the binary log between backups. # log_bin # # Remove leading # to set options mainly useful for reporting servers. # The server defaults are faster for transactions and fast SELECTs. # Adjust sizes as needed, experiment to find the optimal values. # join_buffer_size = 128M # sort_buffer_size = 2M # read_rnd_buffer_size = 2M datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock # Disabling symbolic-links is recommended to prevent assorted security risks symbolic-links=0 log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ "/etc/my.cnf" 28L, 987C written [root@localhost ~]# cat /etc/my.cnf # For advice on how to change settings please see # http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html [mysqld] character-set-server =utf8 # # Remove leading # and set to the amount of RAM for the most important data # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%. # innodb_buffer_pool_size = 128M # # Remove leading # to turn on a very important data integrity option: logging # changes to the binary log between backups. # log_bin # # Remove leading # to set options mainly useful for reporting servers. # The server defaults are faster for transactions and fast SELECTs. # Adjust sizes as needed, experiment to find the optimal values. # join_buffer_size = 128M # sort_buffer_size = 2M # read_rnd_buffer_size = 2M datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock # Disabling symbolic-links is recommended to prevent assorted security risks symbolic-links=0 log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid [root@localhost ~]#
6:重啟mysql
service mysqld restart
6: 處理:“centos7 上安裝mysql5.7后登錄報錯ERROR 1045 (28000)”
[root@localhost ~]# mysql -uroot -p Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
1,停止mysql服務
systemctl stop mysqld.service
2,修改配置文件無密碼登錄
vi /etc/my.cnf
在最尾部加上
保存skip-grant-tables
3,啟動mysql
systemctl start mysqld.service
4,登錄musql
此處注意不要加-pmysql -u root
5,修改密碼,mysql5.7用此語法
use mysql ;
update mysql.user set authentication_string=password('123456') where user='root' ;
flush privileges;//刷新
6,回到第二步驟去掉加上的
skip-grant-tables
保存 重啟mysql就ok了
#########################################################################
其實默認安裝完了mysql后或在日志中生成一個默認的密碼 /var/log/mysqld.log 中
拿到默認密碼后登錄mysql 進行密碼重新設置
set password=password('you password');
如果密碼級別與默認的級別要求不符時候會報
此時需要修改級別與最小的默認密碼位數Your password does not satisfy the current policy requirements
然后在進行設置密碼就好了
###################
遠程連接時1130錯誤
7:關閉iptables
server iptables stop
注:本段內容來至於《CentOS7 關閉防火牆》
CentOS6關閉防火牆使用以下命令,
//臨時關閉 service iptables stop //禁止開機啟動 chkconfig iptables off
- 1
- 2
- 3
- 4
CentOS7中若使用同樣的命令會報錯,
stop iptables.service Failed to stop iptables.service: Unit iptables.service not loaded.
- 1
- 2
這是因為CentOS7版本后防火牆默認使用firewalld,因此在CentOS7中關閉防火牆使用以下命令,
//臨時關閉 systemctl stop firewalld //禁止開機啟動 systemctl disable firewalld Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service. Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
- 1
- 2
- 3
- 4
- 5
- 6
當然,如果安裝了iptables-service,也可以使用下面的命令,
yum install -y iptables-services //關閉防火牆 service iptables stop Redirecting to /bin/systemctl stop iptables.service //檢查防火牆狀態 service iptables status Redirecting to /bin/systemctl status iptables.service 鈼iptables.service - IPv4 firewall with iptables Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled; vendor preset: disabled) Active: inactive (dead)
8:關閉selinux
vim /etc/selinux/config SELINUX=disabled具體操作如下:
[root@localhost ~]# cat /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=enforcing # SELINUXTYPE= can take one of three two values: # targeted - Targeted processes are protected, # minimum - Modification of targeted policy. Only selected processes are protected. # mls - Multi Level Security protection. SELINUXTYPE=targeted [root@localhost ~]# vim /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. #SELINUX=enforcing SELINUX=disabled # SELINUXTYPE= can take one of three two values: # targeted - Targeted processes are protected, # minimum - Modification of targeted policy. Only selected processes are protected. # mls - Multi Level Security protection. SELINUXTYPE=targeted ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ "/etc/selinux/config" 15L, 565C written [root@localhost ~]# cat /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. #SELINUX=enforcing SELINUX=disabled # SELINUXTYPE= can take one of three two values: # targeted - Targeted processes are protected, # minimum - Modification of targeted policy. Only selected processes are protected. # mls - Multi Level Security protection. SELINUXTYPE=targeted [root@localhost ~]#
關閉iptables 和關閉selinux 主要是為了方便后續的操作,一般無法訪問或者其他問題大部分都是由上述兩種服務開啟導致,為了不必要的影響。可以在機器初始化時候關閉。
3:安裝confluence
1:下載confluence
curl -o atlassian-confluence-5.6.6-x64.bin https://downloads.atlassian.com/software/confluence/downloads/atlassian-confluence-5.6.6-x64.bin
以下連接是confluence下載路徑及版本
https://www.atlassian.com/software/confluence/download-archives
2:為confluence添加執行權限
chmod +x atlassian-confluence-5.6.6-x64.bin
[root@localhost ~]# ls -al total 2886728 dr-xr-x---. 17 root root 4096 Jul 19 17:09 . dr-xr-xr-x. 18 root root 244 Jul 8 19:11 .. -rw-------. 1 root root 1848 Aug 20 2017 anaconda-ks.cfg
-rw-r--r--. 1 root root 267843959 Jul 19 17:30 atlassian-confluence-5.6.6-x64.bin-rw-------. 1 root root 195 Jul 8 17:09 .bash_history -rw-r--r--. 1 root root 18 Dec 29 2013 .bash_logout -rw-r--r--. 1 root root 176 Dec 29 2013 .bash_profile -rw-r--r--. 1 root root 176 Dec 29 2013 .bashrc drwx------. 11 root root 225 Jul 8 19:39 .cache drwx------. 15 root root 276 Dec 13 2017 .config -rw-r--r--. 1 root root 100 Dec 29 2013 .cshrc drwx------. 3 root root 25 Aug 20 2017 .dbus drwxr-xr-x. 2 root root 6 Dec 13 2017 Desktop drwxr-xr-x. 2 root root 6 Dec 13 2017 Documents drwxr-xr-x. 2 root root 6 Dec 13 2017 Downloads -rw-------. 1 root root 16 Dec 13 2017 .esd_auth -rw-------. 1 root root 1860 Jul 19 00:34 .ICEauthority -rw-r--r--. 1 root root 1879 Aug 20 2017 initial-setup-ks.cfg -rw-r--r--. 1 root root 1673544724 Dec 13 2017 linuxamd64_12102_database_1of2.zip -rw-r--r--. 1 root root 1014530602 Dec 13 2017 linuxamd64_12102_database_2of2.zip drwx------. 3 root root 19 Dec 13 2017 .local drwxr-xr-x. 4 root root 39 Jul 8 19:39 .mozilla drwxr-xr-x. 2 root root 6 Dec 13 2017 Music -rw-r--r--. 1 root root 25548 Apr 7 2017 mysql57-community-release-el7-10.noarch.rpm -rw-------. 1 root root 179 Jul 19 09:36 .mysql_history drwxr-xr-x. 2 root root 6 Dec 13 2017 Pictures drwxr-----. 3 root root 19 Jul 19 17:09 .pki drwxr-xr-x. 2 root root 6 Dec 13 2017 Public drwxr-xr-x. 3 root root 17 Dec 13 2017 .redhat -rw-r--r--. 1 root root 129 Dec 29 2013 .tcshrc drwxr-xr-x. 2 root root 6 Dec 13 2017 Templates drwxr-xr-x. 2 root root 6 Dec 13 2017 Videos -rw-------. 1 root root 665 Jul 19 09:51 .viminfo [root@localhost ~]# chmod +x atlassian-confluence-5.6.6-x64.bin [root@localhost ~]# ls -al total 2886728 dr-xr-x---. 17 root root 4096 Jul 19 17:09 . dr-xr-xr-x. 18 root root 244 Jul 8 19:11 .. -rw-------. 1 root root 1848 Aug 20 2017 anaconda-ks.cfg-rwxr-xr-x. 1 root root 267843959 Jul 19 17:30 atlassian-confluence-5.6.6-x64.bin-rw-------. 1 root root 195 Jul 8 17:09 .bash_history -rw-r--r--. 1 root root 18 Dec 29 2013 .bash_logout -rw-r--r--. 1 root root 176 Dec 29 2013 .bash_profile -rw-r--r--. 1 root root 176 Dec 29 2013 .bashrc drwx------. 11 root root 225 Jul 8 19:39 .cache drwx------. 15 root root 276 Dec 13 2017 .config -rw-r--r--. 1 root root 100 Dec 29 2013 .cshrc drwx------. 3 root root 25 Aug 20 2017 .dbus drwxr-xr-x. 2 root root 6 Dec 13 2017 Desktop drwxr-xr-x. 2 root root 6 Dec 13 2017 Documents drwxr-xr-x. 2 root root 6 Dec 13 2017 Downloads -rw-------. 1 root root 16 Dec 13 2017 .esd_auth -rw-------. 1 root root 1860 Jul 19 00:34 .ICEauthority -rw-r--r--. 1 root root 1879 Aug 20 2017 initial-setup-ks.cfg -rw-r--r--. 1 root root 1673544724 Dec 13 2017 linuxamd64_12102_database_1of2.zip -rw-r--r--. 1 root root 1014530602 Dec 13 2017 linuxamd64_12102_database_2of2.zip drwx------. 3 root root 19 Dec 13 2017 .local drwxr-xr-x. 4 root root 39 Jul 8 19:39 .mozilla drwxr-xr-x. 2 root root 6 Dec 13 2017 Music -rw-r--r--. 1 root root 25548 Apr 7 2017 mysql57-community-release-el7-10.noarch.rpm -rw-------. 1 root root 179 Jul 19 09:36 .mysql_history drwxr-xr-x. 2 root root 6 Dec 13 2017 Pictures drwxr-----. 3 root root 19 Jul 19 17:09 .pki drwxr-xr-x. 2 root root 6 Dec 13 2017 Public drwxr-xr-x. 3 root root 17 Dec 13 2017 .redhat -rw-r--r--. 1 root root 129 Dec 29 2013 .tcshrc drwxr-xr-x. 2 root root 6 Dec 13 2017 Templates drwxr-xr-x. 2 root root 6 Dec 13 2017 Videos -rw-------. 1 root root 665 Jul 19 09:51 .viminfo [root@localhost ~]#
3:安裝
./atlassian-confluence-5.6.6-x64.bin按照提示,以此選擇 “o”“1”“i”
4:confluence的路徑
/opt/atlassian/confluence 和 /var/atlassian/application-data/confluence5:一般日志文件存路徑:
/var/atlassian/application-data/confluence/logs/
4:破解步驟
1:輸入訪問地址,獲取ServerID.
在瀏覽器輸入http://本機IP地址:8090 進行訪問 例如:http://192.168.1.10:8090 #注意中英文半角問題。
找一個文檔把頁面上的ServerID 復制下來 #很重要
ServierId: BN2B-W9EA-F03F-ZRXH
2:關閉confluence
[root@localhost confluence]#service confluence stop
3:刪除jar文件
cd /opt/atlassian/confluence/confluence/WEB-INF/lib/ ll | grep atlassian-extras | wc -l
[root@localhost confluence]# cd /opt/atlassian/confluence/confluence/WEB-INF/lib/ [root@localhost lib]# ls activeobjects-dbex-0.28.2.jar bndlib-1.43.0-atlassian-1.jar jta-1.0.1B.jar activeobjects-spi-0.28.2.jar botocss-core-4.3.jar jtds-1.2.2.jar analytics-api-3.37.jar bsf-2.3.0.jar jtidy-r8-20060801.jar antisamy-1.4.2-atlassian-14.jar c3p0-0.9.1.2.jar jul-to-slf4j-1.7.7.jar antlr-2.7.7.jar cglib-2.1_3.jar jython-2.1-forked.jar antlr-runtime-3.4.jar commons-beanutils-1.8.3.jar ldaptemplate-1.0.1.jar aopalliance-1.0.jar commons-codec-1.8.jar log4j-1.2.15.jar applinks-api-4.2.3.jar commons-collections-3.2.1.jar lucene-analyzers-common-4.4.0.jar applinks-host-4.2.3.jar commons-digester-1.5.jar lucene-analyzers-kuromoji-4.4.0.jar applinks-spi-4.2.3.jar commons-discovery-0.2.jar lucene-core-4.4.0.jar asm-1.5.3.jar commons-fileupload-1.3.1.jar lucene-highlighter-4.4.0.jar aspectjweaver-1.6.0.jar commons-httpclient-3.1.jar lucene-memory-4.4.0.jar atlassian-annotations-0.11.jar commons-io-1.4.jar lucene-misc-4.4.0.jar atlassian-bandana-3.1.jar commons-jrcs-diff-0.1.7.jar lucene-queries-4.4.0.jar atlassian-bonnie-6.1.2.jar commons-lang-2.6.jar lucene-queryparser-4.4.0.jar atlassian-cache-api-2.3.4.jar commons-lang3-3.1.jar lucene-sandbox-4.4.0.jar atlassian-cache-common-impl-2.3.4.jar commons-logging-1.1.3.jar lucene-upgrader-1.0-lucene36.jar atlassian-cache-ehcache-2.3.4.jar commons-pool-1.5.4.jar mail-1.4.5.jar atlassian-cache-memory-2.3.4.jar concurrent-1.3.4.jar modz-detector-0.8.1.jar atlassian-config-0.21.jar confluence-5.6.6.jar nekohtml-1.9.15.jar atlassian-cookie-tools-3.2.3.jar confluence-bucket-5.6.6.jar odmg-3.0.jar atlassian-core-4.6.11.jar confluence-cache-ehcache-5.6.6.jar ognl-2.6.5-atlassian-2.jar atlassian-embedded-crowd-atlassian-user-1.7.3.jar confluence-compatibility-5.6.6.jar org.apache.felix.framework-3.0.2.jar atlassian-event-2.3.5.jar confluence-java-api-5.6.6.jar oro-2.0.8.jar atlassian-extras-api-3.2.jar confluence-rest-api-5.6.6.jar oscache-2.2.jar atlassian-extras-common-3.2.jar confluence-rest-serialization-5.6.6.jar oscore-2.2.7-atlassian-1.jar atlassian-extras-core-3.2.jar confluence-rpc-plugin-5.6.6.jar osuser-atl.user.jar atlassian-extras-decoder-api-3.2.jar confluence-upgrade-5.6.6.jar package-scanner-0.9.5.jar atlassian-extras-decoder-v2-3.2.jar crowd-api-2.7.1.jar pdfbox-1.8.4.jar atlassian-extras-legacy-3.2.jar crowd-core-2.7.1.jar postgresql-9.2-1002.jdbc4.jar atlassian-flushable-gzipoutputstream-1.1.jar crowd-events-2.7.1.jar propertyset-1.3-21Nov03.jar atlassian-gzipfilter-1.23.jar crowd-integration-api-2.7.1.jar quartz-1.8.0.jar atlassian-hibernate2-extras-4.1.1.jar crowd-integration-client-common-2.7.1.jar radeox-1.0b2-forked-22Apr2004.jar atlassian-hsqdlb-server-integration-1.1.0.jar crowd-integration-client-rest-2.7.1.jar rome-1.0.jar atlassian-html-encoder-1.4.jar crowd-integration-seraph25-2.7.1.jar runtime-20070801.jar atlassian-http-0.0.8.8.jar crowd-ldap-2.7.1.jar sac-1.3.jar atlassian-image-consumer-1.0.1.jar crowd-password-encoders-2.7.1.jar sal-api-2.12.1.jar atlassian-ip-3.1.jar crowd-persistence-2.7.1.jar sal-spi-2.12.1.jar atlassian-jdk-utilities-0.4.jar crowd-persistence-file-2.7.1.jar sal-spring-2.12.1.jar atlassian-johnson-0.10.jar crowd-remote-2.7.1.jar sanselan-0.97-incubator.jar atlassian-json-api-0.9.jar cssparser-0.9.5.jar serializer-2.7.1.jar atlassian-json-jsonorg-0.9.jar daisydiff-1.1-atlassian-5.jar sitemesh-2.5-atlassian-6.jar atlassian-mail-2.5.0.jar dom4j-1.4-full.jar slf4j-api-1.7.7.jar atlassian-paddle-5.jar dragonfly-api-1.1.jar slf4j-log4j12-1.7.7.jar atlassian-password-encoder-3.2.jar dragonfly-core-1.1.jar slide-2.1.jar atlassian-plugins-core-3.2.8.jar dragonfly-spi-1.1.jar soy-template-renderer-api-2.8.0.jar atlassian-plugins-osgi-3.2.8.jar ehcache-2.8.2.jar spring-aop-2.5.6.SEC03.jar atlassian-plugins-osgi-events-3.2.8.jar embedded-crowd-api-2.7.1.jar spring-beans-2.5.6.SEC03.jar atlassian-plugins-schema-3.2.8.jar embedded-crowd-core-2.7.1.jar spring-context-2.5.6.SEC03.jar atlassian-plugins-servlet-3.2.8.jar embedded-crowd-spi-2.7.1.jar spring-context-support-2.5.6.SEC03.jar atlassian-plugins-spring-3.2.8.jar fontbox-1.8.4.jar spring-core-2.5.6.SEC03-atlassian-6.jar atlassian-plugins-webfragment-3.0.1.jar fugue-1.1.jar spring-hibernate2-2.5.6-atlassian-1.jar atlassian-plugins-webresource-3.1.1-PLUGWEB-85-m05.jar gson-1.6.jar spring-jdbc-2.5.6.SEC03.jar atlassian-plugins-webresource-api-3.1.1-PLUGWEB-85-m05.jar guava-11.0.2-atlassian-02.jar spring-ldap-core-1.3.1.RELEASE.jar atlassian-plugins-webresource-common-3.2.8.jar guava-bridge-11.0.2-atlassian-02.jar spring-orm-2.5.6.SEC03.jar atlassian-profiling-1.9.jar hibernate-2.1.8-atlassian-27.jar spring-security-core-3.1.4.RELEASE.jar atlassian-renderer-legacy-6.2.10.jar hsqldb-2.3.0.jar spring-tx-2.5.6.SEC03.jar atlassian-secure-random-3.2.3.jar icu4j-3.8.jar spring-web-2.5.6.SEC03.jar atlassian-secure-xml-3.2.3.jar jackson-core-asl-1.9.1.jar stax-api-1.0-2.jar atlassian-seraph-3.0.0.jar jackson-mapper-asl-1.9.1.jar stax-utils-20040917.jar atlassian-spring-2.0.0.jar jai_codec-1.1.3.jar stringtemplate-3.2.1.jar atlassian-spring-hibernate2-2.0.0.jar jai_core-1.1.3.jar urlrewritefilter-4.0.4.jar atlassian-spring-interceptor-adapter-spi-1.1.jar jai-core-1.1.3.jar velocity-1.6.4-atlassian-1.jar atlassian-tenancy-api-1.4.1.jar jakarta-regexp-1.4.jar velocity-htmlsafe-1.2-fixedscm.jar atlassian-threadlocal-1.4.jar javasimon-core-3.4.0.jar velocity-tools-view-1.1.jar atlassian-trackback-0.10.jar jaxb-api-2.1.jar webwork-2.1.5-atlassian-3.jar atlassian-trusted-apps-core-3.0.8.jar jaxb-impl-2.1.10.jar wsdl4j-1.6.1.jar atlassian-trusted-apps-seraph-integration-3.0.8.jar jcaptcha-all-1.0-RC6.jar wstx-asl-3.2.9-atlassian-1.jar atlassian-user-3.0.jar jcip-annotations-1.0.jar xalan-2.7.1.jar atlassian-util-concurrent-2.4.1.jar jcommon-1.0.0.jar xercesImpl-2.11.0.jar atlassian-velocity-1.3.jar jdom-1.0.jar xfire-aegis-1.2.6.jar atlassian-xwork-10-1.17.jar jempbox-1.8.4.jar xfire-core-1.2.6.jar atlassian-xwork-core-1.17.jar jfreechart-1.0.0.jar xmlrpc-2.0+xmlrpc61.1+sbfix.jar batik-css-1.7.jar joda-time-2.3.jar xmlrpc-supplementary-character-support-0.2.jar batik-ext-1.7.jar json-20070829.jar XmlSchema-1.1.jar batik-util-1.7.jar json-simple-1.1.1.jar xpp3_min-1.1.3.4.O.jar bcmail-jdk15on-1.50.jar jsoup-1.7.2.jar xstream-1.1.1.jar bcpkix-jdk15on-1.50.jar jsr305-2.0.2.jar xwork-1.0.3.6.jar bcprov-jdk15on-1.50.jar jsr311-api-1.1.1.jar beehive-api-0.1.3.jar jstyleparser-1.13-atlassian-2.jar [root@localhost lib]# ll | grep atlassian-extras | wc -l 6 [root@localhost lib]# rm -fr atlassian-extra* [root@localhost lib]# ll | grep atlassian-extras | wc -l 0 [root@localhost lib]#
4:運行破解jar包程序
解壓破解包,把里面的atlassian-extras-3.2.jar、Confluence-5.6.6-language-pack-zh_CN.jar、mysql-connector-java-5.1.39-bin.jar三個jar文件復制到/opt/atlassian/confluence/confluence/WEB-INF/lib目錄下
破解包鏈接地址 https://pan.baidu.com/s/1i509VaX #包含上述三個包
atlassian-extras-3.2.jar文件是和license相關的,Confluence-5.6.6-language-pack-zh_CN.jar是confluence中文語言包,而mysql-connector-java-5.1.39-bin.jar是confluence連接mysql數據庫相關的jar包。
注:破解包下載方式:
一;https://pan.baidu.com/s/1clpfUQ
二:下圖的QQ群 的群文件里 ---
把破解包放到了 /root/的目錄下:
[root@localhost ~]# ls anaconda-ks.cfg Desktop initial-setup-ks.cfg Music Public atlassian-confluence-5.6.6-x64.bin Documents linuxamd64_12102_database_1of2.zip mysql57-community-release-el7-10.noarch.rpm Templates Conlfuence_file Downloads linuxamd64_12102_database_2of2.zip Pictures Videos [root@localhost ~]# ls Conlfuence_file/conlfuence atlassian-extras-3.2.jar Confluence-5.6.6-language-pack-zh_CN.jar mysql-connector-java-5.1.39-bin.jar [root@localhost ~]# ls Conlfuence_file/ confluence_keygen.jar conlfuence [root@localhost ~]# pwd /root [root@localhost ~]# cp Conlfuence_file/conlfuence/* /opt/atlassian/confluence/confluence/WEB-INF/lib/ [root@localhost ~]# cd /opt/atlassian/confluence/confluence/WEB-INF/lib/ [root@localhost lib]# ll | grep atlassian-extras | wc -l 1 [root@localhost lib]# ll | grep Confluence-5.6.6-language-pack-zh_CN.jar | wc -l 1 [root@localhost lib]# ll | grep atlassian-extras-3.2.jar | wc -l 1 [root@localhost lib]# ll | grep mysql-connector-java-5.1.39-bin.jar | wc -l 1 [root@localhost lib]#
運行破解jar包程序
java -jar confluence_keygen.jar#此步驟需要在圖形界面下操作。
NAME #此方框內容可以隨意填寫。
把上述復制的ServerID 粘貼到 ServerID 框中。
點擊.gen!
把KEY中生成的KEY復制出來。
AAABNg0ODAoPeJxtkMtuwjAQRff+CktdByWhVQHJUk1iVNo8EAl97UyYFKvGID+i8vc1pNlUXcxid OfeOTM39d7hJydxNMVxOIsns9sJTqraN9EEpWAaLU5WHBVJjqqVDlQDqHCHLeiy3RjQhgQRSjTwy 1DKLZCLMwjvg2iKvMfyxhb8AITLXcu/fLV8hxofNvKK6IBY7WCYZDkXkgjVCSO2Eh5MAwpGSiLWc emuO0jLpYE+IRNeN1CfT3DdkZR5ztbJkmbIBykLinte9n0S+tyzjcceLA7iuz5guCSRzljQxXEHh oSoYgV5Lzc4p88M5wxTXNEUr2iR0hEq9SdXwvQwongRlZhnDNeM5qgC3YFepmRexPPgdcposAjHi +Bj/faIfmm9mi3TofsfbuV0s+cG/jz0B6Bqi20wLQIVAIP8OzqgnPpnzG+3qKTOoNVp4/QXAhRwD xVMNcfvzM/X1RIvf2pzNrBQhA==X02fj
5:啟動confluence
把key 粘貼到license key中
選擇下一步——>Direct JDBC——>在User name 和 Password 中輸入 root 和 123456——>點擊下一步——>選擇Empty Site——>Manage users and groups within Confluence——>設置admin的帳號密碼——>完成。
啟動與停止命令的執行效果
[root@localhost ~]# service confluence stop executing using dedicated user 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 /opt/atlassian/confluence/logs/catalina.out Using CATALINA_BASE: /opt/atlassian/confluence Using CATALINA_HOME: /opt/atlassian/confluence Using CATALINA_TMPDIR: /opt/atlassian/confluence/temp Using JRE_HOME: /opt/atlassian/confluence/jre/ Using CLASSPATH: /opt/atlassian/confluence/bin/bootstrap.jar:/opt/atlassian/confluence/bin/tomcat-juli.jar Using CATALINA_PID: /opt/atlassian/confluence/work/catalina.pid Killing Tomcat with the PID: 4149 The Tomcat process has been killed. [root@localhost ~]# service confluence start To run Confluence in the foreground, start the server with start-confluence.sh -fg executing using dedicated user: confluence 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 /opt/atlassian/confluence/logs/catalina.out Using CATALINA_BASE: /opt/atlassian/confluence Using CATALINA_HOME: /opt/atlassian/confluence Using CATALINA_TMPDIR: /opt/atlassian/confluence/temp Using JRE_HOME: /opt/atlassian/confluence/jre/ Using CLASSPATH: /opt/atlassian/confluence/bin/bootstrap.jar:/opt/atlassian/confluence/bin/tomcat-juli.jar Using CATALINA_PID: /opt/atlassian/confluence/work/catalina.pid Tomcat started.
五:漢化
登入界面之后選擇“齒輪”圖標,選擇 Add-ons 在界面右方選擇 Upload add-on 然后把上述的 Confluence-5.6.6-language-pack-zh_CN上傳上去。完成之后重啟confluence服務service confluence restart打開界面完成漢化,至此安裝破解漢化完畢。![]()
![]()
FAQ :出現 HTTP Status 500 - java.lang.IllegalStateException: Spring Application context has not been set先重啟confluence和mysql,若不行可以執行 rm -rf /var/atlassian/application-data/confluence/confluence.cfg.xml.然后重啟confluence解決。