Fork me on GitHub

centos7 搭建 Jira+Confluence+Bitbucket 项目管理工具(一) -- 安装 Jira 7.13.0

   Jira+Confluence+Bitbucket 号称是生态级别的项目管理工具,接下来就让我们来个Jira初尝试吧。

什么是Jira?

JIRA软件是为您的软件团队的每个成员构建的,用来规划,跟踪和发布优秀的软件。

最低硬件要求

最小硬件依赖

  • CPU: Quad core 2GHz+ CPU
  • RAM: 6GB
  • Minimum database space: 10GB

本文的测试环境

  • centos7 64

  • 2 h 7.5G 内存的服务器

  • 10G SSD

安装准备

  • 安装JAVA环境
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 创建多层目录
mkdir -p /opt/softs/java
# 进入目录
cd /opt/softs/java
# 下载Java Web三件套 jdk tomcat maven
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/8u191-b12/2787e4a523244c269598db4e85c51e0c/jdk-8u191-linux-x64.tar.gz
wget http://mirror.bit.edu.cn/apache/tomcat/tomcat-7/v7.0.92/bin/apache-tomcat-7.0.92.tar.gz
wget http://mirrors.shu.edu.cn/apache/maven/maven-3/3.6.0/binaries/apache-maven-3.6.0-bin.tar.gz
# 解压三件套
tar zxvf jdk-8u191-linux-x64.tar.gz
tar zxvf apache-tomcat-7.0.92.tar.gz
tar zxvf apache-maven-3.6.0-bin.tar.gz
# 配置环境变量
cp -R /etc/profile /etc/profile.d
echo "export JAVA_HOME=$softsSource/jdk1.8.0_191" >> /etc/profile
echo "export M2_HOME=$softsSource/apache-maven-3.6.0" >> /etc/profile
echo "export CLASSPATH=.:\$JAVA_HOME/lib/dt.jar:\$JAVA_HOME/lib/tools.jar" >> /etc/profile
echo "export PATH=\$PATH:\$JAVA_HOME/bin:\$M2_HOME/bin:" >> /etc/profile
source /etc/profile
  • 安装MySQL 5.7.X

关于如何在centos 7 安装MySQL 5.7.X,请看我的上篇文章Centos7 安装 MySQL 5.7.X

  • 配置MySQL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
shell>mysql -u root -p 
mysql>create database jira_db default character set utf8 collate utf8_bin;
mysql>grant all privileges on jira_db.* to 'jira'@'%' identified by 'XXXXX' with grant option;
mysql>grant all privileges on jira_db.* to 'jira'@'localhost' identified by 'XXXXX' with grant option;
mysql>flush privileges;
mysql>exit
shell>mysql -u jira -p
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| jira_db |
+--------------------+
2 rows in set (0.00 sec)
# 当出现上面的情况时代表MySQL 数据库配置已经完成
  • 配置Nginx

关于如何在centos 7 安装和配置Nginx,请看我的上篇文章Centos7 nginx 的 brotli 压缩

  • 升级内核,安装BBR

BBR就是Google开发出的一款针对网络情况不好进行加速的相关算法,简单的说,BBR算法能减少丢包,在拥堵的情况下给各种连接加速。对于国外的服务器,不管是上网还是做网站,如果能支持,我都建议开启BBR,大多数情况下能提高下载速度,提高用户体验

创建update_kernel.sh 文件,复制一下内容到下面文件中,赋予文件执行权限,执行文件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
shell> vim  update_kernel.sh
# 复制下面内容到 update_kernel.sh 文件中

#!/bin/bash
#关闭selinux
function colose_selinux() {
echo “${Info}关闭Selinux“
[ -s /etc/selinux/config ] && sed -i “s/SELINUX=enforcing/SELINUX=disabled/g“ /etc/selinux/config
setenforce 0 >/dev/null 2>&1
}

#升级系统软件
function yum_update() {
echo “${Info}升级系统软件,可能需要花费较长时间,请耐心等待“
yum -y update
}

#安装基础软件
function install_base_software() {
echo “${Info}安装epel源“
yum -y install epel-release
echo “${Info}安装wget“
yum -y install wget
echo “${Info}安装lrzsz“
yum -y install lrzsz
echo “${Info}安装zip unzip“
yum -y install unzip zip
echo “${Info}安装Development Tools“
yum -y groupinstall "Development Tools"
}

#更新内核
function update_kernel() {
#初始化设置
colose_selinux
install_base_software
yum_update
# 安装内核
echo “${Info}安装kernel“
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
# 安装内核
yum -y remove kernel-headers
yum -y --enablerepo=elrepo-kernel install kernel-ml kernel-ml-headers kernel-ml-devel
# 设置启动顺序
grub2-set-default 0
read -p "${Success}安装完成,按下回车键重启 :" yn
[ -z "${yn}" ] && yn="y"
if [[ $yn == [Yy] ]]; then
echo -e "${Info} VPS 重启中..."
reboot
fi
}

update_kernel
# 文件内容结束
shell> chmod +x update_kernel.sh
shell>./update_kernel.sh
# 接下来静等脚本执行完成就可以了

开始安装

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
shell>mkdir -p /opt/softs/atlassian
shell>cd /opt/softs/atlassian
shell>wget https://product-downloads.atlassian.com/software/jira/downloads/atlassian-jira-software-7.13.0-x64.bin
shell>chmod a+x atlassian-jira-software-7.13.0-x64.bin
shell>./atlassian-jira-software-7.13.0-x64.bin
# 对于第一次安装的新手而说,建议一路回车采用默认配置就可以了。下面是我安装流程
shell>./atlassian-jira-software-7.13.0-x64.bin
Unpacking JRE ...
Starting Installer ...
Dec 09, 2018 1:10:34 AM java.util.prefs.FileSystemPreferences$2 run
INFO: Created system preferences directory in java.home.

This will install JIRA Software 7.13.0 on your computer.
OK [o, Enter], Cancel [c]
o
Choose the appropriate installation or upgrade option.
Please choose one of the following:
Express Install (use default settings) [1], Custom Install (recommended for advanced users) [2], Upgrade an existing JIRA installation [3, Enter]

Existing installation directory:
[/opt/atlassian/jira]

Back up JIRA home directory
The upgrade process will automatically back up your JIRA installation
directory. You can also choose to back up your existing JIRA home directory.
Both directories are backed up as zip archive files in their respective
parent directory locations.

We strongly recommend choosing this option in the unlikely event that you
experience problems with the upgrade and may require these backups to
restore your existing JIRA installation.

If you have many attachments in your JIRA home directory, the zip archive of
this directory may consume a significant amount of disk space.
Back up JIRA home directory?
Yes [y, Enter], No [n]


Checking for local modifications.


List of modifications made within JIRA directories.

The following provides a list of file modifications within the
atlassian-jira directory.

Modified files:
(none)
Removed files:
(none)
Added files:
lib/mysql-connector-java-5.1.47.jar

[Enter]

Checking if your instance of JIRA Software is running
Upgrade check list
Back up your external database
We strongly recommend you back up your JIRA Software database if you have
not already done so.

Please refer to the following URL for back up guidelines:
http://docs.atlassian.com/jira/jadm-docs-0713/Backing+up+data

Check plugin compatibility
Check that your non-bundled plugins are compatible with JIRA Software
7.13.0.

Access the plugin manager through the following URL:
http://localhost:8080/plugins/servlet/upm#compatibility

For more information see our documentation at the following URL:
http://docs.atlassian.com/jira/jadm-docs-0713/Upgrading+JIRA+applications

Please ensure you have read the above checklist before upgrading.
Your existing JIRA installation is about to be upgraded!

The upgrade process will shut down your existing JIRA installation to complete the upgrade.

Do you want to proceed?
Upgrade [u, Enter], Exit [e]
u

Your instance of JIRA is currently being upgraded.
Shutting down JIRA...
Checking if JIRA has been shutdown...
Backing up the JIRA installation directory

Backing up the JIRA home directory

Deleting the previous JIRA installation directory...

Extracting files ...


Please wait a few moments while JIRA Software is configured.
Installation of JIRA Software 7.13.0 is complete
Start JIRA Software 7.13.0 now?
Yes [y], No [n, Enter]
y

Please wait a few moments while JIRA Software starts up.
Launching JIRA Software ...
Installation of JIRA Software 7.13.0 is complete
Your installation of JIRA Software 7.13.0 is now ready and can be accessed
via your browser.
Custom modifications
Your previous JIRA installation contains customisations that must be
manually transferred. Refer to our documentation more information:
http://docs.atlassian.com/jira/jadm-docs-0713/Upgrading+JIRA+applications+manually#UpgradingJIRAapplicationsmanually-configuringnewjiraasold3.4MigrateyourexistingJIRAconfigurationsovertoyournewJIRAinstallation
JIRA Software 7.13.0 can be accessed at http://localhost:8080

JIRA Software may take several minutes to load on first start up.
Finishing installation ...

配置JIRA

Jira启动完毕后, 在浏览其中输入地址: 服务器IP:8080, 即可访问Jira的配置界面, 具体步骤如下:

  1. 在首页上, 将选择”语言(Language)”选为中文, 并选择”我要自己配置(I’ll set it up myself)”.

  2. 在数据库配置(Database setup)页面, 选择”我自己的数据库(My Own Database)”, 并填入mysql相关的信息.

  3. 在设置应用属性(Set up application properties)页面, 填入应用名称, 任选一种模式(私有模式和公开默认), 区别就是一个是管理员添加账号, 一个是用户自己注册账号, 我这边是希望是管理员配置, 所以选private, 即私有模式.4 . 在指定你的序列号(Specify your license key)界面, 输入自己的秘钥, 点下一步完成通知配置、管理员配置、和操作语言选择即可.

    1. 在欢迎界面, 尝试”创建一个新项目”, 并选择敏捷开发方式测试一下即可, 整个过程安装完毕.    

    

    

    

    

    

    

    

    

     

    

    

本文标题:centos7 搭建 Jira+Confluence+Bitbucket 项目管理工具(一) -- 安装 Jira 7.13.0

文章作者:孤城落寞

发布时间:2018年12月08日 - 17:40:21

最后更新:2018年12月14日 - 04:33:45

原始链接:https://blog.gclmit.club/archives/5cd62109.html

许可协议: 署名-非商业性使用-禁止演绎 4.0 国际 转载请保留原文链接及作者。



-------------本文结束 感谢您的阅读-------------
坚持原创技术分享,您的支持将鼓励我继续创作!