• jira的迁移


    1.防止用户在备份期间访问Jira应用程序

    1.更改端口

    关闭所有Jira应用程序,将其配置为在其他端口上侦听并重新启动。通过编辑server.xml文件来执行此操作。更改以下部分:

    [root@61JiraServer ~]# vim /iflytek/atlassian/jira/conf/server.xml
    <Connector port="8080" maxThreads="150" minSpareThreads="25" connectionTimeout="20000" enableLookups="false"
                       maxHttpHeaderSize="8192" protocol="HTTP/1.1" useBodyEncodingForURI="true" redirectPort="8443"
                       acceptCount="100" disableUploadTimeout="true" bindOnInit="false"/>
    
    [root@61JiraServer ~]# ps -ef |grep jira
    root      7229     1 52 19:42 pts/0    00:09:45 /iflytek/atlassian/jira/jre//bin/java -Djava.util.logging.config.file=/iflytek/atlassian/jira/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xms14g -Xmx20g -Djava.awt.headless=true -Datlassian.standalone=JIRA -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dmail.mime.decodeparameters=true -Dorg.dom4j.factory=com.atlassian.core.xml.InterningDocumentFactory -XX:-OmitStackTraceInFastThrow -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Xloggc:/iflytek/atlassian/jira/logs/atlassian-jira-gc-%t.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=20M -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintGCCause -classpath /iflytek/atlassian/jira/bin/bootstrap.jar:/iflytek/atlassian/jira/bin/tomcat-juli.jar -Dcatalina.base=/iflytek/atlassian/jira -Dcatalina.home=/iflytek/atlassian/jira -Djava.io.tmpdir=/iflytek/atlassian/jira/temp org.apache.catalina.startup.Bootstrap start
    root      7735  6977  0 20:01 pts/1    00:00:00 grep --color=auto jira
    [root@61JiraServer ~]# kill -9 7229
    [root@61JiraServer jira]# rm -rf /iflytek/atlassian/jira/work/catalina.pid
    [root@61JiraServer jira]# /etc/init.d/jira start

    2.使用Jira的XML备份实用程序

    使用新的端口进到web界面

    1. 选择 > 系统。 
    2. 选择“ 导入和导出”>“备份系统” 以打开“备份Jira数据”页面。

     等待,这个时间可能比较长。出现下面这个表示备份成功

    3.备份 安装目录 和 主目录

    您可以在<installation-directory>/atlassian-jira/WEB-INF/classes/jira-application.properties文件中找到主目录的位置

    默认路径是:

    视窗: C:Program FilesAtlassianApplication DataJIRA

    Linux: /var/atlassian/application-data/jira

    [root@61JiraServer atlassian]# cat jira/atlassian-jira/WEB-INF/classes/jira-application.properties 
    # Do not modify this file unless instructed. It is here to store the location of the JIRA home directory only and is typically written to by the installer.
    jira.home = /iflytek/atlassian/application-data/jira
    [root@61JiraServer atlassian]# scp -rp /iflytek/atlassian/application-data/jira/ root@172.31.184.174:/iflytek/jira-data
  • 相关阅读:
    GoLang之网络
    GoLang之方法与接口
    GoLang之基础
    Twemproxy 缓存代理服务器
    判断点是否在三角形内
    C++中const 的各种用法
    解决java web中safari浏览器下载后文件中文乱码问题
    Spring MVC如何测试Controller(使用springmvc mock测试)
    java生成指定范围的随机数
    itextpdf添加非自带字体(例如微软雅黑)
  • 原文地址:https://www.cnblogs.com/qingbaizhinian/p/14351744.html
Copyright © 2020-2023  润新知