zoukankan      html  css  js  c++  java
  • centos7_安装jira7

    centos7 安装jira7

    参考文档:http://www.cnblogs.com/kevingrace/p/7608813.html

    1.准备环境 centos7

    • memory:8G

    • storage:100G

    • 关闭防火墙和selinux

    安装依赖包

    • yum install -y bash-completion

    所需soft

    • atlassian-extras-3.2.jar

    • atlassian-jira-software-7.4.1-x64.bin jdk-8u201-linux-x64.rpm

    • mysql-connector-java-5.1.39-bin.jar

    2.安装jdk8环境

     

    下载地址:https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

    # rpm -ivh jdk-8u201-linux-x64.rpm # java -version

    # java version "1.8.0_201"
    Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
    Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)

    3.安装mysql

    # yum install -y mariadb mariadb-server 
    # systemctl start mariadb
    # systemctl enable mariadb

    # 对mariadb进行相关简单配置,设置密码 # mysql_secure_installation
    # 配置mariadb的字符集
    # vim /etc/my.cnf
    [mysqld]标签下添加:

    init_connect='SET collation_connection = utf8_unicode_ci' init_connect='SET NAMES utf8'
    character-set-server=utf8
    collation-server=utf8_unicode_ci
    skip-character-set-client-handshake

    # vim /etc/my.cnf.d/client.cnf
    [client]
    default-character-set=utf8

    # vim /etc/my.cnf.d/mysql-clients.cnf 在[mysql] 下
    default-character-set=utf8

    # 重启mariadb并登录查看字符集
    systemctl restart mariadb # mysql -p
    MariaDB [(none)]> show variables like "%character%"MariaDB [(none)]> show variables like "%collation%";

     

    4.创建jira数据库及jira用户

    登录数据库:
    MariaDB [(none)]> create database jira character set utf8 collate utf8_bin;
    MariaDB [(none)]> grant all on jira.* to 'jira'@'%' identified by 'jira123';
    MariaDB [(none)]> flush privileges;

    登录测试:
    # mysql -u jira -pjira123
    MariaDB [(none)]> show databases;

     

    5.安装并启动jira

    soft目录下
    [root@localhost soft]# ls atlassian-jira-software-7.4.1-x64.bin atlassian-jira-software-7.4.1-x64.bin

    # chmod +x atlassian-jira-software-7.4.1-x64.bin # ./atlassian-jira-software-7.4.1-x64.bin

    指定安装目录与数据目录,
    安装目录为:/usr/local/atlassian/jira
    数据目录为:/var/atlassian/application-data/jira jira默认端口为:HTTP Port: 8080
    可在 /usr/local/atlassian/jira/conf/server.xml 中修改

    查看端口占用情况
    # lsof -i:8080
    COMMAND PID  USER  FD  TYPE  DEVICE SIZE/OFF NODE NAME
    java 121571 jira1 264u  IPv6 1309313 0t0  TCP *:webcache (LISTEN)

    # /etc/init.d/jira start // 启动

    # /etc/init.d/jira stop // 停止
    或者
    # /usr/local/atlassian/jira/bin/start-jira.sh
    # /usr/local/atlassian/jira/bin/stop-jira.sh

     

    6.破解jira

    关闭服务  把破解包里面的atlassian-extras-3.2.jarmysql-connector-java-5.1.39-bin.jar两个文件复制 /usr/local/atlassian/jira/atlassian-jira/WEB-INF/lib/ 

    # /etc/init.d/jira stop
    # cp atlassian-extras-3.2.jar /usr/local/atlassian/jira/atlassian-jira/WEB-INF/lib/
    # cp mysql-connector-java-5.1.39-bin.jar /usr/local/atlassian/jira/atlassian-jira/WEB-INF/lib/
    # /etc/init.d/jira start # lsof -i:8080
    COMMAND PID  USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
    java 121571 jira1 264u  IPv6 1309313 0t0  TCP *:webcache (LISTEN)


    其中atlassian-extras-3.2.jar是用来替换原来的atlassian-extras-3.2.jar文件,用作破解jira系统的。 mysql-connector-java-5.1.39-bin.jar是用来连接mysql数据库的驱动软件包。

     

    7.访问jira浏览器输入地址,进行配置

    修改语言 中文

     

    测试成功下一步,大概一分钟时间

     

     

    登录谷歌账号

     

     

    点击下一步后,开始创建管理员账户

    admin 密码:admin123

     

     

     

     

     

     

    可以到/var/atlassian/application-data/jira/dbconfig.xml 文件下查看Mysql连接

    [root@localhost ~]# cat /var/atlassian/application-data/jira/dbconfig.xml <?xml version="1.0" encoding="UTF-8"?>


    <jira-database-config>
    <name>defaultDS</name>
    <delegator-name>default</delegator-name> <database-type>mysql</database-type> <jdbc-datasource>
    <url>jdbc:mysql://localhost:3306/jira?
    useUnicode=true&;characterEncoding=UTF8&;sessionVariables=default_storage_engine=Inno DB</url>
    <driver-class>com.mysql.jdbc.Driver</driver-class> <username>jira</username>
    <password>jira123</password>
    <pool-min-size>20</pool-min-size>
    <pool-max-size>20</pool-max-size>
    <pool-max-wait>30000</pool-max-wait>
    <validation-query>select 1</validation-query>
    <min-evictable-idle-time-millis>60000</min-evictable-idle-time-millis>
    <time-between-eviction-runs-millis>300000</time-between-eviction-runs-millis> <pool-max-idle>20</pool-max-idle>
    <pool-remove-abandoned>true</pool-remove-abandoned>
    <pool-remove-abandoned-timeout>300</pool-remove-abandoned-timeout> <pool-test-on-borrow>false</pool-test-on-borrow>
    <pool-test-while-idle>true</pool-test-while-idle>
    <validation-query-timeout>3</validation-query-timeout> </jdbc-datasource>x
    </jira-database-config>
    坚持这种真诚,那么总归能遇到良人。
  • 相关阅读:
    需求分析之“客户隐形需求”
    JAVA版的SqlHelper【自学jdbc3个晚上的总结】
    NHibernate封装代码
    一步步认识NHibernate的延迟加载
    设置RichTextbox行间距
    .NET不可不读的书籍
    程序员的纠结
    CSS图片下载器
    从此告别CSDN
    C语言I博客作业02
  • 原文地址:https://www.cnblogs.com/jiaxiaozia/p/12160638.html
Copyright © 2011-2022 走看看