zoukankan      html  css  js  c++  java
  • 【原创】大叔经验分享(76)confluence和jira配置

    一 下载

    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

    二 安装

    mysql建库

    CREATE DATABASE confluence CHARACTER SET utf8 COLLATE utf8_bin;

    grant all privileges on confluence.* to 'confluence'@'%';

    flush privileges;

     

    将mysql-connector-java-5.1.47.jar和atlassian-extras-decoder-v2-3.4.1.jar(pojie)拷贝到

    /opt/atlassian/confluence/confluence/WEB-INF/lib/

    停止命令

    # sh /opt/atlassian/confluence/bin/stop-confluence.sh

    # sh /opt/atlassian/jira/bin/stop-jira.sh

    启动命令

    # sh /opt/atlassian/confluence/bin/start-confluence.sh

    # sh /opt/atlassian/jira/bin/start-jira.sh

    三 配置

    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

    jira位于

    /opt/atlassian/jira/conf/server.xml

    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>

    jira配置文件:

    /var/atlassian/application-data/jira/dbconfig.xml

    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 = 256M

    6 页面配置过程一定要直接访问tomcat,不要加nginx等代码,否则访问不到

    7 修改General Configuration-Server Base Url

     参考:

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

    https://confluence.atlassian.com/confkb/exceeds-max-allowed-packet-for-mysql-179443425.html

  • 相关阅读:
    层次遍历二叉树时的一个技巧
    合并两个有序链表
    关于指针的引用和“||”运算符的一些心得
    UE4中显示AI Debug信息
    EQS 自定义Context 如何用Testing Pawn 进行测试?
    4.16中Montage的一些变化
    Move Controller UE4键位
    EQS
    获取文件完整路径快捷方法
    同步引擎版本号的简易方法
  • 原文地址:https://www.cnblogs.com/barneywill/p/11160525.html
Copyright © 2011-2022 走看看