赞
踩
JIRA&Confluence安装
虚拟机配置 | ||
CPU | 4核 2.0GHZ | 4核 2.0GHZ |
内存 | 8GB | 8GB |
硬盘 | 200GB | 200GB |
操作系统 | Centos 7.5 | Centos 7.5 |
软件版本 | JIRA Software 8.20.2 | Confluence Server and Data Center 7.15 |
数据库 | MySQL 5.7 | MySQL 5.7 |
数据库JDBC驱动 | mysql-connector-java-5.1.49 | mysql-connector-java-5.1.49 |
两台服务器都用安装数据库
从https://dev.mysql.com/downloads/下载mysql数据库yum源文件
上传文件 mysql80-community-release-el7-4.noarch.rpm 到服务器/soft目录下
[root@localhost soft]# rpm -ivh mysql80-community-release-el7-4.noarch.rpm
[root@localhost soft]# yum-config-manager --disable mysql80-community
[root@localhost soft]# yum-config-manager --enable mysql57-community
[root@localhost soft]# yum install mysql-community-server
安装完成后配置参数
[root@localhost soft]# vi /etc/my.cnf 添加如下参数
default-storage-engine=INNODB
character_set_server=utf8mb4
innodb_default_row_format=DYNAMIC
innodb_large_prefix=ON
innodb_file_format=Barracuda
innodb_log_file_size=2G
port=3306
wait_timeout=31536000
interactive_timeout=31536000
启动数据库
[root@localhost soft]# service mysqld start
找到默认数据库密码
[root@localhost soft]# grep 'temporary password' /var/log/mysqld.log
2021-12-09T08:13:29.622317Z 1 [Note] A temporary password is generated for root@localhost: PFxxx/1
登录数据库,创建库和用户
[root@localhost soft]# mysql -u root -p
mysql> CREATE DATABASE jiradb CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
mysql> GRANT ALL PRIVILEGES ON jiradb.* TO 'jirauser'@'localhost' IDENTIFIED BY 'XXX7888#';
mysql> GRANT ALL PRIVILEGES ON jiradb.* TO 'jirauser'@'%' IDENTIFIED BY 'XXX7888#';
mysql> flush privileges;
以上是JIRA端,下面是confluence端
mysql> CREATE DATABASE confluence CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
mysql> GRANT ALL PRIVILEGES ON confluence.* TO 'confluence'@'localhost' IDENTIFIED BY 'XXX7888#';
mysql> GRANT ALL PRIVILEGES ON confluence.* TO 'confluence'@'%' IDENTIFIED BY 'XXX7888#';
mysql> flush privileges;
下载软件:Download Jira Software Data Center | Atlassian
软件包:atlassian-jira-software-8.20.2-x64.bin
上传软件包到服务器/soft目录下
[root@localhost soft]# chmod a+x atlassian-jira-software-8.20.2-x64.bin
[root@localhost soft]# ./ atlassian-jira-software-8.20.2-x64.bin
选择定制安装,其他默认
安装完成后,到网站https://downloads.mysql.com/archives/c-j/下载数据库JDBC包
包名mysql-connector-java-5.1.49.tar.gz,上传到服务器/soft目录下,解压缩,然后把*.bin.jar文件拷贝到jira安装目录中,然后重新启动jira
[root@localhost soft]# gunzip mysql-connector-java-5.1.49.tar.gz
[root@localhost soft]# tar xvf mysql-connector-java-5.1.49.tar
[root@localhost soft]# cp /soft/ mysql-connector-java-5.1.49/*.bin.jar /opt/atlassian/jira/lib/
[root@localhost soft]# /opt/atlassian/jira/bin/stop-jira.sh
[root@localhost soft]# /opt/atlassian/jira/bin/start-jira.sh
浏览器打开http://XX.X.X.X:8080开始配置JIRA
选择创建一个新项目
至此,JIRA安装完成
从网站Download Confluence Data Center | Atlassian下载confluence安装包
包名:atlassian-confluence-7.15.0-x64.bin
上传安装包到confluence服务器/soft目录下
[root@localhost soft]# chmod a+x atlassian-confluence-7.15.0-x64.bin
[root@localhost soft]# ./ atlassian-confluence-7.15.0-x64.bin
选择定制安装,其他默认
安装完成后,上传数据库JDBC包到服务器/soft目录下,解压缩,然后把*.bin.jar文件拷贝到confluence安装目录中,然后重新启动confluence
[root@localhost soft]# gunzip mysql-connector-java-5.1.49.tar.gz
[root@localhost soft]# tar xvf mysql-connector-java-5.1.49.tar
[root@localhostsoft]#cp/soft/mysql-connector-java-5.1.49/*.bin.jar /opt/atlassian/confluence/confluence/WEB-INF/lib/
[root@localhost soft]# /opt/atlassian/confluence/bin/stop-confluence.sh
[root@localhost soft]# /opt/atlassian/confluence/bin/start-confluence.sh
浏览器打开http://X.X.X.X:8090,开始配置confluence
可建一个示例站点
下图选第一个
至此confluence就安装完成了
在JIRA端,点击管理-应用程序-应用程序链接
输入confluence的url,点击创建新链接
会转到confluence端
配置完成
点击管理-用户管理-用户目录
点击添加目录,选择LDAP
填入如下信息,用户名和密码填写自己的账号和密码
其他都默认,点击测试并保存,LDAP配置完成。
配置nginx反向代理隐藏端口号
配置yum源
[root@localhost soft]# vi /etc/yum.repos.d/nginx.repo 填入下面信息
[nginx-stable]
name=nginx stable repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=1
enabled=1
gpgkey=https://nginx.org/keys/nginx_signing.key
module_hotfixes=true
[nginx-mainline]
name=nginx mainline repo
baseurl=http://nginx.org/packages/mainline/centos/$releasever/$basearch/
gpgcheck=1
enabled=0
gpgkey=https://nginx.org/keys/nginx_signing.key
module_hotfixes=true
[root@localhost soft]# yum install nginx
设置nginx自动启动,在/etc/profile.d目录下创建文件
[root@localhost soft]# vi /etc/profile.d/nginx.sh
/usr/sbin/nginx
修改配置信息
Confluence测试机
[root@localhost conf.d]# vi /etc/nginx/conf.d/default.conf
server {
listen 80;
改为 server_name confluence-t.xxx.com;
#access_log /var/log/nginx/host.access.log main;
location / {
改为 proxy_pass http://127.0.0.1:8090/;
JIRA测试机
[root@localhost conf.d]# cat /etc/nginx/conf.d/default.conf
server {
listen 80;
改为 server_name jira-t.XXX.com;
#access_log /var/log/nginx/host.access.log main;
location / {
改为 proxy_pass http://127.0.0.1:8080/;
启动nginx
[root@localhost conf.d]# nginx
最后把JIRA和confluence的url更新成域名即可
JIRA端
管理-应用程序-版本和许可证
点击编辑,输入许可,保存
Confluence端
管理-授权细节
填入许可,保存
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。