下载confluence【破解与crowd,jira类似】
解压tar包
[root@localhost Guanli]# tar -zxvf confluence-3.4-std.tar.gz
为了方便创建连接confluence
[root@localhost Guanli]# ln -s confluence-3.4-std confluence
创建confluence的家目录(自己定义)
[root@localhost Guanli]# mkdir /root/Guanli/Data_Home/confluence_home/
进入confluence
[root@localhost Guanli]# cd confluence
为了其他人看着方便,我设置该目录为路径给WIKI
[root@localhost confluence]# WIKI=`pwd`
查看是否正确
[root@localhost confluence]# echo $WIKI
/root/Guanli/confluence
修改服务端口,默认是8080与jira相同,我将其修改成8085,先查看8085端口是否被占用。
[root@localhost ~]# netstat -anp |grep 8085
修改$WIKI/conf/server.xml
找到 port="8080",将其端口修改成 port="8085"
保存退出!
修改配置文件confluence-init.properties
[root@localhost confluence]# cd $WIKI/confluence/WEB-INF/classes
[root@localhost classes]# vim confluence-init.properties
找到“Note for Unix Users”,将其下方的“# confluence.home=/var/confluence”注释打开,修改为“confluence.home=/root/Guanli/Data_Home/confluence_home”,即你自己创建的家目录路径。保存退出
拷贝mysql连接驱动程序,我之前已经下好了。我在安装atlassian-crowd中已经提及过,可以站内搜索一下此信息
下载:http://dev.mysql.com/downloads/connector/j/5.0.html#downloads
将其拷贝至“$WIKI/lib”内
[root@localhost lib]# cp ~/pack/mysql-connector-java-5.0.8/mysql-connector-java-5.0.8-bin.jar .
建立confluence的数据库
登陆mysql,郁闷,前两天安装phpldapadmin时将镜像挂载到tmp下了,忘记卸载了!
[root@localhost lib]# mysql -u root -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
解决办法:
umount /dev/cdrom
好了,重新登陆mysql吧!
登陆后执行
mysql> create database confluence character set utf8;
mysql> grant all on confluence.* to 'confluenceadmin'@'%' identified by '密码自己定义吧';
mysql> flush privileges;
mysql> quit
在启动前,我们就直接把他破解了吧!
下载破解程序“51CTO下载-confluence3.4.5-crack”百度自己搜索一下,或者email给我
(破解过程自己看哦~破解过程与jira,corwd一样大家借鉴一下就可以了!很简单的 http://www.kinggoo.com/archives/app-crowd-pojiecrowd.html)
[root@kinggoo bin]# cd $WIKI/bin/
启动应用服务;并查看日志
[root@kinggoo bin]# ./startup.sh ;tail -f ../logs/catalina.out
访问http://IP:8085
然后输入破解后的License Key,然后单击“Production Installation”
在“External Database”前列表中选择Mysql— >>接下来点击"External Database"
在“Direct JDBC Connection”中选择“Direct JDBC”
Driver Class Name:com.mysql.jdbc.Driver
Database URL:jdbc:mysql://localhost/confluence?autoReconnect=true&useUnicode=true&characterEncoding=utf8
也就是将上面两个if中说的内存组合起来
User Name: 数据库名称“上面创建的时候输入的”
Password: 数据库密码“上面创建的时候输入的”
接着Next>>
第一个是简历一个事例网站,默认会有几个空间等等,第2个是空的,到时必须要自己创建一个空间,第3个就是如果你以前备份过,升级等等— >>Start using Confluence now.
—————————
我的启动后报错如下!没找到原因
2011-2-19 9:00:01 com.sun.jersey.server.impl.application.WebApplicationImpl onException
严重: Internal server error
com.atlassian.upm.pac.PacClientConnectionException: com.sun.jersey.api.client.ClientHandlerException: java.net.UnknownHostException:
plugins.atlassian.com
at com.atlassian.upm.pac.PacClientImpl.getUpgrades(PacClientImpl.java:92)
at com.atlassian.upm.rest.resources.UpgradesResource.get(UpgradesResource.java:35)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker$1.invoke(DispatchProviderHel
per.java:206)
at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$1.intercept(DispatchProviderHelper.java:90)
at com.atlassian.plugins.rest.common.interceptor.impl.DefaultMethodInvocation.invoke(DefaultMethodInvocation.java:61)
…skipping…
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)
Caused by: com.sun.jersey.api.client.ClientHandlerException: java.net.UnknownHostException: plugins.atlassian.com
at com.sun.jersey.client.apache.ApacheHttpClientHandler.handle(ApacheHttpClientHandler.java:202)
at com.sun.jersey.api.client.Client.handle(Client.java:365)
at com.sun.jersey.api.client.WebResource.handle(WebResource.java:556)
at com.sun.jersey.api.client.WebResource.post(WebResource.java:226)
at com.atlassian.plugins.client.service.plugin.PluginVersionServiceClientImpl.findUpdates(PluginVersionServiceClientImpl.jav
a:86)
at com.atlassian.upm.pac.PacClientImpl.getUpgrades(PacClientImpl.java:81)
… 131 more
Caused by: java.net.UnknownHostException: plugins.atlassian.com
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:195)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:559)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:401)
at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:123)
at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:82)
at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:127)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionMa
nager.java:1361)
cool story bro
/han