centos 6.9安装jira 7.2.6

公司准备实行敏捷开发,经过一番工具选择,最终选定了jira和confluence,jira用作项目管理,confluence用于分享管理。此文介绍jira安装配置:

一、环境准备

1、关闭或设置防火墙、关闭selinux。

2、安装jdk8环境(安装oracle的java,默认的openjdk不行)。

链接: https://pan.baidu.com/s/1pK8oLyb 密码: ypfd

(1)这里下载的是rpm包。

[[email protected] soft]# rpm -ivh jdk-8u131-linux-x64.rpm
Preparing...                ########################################### [100%]
   1:jdk1.8.0_131           ########################################### [100%]
Unpacking JAR files...
    tools.jar...
    plugin.jar...
    javaws.jar...
    deploy.jar...
    rt.jar...
    jsse.jar...
    charsets.jar...
    localedata.jar...

(2)设置环境变量。
[[email protected] soft]# vim /etc/profile

JAVA_HOME=/usr/java/jdk1.8.0_131
JAVA_BIN=/usr/java/jdk1.8.0_131/bin
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/bin:/sbin/
CLASSPATH=.:/lib/dt.jar:/lib/tools.jar
export JAVA_HOME JAVA_BIN PATH CLASSPATH

(3)使环境变量生效。

[[email protected] soft]# source /etc/profile

(4)查看java版本。

[[email protected] soft]# java -version
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

3、安装mysql 5.6

(1)安装mysql的yum源,这个源包括5.5、5.6、5.7版本:

备注:如果要专门下载某个版本,可以到http://dev.mysql.com/downloads/repo/yum下载。

[[email protected] ~]# rpm -ivh http://repo.mysql.com/mysql-community-release-el6.rpm
Retrieving http://repo.mysql.com/mysql-community-release-el6.rpm
warning: /var/tmp/rpm-tmp.C87LHo: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing...                ########################################### [100%]
   1:mysql-community-release########################################### [100%]

(2)打开mysql的yum源文件,如果要安装mysql哪个版本,选择后把里面的enable设置为1。

备注:或者用yum-config-manager命令方式开启或关闭。

yum-config-manager --disable mysql55-community
yum-config-manager --enable mysql56-community
yum-config-manager --disable mysql57-community

[[email protected] ~]#vim /etc/yum.repos.d/mysql-community.repo
# Enable to use MySQL 5.5
[mysql55-community]
name=MySQL 5.5 Community Server
baseurl=http://repo.mysql.com/yum/mysql-5.5-community/el/6/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
# Enable to use MySQL 5.6
[mysql56-community]
name=MySQL 5.6 Community Server
baseurl=http://repo.mysql.com/yum/mysql-5.6-community/el/6/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
[mysql57-community]
name=MySQL 5.7 Community Server
baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/6/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

(3)yum安装mysql组件。

[[email protected] ~]#yum install mysql-community-client mysql-community-devel mysql-community-server php-mysql
正在安装:
 mysql-community-client                    x86_64               5.6.38-2.el6                 mysql56-community                18 M
 mysql-community-devel                     x86_64               5.6.38-2.el6                 mysql56-community               3.3 M
 mysql-community-libs                      x86_64               5.6.38-2.el6                 mysql56-community               1.9 M
     replacing  mysql-libs.x86_64 5.1.73-8.el6_8
 mysql-community-libs-compat               x86_64               5.6.38-2.el6                 mysql56-community               1.6 M
     replacing  mysql-libs.x86_64 5.1.73-8.el6_8
 mysql-community-server                    x86_64               5.6.38-2.el6                 mysql56-community                55 M
 php-mysql                                 x86_64               5.3.3-49.el6                 base                             86 k
为依赖而安装:
 mysql-community-common                    x86_64               5.6.38-2.el6                 mysql56-community               308 k
 numactl                                   x86_64               2.0.9-2.el6                  base                             74 k
 php-common                                x86_64               5.3.3-49.el6                 base                            530 k
 php-pdo                                   x86_64               5.3.3-49.el6                 base                             80 k

(4)启动mysql命令,并设置开机自启动。

[[email protected] ~]#service mysqld start
[[email protected] ~]#chkconfig mysqld on

(5)mysql设置root密码。

[[email protected] ~]#mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!
In order to log into MySQL to secure it, we'll need the current
password for the root user.  If you've just installed MySQL, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
Enter current password for root (enter for none): 
OK, successfully used password, moving on...
Setting the root password ensures that nobody can log into the MySQL
root user without the proper authorisation.
Set root password? [Y/n] y
New password: 
Re-enter new password: 
Password updated successfully!
Reloading privilege tables..
 ... Success!
By default, a MySQL installation has an anonymous user, allowing anyone
to log into MySQL without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.
Remove anonymous users? [Y/n] y
 ... Success!
Normally, root should only be allowed to connect from 'localhost'.  This
ensures that someone cannot guess at the root password from the network.
Disallow root login remotely? [Y/n] y
 ... Success!
By default, MySQL comes with a database named 'test' that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.
Remove test database and access to it? [Y/n] y
 - Dropping test database...
ERROR 1008 (HY000) at line 1: Can't drop database 'test'; database doesn't exist
 ... Failed!  Not critical, keep moving...
 - Removing privileges on test database...
 ... Success!
Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.
Reload privilege tables now? [Y/n] y
 ... Success!
All done!  If you've completed all of the above steps, your MySQL
installation should now be secure.
Thanks for using MySQL!
Cleaning up...

(6)mysql设置。

在[mysqld]下面加入这几行:

[[email protected] ~]# vi /etc/my.cnf
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

在这2个文件里面分别加入如下内容:

[[email protected] ~]# vi /etc/my.cnf.d/client.cnf
[client]
default-character-set=utf8
[[email protected] my.cnf.d]# vi /etc/my.cnf.d/mysql-clients.cnf
[mysql]
default-character-set=utf8

重启mysql,并查看字符集。

[[email protected] my.cnf.d]# service mysqld restart
停止 mysqld:                                              [确定]
正在启动 mysqld:                                          [确定]
[[email protected] my.cnf.d]# mysql -u root -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.6.38 MySQL Community Server (GPL)
Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show variables like "%character%";show variables like "%collation%";
+--------------------------+----------------------------+
| Variable_name            | Value                      |
+--------------------------+----------------------------+
| character_set_client     | utf8                       |
| character_set_connection | utf8                       |
| character_set_database   | utf8                       |
| character_set_filesystem | binary                     |
| character_set_results    | utf8                       |
| character_set_server     | utf8                       |
| character_set_system     | utf8                       |
| character_sets_dir       | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
8 rows in set (0.08 sec)
+----------------------+-----------------+
| Variable_name        | Value           |
+----------------------+-----------------+
| collation_connection | utf8_unicode_ci |
| collation_database   | utf8_unicode_ci |
| collation_server     | utf8_unicode_ci |
+----------------------+-----------------+
3 rows in set (0.02 sec)
mysql>

4、mysql中创建jira数据库和用户,并验证。

mysql> CREATE DATABASE jira CHARACTER SET utf8 COLLATE utf8_bin;
Query OK, 1 row affected (0.11 sec)
mysql> grant all on jira.* to 'jira'@'%' identified by 'jirapasswd';
Query OK, 0 rows affected (0.09 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)
mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| jira               |
| mysql              |
| performance_schema |
+--------------------+
4 rows in set (0.07 sec)
[[email protected] ~]# mysql -u jira -h localhost -pjirapasswd
Warning: Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.6.38 MySQL Community Server (GPL)
Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>

二、安装JIRA 7.2.6

1、下载并解压jira到/tmp目录

wget -c -P /tmp https://downloads.atlassian.com/software/jira/downloads/atlassian-jira-software-7.2.6.tar.gz
cd /tmp
tar zxvf atlassian-jira-software-7.2.6.tar.gz
cp -rv atlassian-jira-software-7.2.6-standalone/ /opt/

2、创建软链接,注意jira目录后不要带“/”,/opt/jira就作为jira的安装目录

ln -sv /opt/atlassian-jira-software-7.2.6-standalone /opt/jira

3、创建jira用户并设置密码为”123456“

/usr/sbin/useradd --create-home --comment "JIRA Software" --shell /bin/bash jira
echo "123456" | passwd --stdin jira

4、设置jira目录只允许jira用户访问

chown -R jira.jira /opt/jira/
chmod -R 700 /opt/jira/

5、创建jira家目录,用于log、搜索索引等文件的存储,并限制只允许jira用户访问

mkdir /home/jira/jirasoftware-home
chown -R jira.jira /home/jira/jirasoftware-home
chmod -R 700 /home/jira/jirasoftware-home

6、设置/opt/jira/atlassian-jira/WEB-INF/classes/jira-application.properties文件,在末尾去除注释并修改为上面设置的jira家目录路径,

jira.home=/home/jira/jirasoftware-home

7、配置家目录的环境变量

echo 'JIRA_HOME=/home/jira/jirasoftware-home' >> /etc/profile
echo 'export JIRA_HOME' >> /etc/profile
source /etc/profile

8、检查端口是否被占用,jira默认运行的端口有8005和8080,Server port (8005) and the Connector port (8080) ,如果被占用,可打开/opt/jira/conf/server.xml文件修改端口,如果防火墙打开,则放行修改后的端口,下面的例子是修改成5005和5050,

<Server port="5005" shutdown="SHUTDOWN">
…
<Service name="Catalina">
<Connector port="5050"
maxThreads="150"
minSpareThreads="25"
connectionTimeout="20000"
enableLookups="false"
maxHttpHeaderSize="8192"
protocol="HTTP/1.1"
useBodyEncodingForURI="true"
redirectPort="8443"
acceptCount="100"
disableUploadTimeout="true"/>

9、启动jira并查看8080端口,可以将启动命令放在/etc/rc.load文件中。

[[email protected] ~]# /bin/sh /opt/jira/bin/start-jira.sh
To run JIRA in the foreground, start the server with start-jira.sh -fg
executing as current user
                .....
          .... .NMMMD.  ...
        .8MMM.  $MMN,..~MMMO.
        .?MMM.         .MMM?.
     OMMMMZ.           .,NMMMN~
     .IMMMMMM. .NMMMN. .MMMMMN,
       ,MMMMMM$..3MD..ZMMMMMM.
        =NMMMMMM,. .,MMMMMMD.
         .MMMMMMMM8MMMMMMM,
           .ONMMMMMMMMMMZ.
             ,NMMMMMMM8.
            .:,.$MMMMMMM
          .IMMMM..NMMMMMD.
         .8MMMMM:  :NMMMMN.
         .MMMMMM.   .MMMMM~.
         .MMMMMN    .MMMMM?.
      Atlassian JIRA
      Version : 7.2.6
                  
If you encounter issues starting or stopping JIRA, please see the Troubleshooting guide at http://confluence.atlassian.com/display/JIRA/Installation+Troubleshooting+Guide
Using JIRA_HOME:       /home/jira/jirasoftware-home
Server startup logs are located in /opt/jira/logs/catalina.out
Using CATALINA_BASE:   /opt/jira
Using CATALINA_HOME:   /opt/jira
Using CATALINA_TMPDIR: /opt/jira/temp
Using JRE_HOME:        /usr/java/jdk1.8.0_131
Using CLASSPATH:       /opt/jira/bin/bootstrap.jar:/opt/jira/bin/tomcat-juli.jar
Using CATALINA_PID:    /opt/jira/work/catalina.pid
Existing PID file found during start.
Removing/clearing stale PID file.
Tomcat started.
[[email protected] ~]# lsof -i:8080
COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
java    1729 root   67u  IPv6  10749      0t0  TCP *:webcache (LISTEN)

10、输入http://192.168.0.182:8080/访问

创建项目、帐号,创建好帐号。设置邮箱等。

原文地址:http://blog.51cto.com/net881004/2054111

时间: 2024-07-30 23:58:44

centos 6.9安装jira 7.2.6的相关文章

CentOS 7 下安装 JIRA 8.7 和 Confluence 7.3

环境是CentOS 7,带GUI的.勾选了MariaDB和开发环境. 网上很多安装教程.https://my.oschina.net/werngin/blog/2961303 根据官网安装指南,也可很好的操作. 安装JIRA: https://confluence.atlassian.com/adminjiraserver/installing-jira-applications-on-linux-from-archive-file-938846844.html安装Confluence: htt

CentOS 7 上 安装 jira

步骤 1.安装jdk8 https://www.cnblogs.com/sea-stream/p/10404360.html 2.安装mysql wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm yum -y install mysql57-community-release-el7-10.noarch.rpm yum -y install mysql-community-server

CentOS 6.5下JIRA安装部署

JIRA简介: JIRA:专业的缺陷跟踪和项目管理软件 JIRA是一个项目跟踪管理工具,帮助团队创建计划任务.构建并发布优秀的产品.全球成千上万的团队选择JIRA,用JIRA来捕获.组织管理缺陷.分配任务,跟踪团队的活动.不论在桌面PC还是移动终端设备上,JIRA都能完美的运行,帮助团队完成工作. 更多的介绍这里就不详细列出了:http://www.unlimax.com/jira.html及http://www.confluence.cn CentOS 6.5安装配置Jira.Confluen

LInux下如何安装JIRA项目管理软件

环境:Linux Centos,atlassian-jira-6.3.13-x64.binapache-tomcat-7.0.40.tar.gzjdk-7u21-linux-x64.tar.gzmysql-5.5.25a.tar.gzmysql-connector-java-5.1.25-bin.jar 2. 下载Jira最新版# wget http://downloads.atlassian.com/software/jira/downloads/下载地址可以在下面网址找到,注意版本的选择ht

centos 6.5安装NodeJS

centos 6.5安装NodeJS 下载 可以在本地下载node.js最新版,然后通过ftp工具上传到服务器,或者直接在服务器终端使用wget命令下载(我当时下载的是node-v7.5.0-linux-x86版本,其他版本请查看上面链接然后替换即可): $ wget http://nodejs.org/dist/latest/node-v7.5.0-linux-x86.tar.gz 解压 进入服务器终端,找到上传或者下载的安装包,解压 $ tar -zvxf node-v7.5.0-linux

MongoDB 3.2 在CentOS 上的安装和配置

MongoDB 3.2 在CentOS 上的安装和配置 2016-01-06 14:41:41 发布 您的评价:       0.0   收藏     0收藏 一.安装 编辑/etc/yum.repos.d/mongodb-org-3.2.repo [mongodb-org-3.2] name=MongoDB Repository baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.2/x86_64/ gpg

Centos 7 一键安装openstack

系统:Centos7x64 单节点 CentOS yum 快速安装: # 安装RDO repo $ sudo yum install -y https://www.rdoproject.org/repos/rdo-release.rpm # 更新repo源 $ sudo yum update -y # 安装openstack-packstack $ sudo yum install -y openstack-packstack # 执行部署过程 $ packstack --allinone 访问

CentOS 7 yum安装Zabbix

CentOS 7 yum安装Zabbix 一.Zabbix简介 zabbix是一个基于WEB界面的提供分布式系统监视以及网络监视功能的企业级的开源解决方案.zabbix能监视各种网络参数,保证服务器系统的安全运营:并提供灵活的通知机制以让系统管理员快速定位/解决存在的各种问题. 下面是Centos7上yum安装zabbix的步骤. 二.Zabbix安装 本文档在同一台机器上安装了zabbix-server 和zabbix-agent 自己监控自己. 1.配置LAMP 参照下面的链接 Centos

CentOS 6.5 安装部署iSCSi共享存储

 CentOS 6.5 安装部署iSCSi共享存储 一.前言 1.什么是iSCSI? iSCSI技术是一种由IBM公司研究开发的,是一个供硬件设备使用的可以在IP协议的上层运行的SCSI指令集,这种指令集合可以实现在IP网络上运行SCSI协议,使其能够在诸如高速千兆以太网上进行路由选择.iSCSI技术是一种新储存技术,该技术是将现有SCSI接口与以太网络(Ethernet)技术结合,使服务器可与使用IP网络的储存装置互相交换资料. iSCSI:Internet 小型计算机系统接口 (iSCSI: