码迷,mamicode.com
首页 > 其他好文 > 详细

【原创】大叔经验分享(76)confluence配置

时间:2019-07-10 14:48:22      阅读:200      评论:0      收藏:0      [点我收藏+]

标签:service   wrap   prot   data   char   kth   atl   配置到   ppa   

一 下载

confluence

https://product-downloads.atlassian.com/software/confluence/downloads/atlassian-confluence-6.15.6-x64.bin

jira

https://product-downloads.atlassian.com/software/jira/downloads/atlassian-jira-software-8.2.2-x64.bin

二 安装

 

三 配置

1 如果要在confluence前加lb,比如nginx,需要配置

/opt/atlassian/confluence/conf/server.xml

        <Connector port="8090" connectionTimeout="20000" redirectPort="8443"
                   maxThreads="48" minSpareThreads="10"
                   enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8"
                   protocol="org.apache.coyote.http11.Http11NioProtocol" scheme="http" proxyName="$host" proxyPort="$port"/>

其中的schema、proxyName、proxyPort

 

2 如果要将confluence配置到context下,比如通过 /confluence 访问

/opt/atlassian/confluence/conf/server.xml

                <Context path="/confluence" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true">

 

3 如果中文乱码

/var/atlassian/application-data/confluence/confluence.cfg.xml

<property name="hibernate.connection.url">jdbc:mysql://$server:3306/confluence?useUnicode=true&amp;characterEncoding=utf8</property>

 

4 如果保存时报错

 java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986
    at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:467)
    at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:294)
    at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
    at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:836)
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1747)
    at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:748)

需要配置

/opt/atlassian/confluence/conf/catalina.properties

tomcat.util.http.parser.HttpParser.requestTargetAllow=

 

5 如果有mysql相关的报警,修改mysql配置文件后重启

innodb_log_file_size = 256M
max_allowed_packet = 40M

 

 参考:

https://confluence.atlassian.com/doc/configuring-the-server-base-url-148592.html

【原创】大叔经验分享(76)confluence配置

标签:service   wrap   prot   data   char   kth   atl   配置到   ppa   

原文地址:https://www.cnblogs.com/barneywill/p/11160525.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!