#Install dependence package
yum -y removeopenldap-2.4.23-32.el6_4.1.i686
yum -y install gccgcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetypefreetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogse2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-developenldap openldap-devel nss_ldap openldap-clients openldap-servers
#Create user mysql
/usr/sbin/groupaddmysql
/usr/sbin/useradd -g mysql mysql -s/sbin/nologin
#Createinstall directory
mkdir /usr/local/mysql -p
#Downloadcmake
wget http://wwwNaNake.org/files/v2.8/cmake-2.8.3.tar.gz
tar zxvf cmake-2.8.3.tar.gz
cd cmake-2.8.3
./configure
make && make install
yum install ncurses-devel
yum install bison
#Downloadmysql source package
wget http://dev.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.35.tar.gz
tar -zxvf mysql-5.5.35.tar.gz&& cd mysql-5.5.35
#Installmysql
/usr/local/bin/cmake-DCMAKE_INSTALL_PREFIX=/usr/local/mysql/ -DMYSQL_UNIX_ADDR=/usr/local/mysql/mysql/mysql.sock -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci-DEXTRA_CHARSETS=all -DWITH_EXTRA_CHARSETS:STRING=utf8,gbk-DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_READLINE=1 -DENABLED_LOCAL_INFILE=1-DMYSQL_DATADIR=/mnt/mysql/ -DMYSQL_USER=mysql -DMYSQL_TCP_PORT=3306
make -j4&& make install
chmod +w /usr/local/mysql/
chown -R mysql.mysql /usr/local/mysql/
mkdir /u1/mysql/data -p
mkdir /u1/mysql/logs -p
###mkdir /u1/mysql/binlog -p
###mkdir /u1/ mysql/relaylog -p
chown -R mysql.mysql /u1/mysql/
Initialize the database
/usr/local/mysql/scripts/mysql_install_db--basedir=/usr/local/mysql/ --datadir=/u1/mysql/data/ --user=mysql
Startmysql
/usr/local/mysql/bin/mysqld–defaults-file=/u1/mysql/my.cnf &
Loginmysql
/usr/local/mysql/bin/mysql -S /u1/mysql/mysql.sock
Stopmysql
/usr/local/mysql/bin/mysqladminshutdown
#create confluence jira crowddatabases
mysql> create database confluencecharacter set utf8;
mysql> grant on confluence.* to [email protected]‘%‘identified by ‘confluence‘;
mysql> flush privileges;
mysql> create database crowdcharacter set utf8;
mysql> grant all on crowd.* [email protected]‘%‘ identified by ‘crowd‘;
mysql> flush privileges;
mysql> create database jiracharacter set utf8;
mysql> grant all on jira.* to [email protected]‘%‘identified by ‘jira‘;
mysql> flush privileges;
#java install
wget -p /usr/local http://download.oracle.com/otn-pub/java/jdk/6u32-b05/jdk-6u32-linux-i586.bin
./jdk-6u32-linux-i586.bin
mv jdk1.6.0_32 java
export JAVA_HOME=/usr/local/java
exportCLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
exportPATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOME/bin
#########save quit -> javac -version -> javac 1.6.0_32
Download package
mkdir /software&& cd software
wget http://www.atlassian.com/software/confluence/downloads/binary/atlassian-confluence-5.5.3.tar.gz
wget http://www.atlassian.com/software/crowd/downloads/binary/atlassian-crowd-2.6.5.tar.gz
wget http://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-6.3.tar.gz
tar -zxvf atlassian-confluence-5.5.3.tar.gz
tar -zxvf atlassian-crowd-2.6.5.tar.gz
tar -zxvf atlassian-jira-6.3.tar.gz
mkdir /opt/atlassian
mv atlassian-confluence-5.5.3/opt/atlassian/confluence
mv atlassian-crowd-2.6.5/opt/atlassian/crowd
mv atlassian-jira-6.3/opt/atlassian/jira
#crowd home directory config
vim/opt/atlassian/crowd/crowd-webapp/WEB-INF/classes/crowd-init.properties
like this “crowd.home=/var/atlassian/application-data/crowd/”
#crowd port config default 8095
vim/opt/atlassian/crowd/apache-tomcat/conf/server.xml
like this “<ConnectoracceptCount="100" connectionTimeout="20000"disableUploadTimeout="true" enableLookups="false"maxHttpHeaderSize="8192" maxThreads="150"minSpareThreads="25" port="8095"redirectPort="8443" useBodyEncodingForURI="true"URIEncoding="UTF-8"/>”
#copy mysql-connector-java-5.1.18-bin.jar to /opt/atlassian/confluence/lib/
cpmysql-connector-java-5.1.18-bin.jar /opt/atlassian/confluence/lib/
#start crowd server
/opt/atlassian/crowd/start_crowd.sh
#confluence home directory config
vim/opt/atlassian/confluence/confluence/WEB-INF/classes/confluence-init.properties
like this “confluence.home=/var/atlassian/application-data/confluence/”
#confluence port config defalult 8090
vim/opt/atlassian/confluence/conf/server.xml
like this “<ConnectorclassName="org.apache.coyote.tomcat4.CoyoteConnector"port="8090" minProcessors="5"
maxProcessors="75"
enableLookups="false" redirectPort="8443"acceptCount="10" debug="0"connectionTimeout="20000"
useURIValidationHack="false"URIEncoding="UTF-8"/>”
#start confluence service
/opt/atlassian/confluence/bin/start-confluence.sh
#jira home directory config
vim/opt/atlassian/jira/atlassian-jira/WEB-INF/classes/jira-application.properties
like this “jira.home= /var/atlassian/application-data/jira”
#jira port config default 8070
vim /opt/atlassian/jira/conf/server.xml
like this “ <Service name="Catalina">
<Connector port="8070"
maxThreads="150"
minSpareThreads="25"
connectionTimeout="20000"
enableLookups="false"
maxHttpHeaderSize="8192"
protocol="HTTP/1.1"
useBodyEncodingForURI="true"
redirectPort="8443"
acceptCount="100"
disableUploadTimeout="true"/>”
#Crack confluence#破解confluence
http://confluence:post
1.记录server-id B13Z-XWO6-NH6U-GT3D
2.stop confluenceserver
#两种方法
/opt/atlassian/confluence/bin/stop-confluence.sh
kill -9 `ps -ef |grep confluence | gawk -F " " ‘{print $2}‘ | head -1`
cp /opt/atlassian/confluence/confluence/WEB-INF/lib/atlassian-extras-2.4.jar to localfile(windows)
3. Download JDK and installed (skip)
4. Download confluence_keygen and configuration