当前位置: 首页 > news >正文

linux 服务器安装jira-8.22.0和confluence-8.5.21

前提:
下载资源包
z_atlassian-agent-v1.3.1.zip
z_atlassian-confluence-8.5.21-x64.zip
z_atlassian-jira-software-8.22.0-x64.zip
z_jdk-8u131-linux-x64.tar.gz
z_postgresql-12.0.tar.gz
可通过作者本身资源库下载
一:服务器构建文件夹

mkdir /z
mkdir /z/confluence
mkdir /z/confluence/atlassian-agent
mkdir /z/jira
mkdir /z/jira/atlassian-agent
mkdir /z/postgresql
mkdir /z/java

二:文件上传指定目录
由于作者是.zip结尾需要window本地解压
z_atlassian-confluence-8.5.21-x64.zip
z_atlassian-jira-software-8.22.0-x64.zip
z_atlassian-agent-v1.3.1.zip

cd /z/confluence上传atlassian-confluence-8.5.21-x64.bin文件chmod 777 atlassian-confluence-8.5.21-x64.bincd /z/jira上传atlassian-jira-software-8.22.0-x64文件chmod 777 atlassian-jira-software-8.22.0-x64.bincd /z/jira/atlassian-agent上传atlassian-agent.jar文件cd /z/confluence/atlassian-agent上传atlassian-agent.jar文件

无需本地解压,上传到服务器进行解压
z_jdk-8u131-linux-x64.tar.gz
z_postgresql-12.0.tar.gz

cd /z/java
上传z_jdk-8u131-linux-x64.tar.gz压缩包
tar -xvf z_jdk-8u131-linux-x64.tar.gz
cd /z/postgresql
上传z_postgresql-12.0.tar.gz压缩包
tar -xvf z_postgresql-12.0.tar.gz

三:java环境变量配置

cd /z/java/jdk1.8.0_131vi /etc/profile#文件底部增加
JAVA_HOME=/z/java/jdk1.8.0_131
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=$JAVA_HOME/jre/lib/ext:$JAVA_HOME/lib/tools.jar
export PATH JAVA_HOME CLASSPATHwqsource /etc/profilejava -version

四:postgresql安装

yum install perl-ExtUtils-Embed readline-devel zlib-devel pam-devel libxml2-devel libxslt-devel openldap-devel gcc-c++ openssl-devel cmake
yum install gcc
yum install zlib-devel
yum install readline-devel
yum install make
cd /z/postgresql/postgresql-12.0/./configure --prefix=/z/postgresqlmakemake installgroupadd postgresuseradd -g postgres postgresid postgresmkdir /z/postgresql/datachown postgres:postgres /z/postgresql/datacd /home/postgresls -alvi .bash_profile#内容追加
export PGHOME=/z/postgresql/
export PGDATA=/z/postgresql/data
PATH=$PATH:$HOME/bin:$PGHOME/binwq
source .bash_profile#初始化数据库
su - postgresinitdb#配置外部访问
cd /z/postgresql/datavi postgresql.conf 找到listen_addresses改动
listen_addresses = '*'wqvi pg_hba.conf
#内容追加
host    all             all             0.0.0.0/0               trustwq

设置开机启动

cd /z/postgresql/postgresql-12.0/contrib/start-scripts
#切换root账户  输入密码
su rootchmod a+x linuxcp linux /etc/init.d/postgresqlvi /etc/init.d/postgresql 
#找到prefix改为安装地址
prefix=/z/postgresql/
#找到PGDATA改为安装地址
PGDATA='/z/postgresql/data'wqchkconfig --add postgresqlservice postgresql start#显示ok
#使用工具连接   ip   5432  初始库postgres  账号/密码postgres

四:安装jira

cd /z/jira
./atlassian-jira-software-8.22.0-x64.bin
This will install Jira Software 8.22.0 on your computer.
OK [o, Enter], Cancel [c]
输入回车
Click Next to continue, or Cancel to exit Setup.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, Enter], Upgrade an existing Jira installation [3]
#选择自定义安装
输入2
Select the folder where you would like Jira Software to be installed.
Where should Jira Software be installed?
[/opt/atlassian/jira]
#自定义安装位置
/z/jira/opt/atlassian/jira
Default location for Jira Software data
[/var/atlassian/application-data/jira]
#自定义安装位置
/z/jira/var/atlassian/application-data/jiraConfigure which ports Jira Software will use.
Jira requires two TCP ports that are not being used by any other
applications on this machine. The HTTP port is where you will access Jira
through your browser. The Control port is used to startup and shutdown Jira.
Use default ports (HTTP: 8080, Control: 8005) - Recommended [1, Enter], Set custom value for HTTP and Control ports [2]
#使用默认端口
输入回车
Jira can be run in the background.
You may choose to run Jira as a service, which means it will start
automatically whenever the computer restarts.
Install Jira as Service?
Yes [y, Enter], No [n]
输入回车
Details on where Jira Software will be installed and the settings that will be used.
Installation Directory: /z/jira/opt/atlassian/jira
Home Directory: /z/jira/var/atlassian/application-data/jira
HTTP Port: 8080
RMI Port: 8005
Install as service: Yes
Install [i, Enter], Exit [e]
#确认安装信息
输入回车
Please wait a few moments while Jira Software is configured.Installation of Jira Software 8.22.0 is complete
Start Jira Software 8.22.0 now?
#是否启动
输入回车
Installation of Jira Software 8.22.0 is complete
Your installation of Jira Software 8.22.0 is now ready and can be accessed
via your browser.
Jira Software 8.22.0 can be accessed at http://localhost:8080
Finishing installation ...
#出现以上内容安装完成  ip:8080访问
第一步:选择推荐生产安装
如果是英文,请先右上角切换为中文第二步:数据库设置
选择其他数据库
数据库类型选择PostgreSQL
数据库填写jira
用户名:postgres
密码:postgres
模式:public	
点击测试连接  连接成功 点击下一步第三步:设置应用程序的属性
选择私有 其他不动
第四步:请指定您的许可证关键字
复制出来服务器ID
服务器 ID: BHHI-KNEQ-****-UCOW切回服务器视角cd /z/jira/opt/atlassian/jira/bin
#关闭
./shutdown.shvi setenv.sh
#追加
export JAVA_OPTS="-javaagent:/z/jira/atlassian-agent/atlassian-agent.jar ${JAVA_OPTS}"
wq#重新启动
./start-jira.sh
#进行绿色优化
cd /z/jira/atlassian-agent
#示例:java -jar atlassian-agent.jar -p jira -m aaa@bbb.com -n my_name -o http://192.168.2.10 -s BHHI-KNEQ-****-UCOW
java -jar atlassian-agent.jar -p jira -m aaa@bbb.com -n my_name -o http://自己服务IP -s 上面的服务器ID
生成license
复制到页面上面,然后点击下一步
第四步:设置管理员帐户
设置管理员信息 
全名:admin
账号: admin 
密码自定义 
邮箱自定义
第五步: 设置电子邮件通知
根据自己需求
第六步:Welcome to Jira, admin!
选择中文
结束!!!!#数据库创建
使用工具Navicat连接到PostgreSQL
创建数据库:jira
所有者选择:postgres
模板:postgres
其他不用填写

四:安装confluence

cd /z/confluence/./atlassian-confluence-8.5.21-x64.binThis will install Confluence 8.5.21 on your computer.
OK [o, Enter], Cancel [c]
输入回车
Choose the appropriate installation or upgrade option.
Please choose one of the following:
Express Install (uses default settings) [1],
Custom Install (recommended for advanced users) [2, Enter],
Upgrade an existing Confluence installation [3]
#自定义安装
输入2
Select the folder where you would like Confluence 8.5.21 to be installed,
then click Next.
Where should Confluence 8.5.21 be installed?
[/opt/atlassian/confluence]
#自定义安装位置
/z/confluence/opt/atlassian/confluence
Default location for Confluence data
[/var/atlassian/application-data/confluence]
#自定义安装位置
/z/confluence/var/atlassian/application-data/confluenceConfigure which ports Confluence will use.
Confluence requires two TCP ports that are not being used by any other
applications on this machine. The HTTP port is where you will access
Confluence through your browser. The Control port is used to Startup and
Shutdown Confluence.
Use default ports (HTTP: 8090, Control: 8000) - Recommended [1, Enter], Set custom value for HTTP and Control ports [2]
#使用默认端口
输入回车
Confluence can be run in the background.
You may choose to run Confluence as a service, which means it will start
automatically whenever the computer restarts.
Install Confluence as Service?
Yes [y, Enter], No [n]
输入回车
Please wait a few moments while we configure Confluence.Start Confluence now?
Yes [y, Enter], No [n]
输入回车
Your installation of Confluence 8.5.21 is now ready and can be accessed via
your browser.
Confluence 8.5.21 can be accessed at http://localhost:8090
SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details.
Finishing installation ...
#出现以上内容安装完成  ip:8090访问
第一步:选择推荐生产安装
如果是英文,请先右上角切换为中文
第二步:请指定您的许可证关键字
复制出来服务器ID
服务器 ID: BFA0-ZGCE-**-V980切回服务器视角
cd /z/confluence/opt/atlassian/confluence/bin
#关闭
./shutdown.shvi setenv.sh
#追加
export JAVA_OPTS="-javaagent:/z/confluence/atlassian-agent/atlassian-agent.jar ${JAVA_OPTS}"
wq#重新启动
./start-confluence.sh
#进行绿色优化
cd /z/confluence/atlassian-agent
#示例:java -jar atlassian-agent.jar -p jira -m aaa@bbb.com -n my_name -o http://192.168.2.10 -s BHHI-KNEQ-****-UCOW
java -jar atlassian-agent.jar -p conf -m aaa@bbb.com -n my_name -o http://自己服务IP -s 上面的服务器ID
生成license
复制到页面上面,然后点击下一步
第三步:数据库设置
选择其他数据库
数据库类型选择PostgreSQL
端口:5432
数据库填写confluence
用户名:postgres
密码:postgres	
点击测试连接  连接成功 点击下一步
结束!!!#数据库创建
使用工具Navicat连接到PostgreSQL
创建数据库:confluence
所有者选择:postgres
模板:postgres
其他不用填写

第五步:jira和confluence互相关联访问

1:登录confluence
选择空白或者示例站点
进入配置用户管理
选择在Confluence中管理用户和组
配置系统管理员帐户
用户名:admin(由于Confluence使用用户名登录,用户名需要和jira一致)
全名:admin
密码自定义(尽量和jira账号密码一致)2:登录jira
选择右上角设置 点击应用程序
集成-应用程序链接
创建链接
选择Atlassian 产品
地址填写:confluence的地址
示例:http://ip:8090
如果jira和confluence有相同的用户,就勾选下(服务器有相同的用户和用户名),后面就是一直账号密码输入认证然后重新登录jira就可以通过左上角进行confluence切换了结束!!!

第五步:jira用户同步confluence,用户统一jira管理

1: 登录jira
选择右上角设置 点击用户管理
设置jira用户服务器
ip设置为自己ip
密码:自定义
2: 登录confluence
选择右上角设置 点击用户管理
选择用户目录
添加目录
目录类型Atlassian jira
服务器的URL:http://jiraIp地址:端口
应用名:上面jira设置的
密码:上面jira设置的
点击测试设置 通过后点击测试保存

测试:

可以在jira添加一个用户
在confluence用户目录后面点击同步
然后使用jira用户登录confluence由于jira用户同步过来没有权限,所以需要调整confluence的权限
登录confluence
选择右上角设置 点击用户管理
选择全局权限
授权用户数-组
点击编辑权限
查找jira-administrators、jira-software-users组
并添加和设置权限,保存
后续jira设置新的组,这边需要添加下就可以
然后重新尝试登录就可以使用了
结束
http://www.xdnf.cn/news/482167.html

相关文章:

  • rinetd 实现通过访问主机访问虚拟机中的业务,调试虚拟机内的java进程
  • Qwen2.5-VL模型sft微调和使用vllm部署
  • TLS 1.3黑魔法:从协议破解到极致性能调优
  • 系统提示学习(System Prompt Learning)在医学编程中的初步分析与探索
  • 在Linux服务器上部署Jupyter Notebook并实现ssh无密码远程访问
  • 【Kubernetes】单Master集群部署(第二篇)
  • 15 C 语言字符类型详解:转义字符、格式化输出、字符类型本质、ASCII 码编程实战、最值宏汇总
  • 深度学习笔记23-LSTM实现火灾预测(Tensorflow)
  • Stratix 10 FPGA DDR4 选型
  • Visual Studio旧版直链
  • Elasticsearch 学习(一)如何在Linux 系统中下载、安装
  • 【简单模拟实现list】
  • 【PmHub后端篇】PmHub 中缓存与数据库一致性的实现方案及分析
  • c/c++的opencv的图像预处理讲解
  • 动态IP赋能业务增效:技术解构与实战应用指南
  • 1-10 目录树
  • 东方通2024年报分析:信创国产化龙头的蓬勃发展与未来可期
  • mysql的not exists走索引吗
  • uniapp-商城-60-后台 新增商品(属性的选中和页面显示)
  • MySQL——2、库的操作和表的操作
  • 割点与其例题
  • 管理工具导入CSV文件,中文数据乱码的解决办法。(APP)
  • 从类的外部访问静态成员:深入理解C#静态特性
  • C语言编程中的时间处理
  • 【学习笔记】机器学习(Machine Learning) | 第七章|神经网络(1)
  • Vue3中setup运行时机介绍
  • MyBatis—动态 SQL
  • 网安面试经(1)
  • MySQL8.x新特性:与mysql5.x的版本区别
  • SpringBoot--Bean管理详解