centos7.3 + jira7.8.3 + svn 1.7.14

一、环境搭建

1、centos7.3环境搭建:
(1)下载centos7.3的.iso文件
  http://mirrors.aliyun.com 阿里云镜像站
  https://mirrors.tuna.tsinghua.edu.cn 清华大学镜像站
  http://mirrors.sohu.com/ 搜狐镜像站
  http://mirrors.163.com/ 网易镜像站
进入其中一个网址,找到https://mirrors.aliyun.com/centos/7/isos/x86_64/

(2)U盘安装.iso文件:
a、下载USBWriter工具,制作U盘启动镜像
b、 在开机启动的时候使用U盘启动

2、安装java环境
// 注意:jira需要oracle的java,默认的openjdk是不行的
// http://www.oracle.com/technetwork/java/javase/downloads/index.html,下载 jdk-8u161-linux-x64.rpm ,然后上传到/usr/local/src

# yum localinstall jdk-8u161-linux-x64.rpm  -y 
# 查看jdk是否安装成功
# java -version
  java version "1.8.0_161"
  Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
  Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)

 

3、安装mysql,并创建jira数据库及jira用户
(1)服务器配置mysql repo源
https://dev.mysql.com/downloads/repo/yum/,下载mysql-5.7.21-1.el7.x86_64.rpm-bundle.tar 解压tar包
// 默认启用的是5.7,更改为5.6

[mysql56-community]
name=MySQL 5.6 Community Server
baseurl=http://repo.mysql.com/yum/mysql-5.6-community/el/7/$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/7/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql


(2)安装mysql

# yum clean all 
# yum install mysql-community-server -y

 

(3)启动mysql并设置自启

# /etc/init.d/mysqld start
Initializing MySQL database:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h sh-kvm-3-1 password 'new-password'

Alternatively you can run:

/usr/bin/mysql_secure_installation
--defaults-file argument to mysqld_safe when starting the server

[ OK ]
Starting mysqld: [ OK ]

 

(4) 初始化mysql并重置密码

/usr/bin/mysql_secure_installation

 

(5) 创建jira数据库和jira用户

mysql -uroot -p'211212' -e "CREATE DATABASE jira CHARACTER SET utf8 COLLATE utf8_bin;grant all on jira.* to 'jira'@'%' identified by 'jirapasswd';"

 

(6) 测试jira连接mysql

mysql -ujira -pjirapasswd # 连接成功

 

4、安装jira
JIRA下载地址:https://www.atlassian.com/software/jira/download
(1)下载后安装jira

#cd /usr/local/src
#chmod a+x atlassian-jira-software-7.4.1-x64.bin
#sudo ./atlassian-jira-software-7.4.1-x64.bin
//使用默认安装,安装完成会启动jira

 

(2)启动jira
关闭已启动的jira,然后把破解包里面的atlassian-extras-3.2.jar和mysql-connector-java-5.1.42-bin.jar两个文件复制到/opt/atlassian/jira/atlassian-jira/WEB-INF/lib/目录下
#/opt/atlassian/jira/bin/stop-jira.sh # 停止jira
#/opt/atlassian/jira/bin/start-jira.sh # 启动jira
其中atlassian-extras-2.jar是用来替换原来的atlassian-extras-2.jar文件,用作破解jira系统的。
而mysql-connector-java-5.1.42-bin.jar是用来连接mysql数据库的驱动软件包
重新启动jira,访问ip:8080

访问jira 8080端口成功:
1、查看浏览器界面的nginx能不能拿到
2、如果拿不到,查看Linux系统是否安装nginx服务
查看iptable 是否关闭
3、拿到nginx,不能访问8080端口:
返回的错误是:http error 404
解决方法:删除jira服务,重新安装jira后,可以进入8080端口
5、设置jira
登陆http://127.0.0.1:8080界面进行配置

 

posted on 2018-08-22 11:35  宅女士  阅读(324)  评论(0编辑  收藏  举报