In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Confluence is a professional enterprise knowledge management and collaboration software, which can also be used to build enterprise wiki. Through it, we can realize the cooperation and knowledge sharing among team members.
Excerpts from Baidu encyclopedia
Generally speaking, confluence can be used in conjunction with jira as a platform for team collaboration and sharing knowledge documents, so I deployed confluence on the environment where jira was previously deployed.
Download confluence
The required software is:
Confluence source code installation package: atlassian-confluence-5.4.4.tar.gz
Confluence cracked the package: confluence5.1-crack.zip
Confluence cracked jar package: atlassian-extras-2.4.jar
Confluence Chinese language Pack: Confluence-5.4.4-language-pack-zh_CN.jar
Mysql java driver package: mysql-connector-java-5.1.33-bin.jar
I would like to upload the software package I used, but the difficulty of uploading the attachment on 51cto is too high, so I have to give up.
Cd / opt/toolsmkdir confluencerz-y # Software cd confluence/ for uploading confluence [root@server136 confluence] # lltotal 194360 Oct cuser users 632101 Oct 20 10:53 confluence5.1-crack.zip-rw-r--1 cuser users 197890899 Oct 20 10:51 atlassian-confluence-5.4.4.tar.gz-rw-r--r-- 1 cuser users 148874 Oct 20 10:52 atlassian-extras-2.4.jar-rw-r--r-- 1 cuser users 632101 Oct 20 -Rmuri-1 cuser users 340849 Oct 20 10:52 Confluence-5.4.4-language-pack-zh_CN.jar
Second, install confluence
Tar-zxf atlassian-confluence-5.4.4.tar.gzmv atlassian-confluence-5.4.4 / usr/local/confluence
By default, the files in confluence are as follows:
[root@server136 confluence] # ll / usr/local/confluence/
Total 108
Drwxr-xr-x 2 root root 4096 Oct 20 10:56 bin
Drwxr-xr-x 2 root root 4096 Oct 20 10:56 conf
Drwxr-xr-x 25 root root 4096 Oct 20 10:56 confluence
Drwxr-xr-x 2 root root 4096 Oct 20 10:56 lib
-rw-r--r-- 1 root root 38657 Nov 28 2011 LICENSE
Drwxr-xr-x 3 root root 4096 Mar 13 2014 licenses
Drwxr-xr-x 2 root root 4096 Nov 28 2011 logs
-rw-r--r-- 1 root root 574 Nov 28 2011 NOTICE
-rw-r--r-- 1 root root 2291 Mar 13 2014 README.html
-rw-r--r-- 1 root root 1212 Mar 13 2014 README.txt
-rw-r--r-- 1 root root 8680 Nov 28 2011 RELEASE-NOTES
-rw-r--r-- 1 root root 6836 Nov 28 2011 RUNNING.txt
Drwxr-xr-x 2 root root 4096 Oct 20 10:56 temp
Drwxr-xr-x 2 root root 4096 Mar 13 2014 webapps
Drwxr-xr-x 2 root root 4096 Nov 28 2011 work
Chown-R root:root / usr/local/confluence/ # add authorization mkdir-p / usr/local/confluence_home # create confluence_homecp / usr/local/confluence/confluence/WEB-INF/classes/confluence-init.properties / usr/local/confluence/confluence/WEB-INF/classes/confluence-init.properties.bakvi / usr/local/confluence/confluence/WEB-INF/classes/confluence-init.properties# specify the file path of the confluence_home in this file [root@server136 Confluence] # egrep-v "# | ^ $" / usr/local/confluence/confluence/WEB-INF/classes/confluence-init.propertiesconfluence.home=/usr/local/confluence_ home [root @ server136 confluence] # ll / usr/local/confluence_hometotal 0 [root@server136 confluence] # lsof-I: 809 check whether port 8090 is occupied [root@server136 confluence] # / usr/local/confluence/bin/start-confluence.sh # start confluenceTo run Confluence in the foreground Start the server with start-confluence.sh-fgexecuting as current userIf you encounter issues starting up Confluence Standalone Please see the Installation guide at http://confluence.atlassian.com/display/DOC/Confluence+Installation+GuideServer startup logs are located in/ usr/local/confluence/logs/catalina.outUsing CATALINA_BASE: / usr/local/confluenceUsing CATALINA_HOME: / usr/local/confluenceUsing CATALINA_TMPDIR: / usr/local/confluence/tempUsing JRE_HOME: / usr/local/jdkUsing CLASSPATH: / usr/local/confluence/bin/bootstrap.jarUsing CATALINA_PID: / usr/local/confluence/ Work/catalina.pid [root@server136 confluence] # lsof-I: 8090 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAMEjava 4172 root 30u IPv4 168008 0t0 TCP *: 8090 (LISTEN)
Create a database for confluence
[root@server136 confluence] # mysql-uroot-pEnter password: Welcome to the MySQL monitor. Commands end with; or\ g.Your MySQL connection id is 684Server version: 5.6.16 Source distributionCopyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.Type 'help;' or'\ h' for help. Type'\ c'to clear the current input statement.mysql > create database confluence character set utf8;Query OK, 1 row affected (0.00 sec) mysql > show create database confluence +-+ | Database | Create Database | + -+-+ | confluence | CREATE DATABASE `confluence` / *! 40100 DEFAULT CHARACTER SET utf8 * / | +-- -+ 1 row in set (0.00 sec) mysql > grant all on confluence.* to confluence@'localhost' identified by 'wiki@CY2o16' Query OK, 0 rows affected (0.00 sec) mysql > flush privileges;Query OK, 0 rows affected (0.00 sec) mysql > show databases +-+ | Database | +-+ | information_schema | | confluence | | jira | | mysql | | performance_schema | | test | +-+ 6 rows in set (0.00 sec) mysql > quitBye
4. Start confluence
[root@server136 storage] # cp / opt/tools/mysql-connector-java-5.1.33-bin.jar / usr/local/confluence/confluence/WEB-INF/lib/# copy the Java connection driver package of mysql to the lib directory of confluence [root@server136 storage] # ll / usr/local/confluence/confluence/WEB-INF/lib/ mysql-connector-java-5.1.33-bin.jar-rw-r--r-- 1 root root 959987 Oct 20 13:06 / Usr/local/confluence/confluence/WEB-INF/lib/mysql-connector-java-5.1.33-bin.jar [root@server136 storage] # chown-R root:root / usr/local/confluence/ [root@server136 storage] # / usr/local/confluence/bin/start-confluence.sh
5. Cracking of confluence registration code
1. Decompress confluence and crack the compressed package.
[root@server136 confluence] # unzip confluence5.1-crack.zip
Archive: confluence5.1-crack.zip
Creating: confluence5.1-crack/
Inflating: confluence5.1-crack/atlassian-extras-2.4.jar
Creating: confluence5.1-crack/iNViSiBLE/
Inflating: confluence5.1-crack/iNViSiBLE/confluence_keygen.jar
Inflating: confluence5.1-crack/iNViSiBLE/keygen.bat
Inflating: confluence5.1-crack/iNViSiBLE/keygen.sh
Inflating: confluence5.1-crack/iNViSiBLE/keygen_MacOSX.sh
[root@server136 confluence] # ls confluence5.1-crack
Atlassian-extras-2.4.jar iNViSiBLE
2. Move the atlassian-extras-2.4.jar in the compressed package to another location
[root@server136 confluence] # mv confluence5.1-crack/atlassian-extras-2.
.4.jar / tmp/
3. Copy the atlassian-extras-2.4.jar in the confluence installed with the source code to the cracking directory
[root@server136 confluence] # cp / usr/local/confluence/confluence/WEB-INF/lib/atlassian-extras-2.4.jar / usr/local/confluence/confluence/WEB-INF/lib/atla
Assian-extras-2.4.jar.backup
# back up the jar files to be operated first
[root@server136 confluence] # / usr/local/confluence/bin/stop-confluence.
.sh
# then stop confluence
[root@server136 confluence] # mv / usr/local/confluence/confluence/WEB-IN
NF/lib/atlassian-extras-2.4.jar confluence5.1-crack/
# then move the jar package to the cracked patch directory
[root@server136 confluence] # cd confluence5.1-crack
[root@server136 confluence5.1-crack] # ll
Total 148
-rw-r--r-- 1 root root 147405 Mar 3 2014 atlassian-extras-2.4.jar
Drwxr-xr-x 2 root root 4096 Oct 25 2010 iNViSiBLE
# the jar package seen here is the jar package in the source package where confluence is installed. It is the jar package before cracking. Pay attention to the file size for easy identification after cracking.
4. Execute the crack patch program to crack.
[root@server136 confluence5.1-crack] # cd iNViSiBLE/
[root@server136 iNViSiBLE] # ls
Confluence_keygen.jar keygen.bat keygen_MacOSX.sh keygen.sh
# there are 3 scripts, corresponding to different Windows/MacOS/Linux systems. Make sure that confluence_keygen.jar and scripts are in the same directory (default iNViSiBLE)
[root@server136 iNViSiBLE] # chmod + x keygen.sh
[root@server136 iNViSiBLE] #. / keygen.sh
Note: if CentOS has a graphical interface installed, then executing the shell script will show a graphical interface, and cracking can only be done under the graphical interface. If the Linux server does not have a graphical interface installed, you can copy the cracking program to the Windows or mac client. After installing the Java environment on the client, use the corresponding keygen.bat or keygen_MacOSX.sh for operation. Since I don't have a graphical interface installed in CentOS, I operate under Windows.
Enter the information needed to crack the patch, and then click gen! Will generate a cracked key, and then drag the atlassian-extras-2.4.jar into the window, patch! The button will become clickable, click patch! A new atlassian-extras-2.4.jar is regenerated, and the original atlassian-extras-2.4.jar becomes atlassian-extras-2.4.jar.back, and a backup is automatically generated.
5. Upload the cracked atlassian-extras-2.4.jar to the confluence installation directory
Rz-y # first upload the cracked atlassian-extras-2.4.jar to the root directory
Mv / root/atlassian-extras-2.4.jar
/ usr/local/confluence/confluence/WEB-INF/lib/ # move the files to the corresponding directory of confluence
/ usr/local/confluence/bin/start-confluence.sh # launch confluence
6. Configure confluence in the browser
Enter the generated key before cracking, and then select the production environment installation.
Select the type of database, and then click additional database.
Choose to use JDBC to connect to the database and click "Direct JDBC".
Driver Class Name and Database URL are automatically generated here. Note the above hint. If you plan to use a non-Latin character set, you need to add & useUnicode=true&characterEncoding=utf8 at the end of the Database URL, so you need to add this code here, and then enter the user name and password in the mysql database (the user with permission to the confluence database, of course). Next.
Choose to load the content, either the sample site, the empty site, or you can restore the site from the backup file, of course, I choose the empty site here.
There are two ways to configure user management. The first is to use confluence to manage users and groups. If you choose this method, you can create users and groups manually, and of course, you can also manage users through ldap. There is also a hint: if you plan to connect to confluence through ldap or crowd server, you must use the first method. The second way is to manage users and groups through JIRA, which is suitable for jira version 4.3 or above. This method eliminates the need to create users, synchronize users and groups in jira, and then manage users and groups in jira. Of course, this method is not recommended if the number of users exceeds 500. Because I intend to use ldap to manage confluence users and groups, I choose the first method, "Manage users and groups within Confluence".
If the installation is successful, you can start using confluence or do more configuration, and you can start using confluence here.
Reopen the connection to confluence and the welcome page for confluence appears.
VII. Chinese confluence
Click the screw button on the home page, then select "Add-ons", select "Manage add-ons" on the left side of the open page, click "Upload add-on" on the upper right, and then select the previously downloaded confluence Chinese language pack Confluence-5.4.4-language-pack-zh_CN.jar in the pop-up window, and then upload it.
Confluence will be installed automatically after uploading.
The interface after successful installation is shown in the figure above.
Select "language" in site management and change the default language to Chinese (China).
Select Chinese (China) and submit.
In order to make confluence display pdf properly, you also need to set the PDF export language support. Because the self-contained language pack is not good for Chinese language support, we upload a Chinese font.
After the import is successful, select "Install". Under normal circumstances, the installation will be successful in less than a minute.
Confirm that the confluence is cracked successfully
As the cracking operation has been carried out before the installation, select "Authorization" in the management site and check the authorization information. You can see that the technical support period here is December 24, 2337, and you can use it as much as you can.
9. Use openLDAP to authenticate confluence users
In the administrative site, select user Directory on the left, and then select add Directory.
After completing the openLDAP information, select Save.
Enter the users in the openLDAP to test, and all the test results show that the openLDAP configuration is successful.
The configuration details of openLDAP are given below (since the ldap server used here is still the ldap server in the previous jira, the information about openLDAP will not be repeated. If necessary, you can move to the previous article, click here:
After the configuration is successful, users and groups have been successfully synchronized from the openLDAP. Note that the synchronized users are not in the confluence-users group, but the default confluence-users group is the minimum permission group that can log in to confluence.
Log out of the administrator login, and then log in using the user in openLDAP.
The login is successful, which means that the desired effect has been achieved.
Then log in again using the administrator to view the information of the group, and you can see that the test users who have logged in to confluence have been added to the confluence-users group, which is an automatic confluence operation and is not manually added.
At this point, the installation and configuration of confluence is over.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.