其他分享
首页 > 其他分享> > Jira安装教程

Jira安装教程

作者:互联网


title: Jira安装教程
tags:


安装准备

安装部署

安装mysql5.7.37

  1. 解压安装包到mysql目录下

    tar xf mysql-5.7.36-1.el7.x86_64.rpm-bundle.tar  -C ./mysql/
    
  2. yum安装mysql数据库

    yum install ./mysql/*	
    
  3. 获取mysql数据库密码

    grep 'temporary password' /var/log/mysqld.log 获取数据库密码
    
  4. 配置数据库mysqld

    #在/etc/my.cnf
    default-storage-engine=INNODB
    character_set_server=utf8mb4
    innodb_default_row_format=DYNAMIC
    innodb_large_prefix=ON
    innodb_file_format=Barracuda
    innodb_log_file_size=2G
    #删除下列参数:
    sql_mode = NO_AUTO_VALUE_ON_ZERO
    
  5. 启动mysql数据库服务

    systemctl start mysqld
    
  6. 访问数据库

    mysql -uroot -p 
    
  7. 修改密码安全策略

    set global validate_password_policy=0;
    set global validate_password_length=1;
    
  8. 修改数据库密码

    set password for root@localhost=password('123456');
    
  9. 创建jira数据库

    CREATE DATABASE jira CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
    
  10. 授权jira数据库

    # MySQL 5.7.0 - 5.7.5:⽤下⾯语句
    GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER,INDEX on jira.* TO 'jira'@'%'
    IDENTIFIED BY 'jirapasswd';
    # MySQL 5.7.6 and later (must also include the REFERENCES permission): ⽤下⾯语句
    GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,REFERENCES,ALTER,INDEX on jira.* TO
    'jira'@'%' IDENTIFIED BY 'jirapasswd';
    flush privileges;
    
  11. 安装MYSQL数据库连接JDBC驱动

    yum install ./mysql-connector-odbc-8.0.30-1.el8.x86_64.rpm  -y
    

安装jira

  1. jira二进制包赋予执行权限

    chmod +x atlassian-jira-software-9.1.0-x64.bin
    
  2. 执行安装包

    ./atlassian-jira-software-9.1.0-x64.bin 
    

    注意:执行过程中提示enter回车或按y即可

  3. 复制mysql连接jar包以及授权

    cp mysql-connector-java-8.0.28.jar /opt/atlassian/jira/atlassian-jira/WEB-INF/lib/
    
    chmod 644 /opt/atlassian/jira/atlassian-jira/WEB-INF/lib/mysql-connector-java-8.0.28.jar
    
  4. 破解包agent /home/jira⽬录下

    cp atlassian-agent.jar /home/jira/
    
  5. 配置setenv

    vim /opt/atlassian/jira/bin/setenv.sh
    #追加命令行
    export JAVA_OPTS="-javaagent:/home/jira/atlassian-agent.jar ${JAVA_OPTS}"
    
  6. 启动jira

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

初始化配置jira

  1. 停用防火墙

    systemctl stop firewalld.service
    systemctl disable firewalld.service
    
  2. 访问网站,默认端口为8080

    http://192.168.100.30:8080
    
  3. 页面配置页面截图

    • 选择我将设置它自己——》下一步

    image-20220804004509850

    • 输入数据库连接相关配置,点击测试连接成功后,——》下一步

      image-20220804005813922

    • 下一步

      image-20220804010657269

    • 激活jira

      这⾥主要是试⽤激活程序 agent
      参数说明:
      -m :指定邮箱
      -n :授权给的⽤户,默认同邮箱地址
      -o :组织
      -p :需要获取key的产品, jira为Jira Software;jc为jira Core的缩写
      -s :服务器 ID
      
      #获取jira的激活码
      java -jar atlassian-agent.jar -p jira -m 1024320609@qq.com -n 1024320609@qq.com -o myjira -s BV4N-CTSC-C846-TZFK
      #获取jc的激活码
      java -jar atlassian-agent.jar -p jc -m 1024320609@qq.com -n 1024320609@qq.com -o magedu -s
      BV4N-CTSC-C846-TZFK
      
    • 把激活码粘贴只文本框——》下一步

      image-20220804014145859

    • 输入管理员账号相关信息及账号密码

      image-20220804014849532

    • 点击完成

      image-20220804015022817

    • 默认中文,点击continue

      image-20220804015735807

    • 选择头像——》下一步

      image-20220804015825596

    • jira安装完成

      image-20220804015920331

卸载jira

停⽌jira服务 /opt/atlassian/jira/bin/shutdown.sh
运⾏卸载程序 bash /opt/atlassian/jira/uninstall
删除⽬录,删除⽤户

rm -rf /opt/atlassian/jira
rm -rf /var/atlassian/application-data/jira
userdel -r jira

标签:Jira,jira,教程,com,数据库,jar,atlassian,mysql,安装
来源: https://www.cnblogs.com/zxl1024320609/p/16549311.html