CentOS7安装Jira

一、个人环境

1、CentOS7

二、安装包

1、java1.8.0

链接:https://pan.baidu.com/s/1-lP6hwfbASMlQt7o84sMfg
提取码:i7bw

2、mysql5.6

链接:https://pan.baidu.com/s/150wRhoRRXcGCZLHb9k70cQ
提取码:quv3

3、Jira7.4.1

链接:https://pan.baidu.com/s/1Ping6EkAjeEYJmcxOE-rPg
提取码:65rk

4、jira扩展包,仅供个人实验使用;商业用途,请自行购买

链接:https://pan.baidu.com/s/10Dk1K81_v5umsIu9EtaOCw
提取码:nxm3

三、安装步骤

3.1 jdk的安装

一般Vmware虚拟机安装后,会有自带的jdk- openjdk,查看命令

rpm -qa | grep java

卸载命令:

rpm -ev *           // *中内容,通过如上命令查看,请自行手动下载

重写安装:

[root@localhost ~]# tar xzxf jdk-8u201-linux-x64.tar.gz 
[root@localhost ~]# mv jdk1.8.0_201/ /usr/local/java
[root@localhost ~]# vim /etc/profile
# 末尾添加
export JAVA_HOME=/usr/local/java
export JRE_HOME=/usr/local/java/jre
export CLASSPATH=$JAVA_HOME/lib:$JRE_HOME/lib
export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
[root@localhost ~]# rm -rf /usr/bin/java
[root@localhost ~]# source /etc/profile
[root@localhost ~]# 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.2 mysql的安装

jira是支持5.7的,但是Confluence不支持5.7,所以这里安装mysql5.6

rpm -ivh mysql-community-release-el7-5.noarch.rpm
#设置mysql的root密码
mysql -u root mysql
mysql> update user set password=password('1234') where user='root';
mysql> flush privileges;//记得要这句话,否则如果关闭先前的终端,又会出现原来的错误
mysql> \q
#添加用户
[root@localhost ~]# systemctl start mysqld
[root@localhost ~]# mysql -u root -p
mysql> create database jira default character set utf8 collate utf8_bin;
#实际使用发现,无法使用jira登陆数据库,CMD和jira向导均不行。最终使用root和1234登陆
mysql> grant all on jira.* to 'jira'@'%' identified by '123456.com';

3.3 jira的安装

chmod +x atlassian-jira-software-7.4.1-x64.bin
mv atlassian-jira-software-7.4.1-x64.bin /usr/local/src/
/usr/local/src/atlassian-jira-software-7.4.1-x64.bin

# 中途需要陆续输入o/1/i/y
# 确定安装
OK [o, Enter], Cancel [c]
o
# 选择安装方式,1为默认
Please choose one of the following:
Express Install (use default settings) [1], Custom Install (recommended for advanced users) [2, Enter], Upgrade an existing JIRA installation [3]
1
# 输入i继续安装
Install [i, Enter], Exit [e]
i
# 启动jira,输入y
Start JIRA Software 7.4.1 now?
Yes [y, Enter], No [n]
y
# 最后输出为
JIRA Software 7.4.1 can be accessed at http://localhost:8080
Finishing installation ...

3.4 jira的扩展

#关闭服务
/home/admin/atlassian/jira/bin/stop-jira.sh 

#拷贝pojie文件
cd /home/admin/atlassian/jira
mv /home/admin/jira/mysql-connector-java-5.1.6-bin.jar ./atlassian-jira/WEB-INF/lib/
mv /home/admin/jira/atlassian-extras-3.2.jar ./atlassian-jira/WEB-INF/lib/

#重新启动服务
./bin/start-jira.sh

 四、jira的初始化

浏览器访问localhost:8080

设置数据库

 

 

 

参考文档:

https://blog.csdn.net/qq_45192746/article/details/106859394

https://mirrors.huaweicloud.com/java/jdk/8u201-b09/

https://blog.csdn.net/beishanyingluo/article/details/97675724

posted @ 2021-07-25 13:10  “人生苦短”  阅读(704)  评论(0编辑  收藏  举报