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

Posted barneywill

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了原创大叔经验分享(76)confluence配置相关的知识,希望对你有一定的参考价值。

一 下载

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配置的主要内容,如果未能解决你的问题,请参考以下文章

原创大叔经验分享(52)ClouderaManager修改配置报错

原创大叔经验分享(82)logstash一个实例运行多个配置文件

原创大叔经验分享(23)hive metastore的几种部署方式

原创大叔经验分享(100)Atlas导入hive元数据

原创大叔经验分享(111)mac修改Terminal主题

原创大叔经验分享(99)Atlas简介安装