Build confluence in the CentOS environment

Source: Internet
Author: User

Task 2
Objective: To complete the construction of confluence.
Meaning: Confluence is an open-source wiki system, which is built and cracked locally, and is an essential skill for operations, and after the wiki has been put together, it can be used to organize its own experience and statistics.
step: 1. Download the Confluence stable version.
2. Install and crack.
3. Write a tutorial on the installation steps for SVN and confluence, and put it on a wiki, and the extranet is accessible.

4. Configure Nginx, access by domain name, if there is no domain name, you can configure the host locally.
requirements: 1. Write the installation steps to the wiki you are building.
2.Wiki server can be accessed outside the network, if there is no external network IP, the use of peanut shells. It is recommended to use the Kingsoft server for testing.
3. Application domain name, record, through the Nginx configuration subdomain access, if the record takes time, local configuration host Test Nginx configuration is successful.

Mastery Skills: 1. Confluence installation and cracking 2. Application and configuration of the domain name 3.Nginx configuration 4.Host Configuration

================================== Split Line ===========================================

the first thing to do with this task is a few installation packages, the installation package address here: http://pan.baidu.com/s/1i3D5rU1

These installation files are:

jre-7u67-linux-x64.rpm

Atlassian-confluence-5.4.4-x64.bin

Mysql-connector-java-5.1.32-bin.jar

Confluence5.1-crack.zip

Confluence-5.4.4-language-pack-zh_cn.jar

transfer These five files from the host to the virtual machine, just use the SVN server that was built yesterday, my host is the client, the virtual machine is the server side, SVN from the client to the server to send things very simple, but how to download from the server side of things need to change customer account, if inadvertently left the password in the client , then it will be a bit of trouble. You need to right-click on the Windows desktop blank, select Tortoise SVN, then select "Settings", select "saved data" in the left menu, "clear" the authenticated user, and then open the Tsvn browser to enter another username.

Back to the Task2, this confluence installation is dependent, it mainly depends on two things, one is Java, this is in the network registration needs to use, and the other is MySQL, so the above file with these two files, The installation order is Java---MySQL---confluence first.


Install Java First

mkdir /usr/java          #在/usr to create a new Java folder, place the installation package in the/usr/java directory 
cd /usr/java 
Copy the  jre-7u67-linux-x64.rpm into the directory  
rpm -ivh jre-7u67-linux-x64.rpm      #安装JDK  
vi /etc/ profile     #配置环境变量  
--------------------------------
#在最后加入以下几行:  
export java_home=/usr/java/jre1.7.0_67 
export classpath=.: $JAVA _home/jre/lib/rt.jar: $JAVA _ Home/lib/dt.jar: $JAVA _home/lib/tools.jar
export path= $PATH: $JAVA _home/bin
ESC return input: x
------------ --------------------
Source /etc/profile


Install MySQL


1 Yum install-y mysql-server mysql mysql-devel 
2 service mysqld start #初 Initialization and related configuration
3 chkconfig--list | grep mysqld #查看mysql服务是不是开机自动启动
4 chkconfig mysqld on #设置成开机启动
5 mysqladmin-u Ro OT password ' 123456 ' #通过该命令给root账号设置密码为 123456
6 mysql-u root-p #登录mysql数据库
7 CREATE database Confluence Charac ter set UTF8;
8 Grant all on confluence.* to [email protected] "%" identified by "confluence";
9 Grant all on confluence.* to [email protected] "localhost" identified by "confluence";
FLUSH privileges;
Quit   #退出
Service mysqld stop   #关闭mysql服务
cd/etc/
VI my.cnf
15 add Charac under [mysqld] Ter-set-server =utf8     #解决中文显示??? Garbled question
Service mysqld start   #启动mysql服务

The third step is to have this interface

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/79/95/wKiom1aVNuaDq-yfAAD5zY6786I164.png "title=" Screenshot-root@chrischan^%-.png "alt=" Wkiom1avnuadq-yfaad5zy6786i164.png "/>

Installing confluence

First to get from the client to the three confluence files into the/usr/confluence/,atlassian-confluence-5.4.4-x64.bin default is black, here need to execute him, will give him permission.

chmod +x Atlassian-confluence-5.4.4-x64.bin

#赋予可执行权限, after this command has been entered, LS a bit, found the file turned green grass

./atlassian-confluence-5.4.4-x64.bin #执行安装

Then appear the installation interface, the corresponding will let you enter O or C, here to look at the choice on the line. Here's the picture.

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/79/95/wKiom1aVNxnBjeycAAD-Oge4470419.png "title=" Screenshot.png "alt=" Wkiom1avnxnbjeycaad-oge4470419.png "/>650" this.width=650; "src=" http://s5.51cto.com/ Wyfs02/m02/79/95/wkiom1avnyww45zhaad-oge4470744.png "title=" Screenshot.png "alt=" Wkiom1avnyww45zhaad-oge4470744.png "/>

Compare the Windows Confluence installation process to understand the different ways the two systems express themselves to the installation process. The third step of installation here is to prompt for Port 8090 as the connection port.

Then ifconfig, check your IP, then open the browser, enter the Http://IP address: 8090, this time to note the server ID, this ID is not good, my ID is both 0 and O.


Service confluence stop #停掉Confluence Services

#将confluence5.1-crack.zip Decompression

#将/opt/atlassian/confluence/confluence/web-inf/lib/atlassian-extras-2.4.jar copied out. Replace the Atlassian-extras-2.4.jar in Confluence5.1-crack

#chmod +x keygen.sh

#./keygen.sh #执行破解文件

Note: It must be in the graphical interface, as this operation requires graphics. If you don't have a graphic, you'll get an error.

"1" loses the name, and the server ID that was previously recorded, press. patch! Select the Atlassian-extras-2.4.jar to be cracked

650) this.width=650; "src=" http://images0.cnblogs.com/blog2015/720785/201508/221335113001393.jpg "style=" border:0 px; "/>

"2" press. gen! Get key

650) this.width=650; "src=" http://images0.cnblogs.com/blog2015/720785/201508/221336143164712.jpg "style=" border:0 px; "/>

"3" take the cracked bag and copy it back.

#复制破解后的atlassian-extras-2.4.jar to "/opt/atlassian/confluence/confluence/web-inf/lib/" to overwrite the original file.

#复制mysql-connector-java-5.1.32-bin.jar to "/opt/atlassian/confluence/confluence/web-inf/lib/".

Service confluence start #启动Confluence Services

"4" open Web page again

#重新打开网页/ http server ip:8090

#输了之前得到的key

I am stuck here, obviously is CTRL + C CTRL + V, but it is a hint that key is illegal. I'm going to go ahead tomorrow and write a little today.



This article is from "Life is waiting for Gordo" blog, please make sure to keep this source http://chenx1242.blog.51cto.com/10430133/1734420

Build confluence in the CentOS environment

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.