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环境

centos7_安装jira7_第1张图片

 

下载地址: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浏览器输入地址,进行配置

centos7_安装jira7_第2张图片

 

 

 

修改语言 中文

centos7_安装jira7_第3张图片

 

 

 centos7_安装jira7_第4张图片

 

 

 

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

centos7_安装jira7_第5张图片

 

 

 centos7_安装jira7_第6张图片

 

 

 centos7_安装jira7_第7张图片

 

登录谷歌账号

centos7_安装jira7_第8张图片

 

 

 centos7_安装jira7_第9张图片

 

 

 centos7_安装jira7_第10张图片

 

 

 

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

admin 密码:admin123

centos7_安装jira7_第11张图片

 

 

 centos7_安装jira7_第12张图片

 

 

 centos7_安装jira7_第13张图片

 

 

 centos7_安装jira7_第14张图片

 

 

centos7_安装jira7_第15张图片

 

 

 centos7_安装jira7_第16张图片

 

 

 centos7_安装jira7_第17张图片

 

 

 centos7_安装jira7_第18张图片

 

 

 

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

[root@localhost ~]# cat /var/atlassian/application-data/jira/dbconfig.xml


<jira-database-config>
<name>defaultDSname>
<delegator-name>defaultdelegator-name> <database-type>mysqldatabase-type> <jdbc-datasource>
<url>jdbc:mysql://localhost:3306/jira?
useUnicode=true&;characterEncoding=UTF8&;sessionVariables=default_storage_engine=Inno DBurl>
<driver-class>com.mysql.jdbc.Driverdriver-class> <username>jirausername>
<password>jira123password>
<pool-min-size>20pool-min-size>
<pool-max-size>20pool-max-size>
<pool-max-wait>30000pool-max-wait>
<validation-query>select 1validation-query>
<min-evictable-idle-time-millis>60000min-evictable-idle-time-millis>
<time-between-eviction-runs-millis>300000time-between-eviction-runs-millis> <pool-max-idle>20pool-max-idle>
<pool-remove-abandoned>truepool-remove-abandoned>
<pool-remove-abandoned-timeout>300pool-remove-abandoned-timeout> <pool-test-on-borrow>falsepool-test-on-borrow>
<pool-test-while-idle>truepool-test-while-idle>
<validation-query-timeout>3validation-query-timeout> jdbc-datasource>x
jira-database-config>

你可能感兴趣的:(centos7_安装jira7)