1,安装前准备
1.1,环境准备
你要先安装好Java和Mysql
1.2,Jira软件准备
你可以下载任意的8.x软件,我这里直接从Atlassian下载的是8.7.x版本
atlassian-jira-software-8.5.4-x64.bin
1.3,Jira破解包准备
打开 https://gitee.com/pengzhile/atlassian-agent/releases 下载 atlassian-agent.jar
将其下载到服务器某个目录下
1.4,Mysql链接包准备
从mysql的官网下载对应的链接包
mysql-connector-java-5.1.48.tar.gz
现在你应该准备好了以下内容
[root@...wh2h6as05hZ... package]# ll
total 1308844
-rw-r--r-- 1 root root 1016719 May 10 18:50 atlassian-agent-v1.2.3.tar.gz
-rwxrwxrwx 1 root root 388912276 May 10 18:43 atlassian-jira-software-8.5.4-x64.bin
-rw-r--r-- 1 root root 4456335 May 10 18:41 mysql-connector-java-5.1.48.tar.gz
2,开始安装
2.1,赋予执行权限
进入你下载好atlassian软件包的目录,同时你需要有执行的权限,如果没有可以使用一下命令
[root@...wh2h6as05hZ... package]#
chmod 777
atlassian-jira-software-8.5.4-x64.bin
2.2,创建安装目录
[root@...wh2h6as05hZ... local]# mkdir jira
[root@...wh2h6as05hZ... jiar]#
mkdir
soft
data
crack
2.3,开始安装
[root@...wh2h6as05hZ... package]# ./atlassian-jira-software-8.5.4-x64.bin
Unpacking JRE ...
Starting Installer ...
This will install JIRA Software 8.5.4 on your computer.
OK [o, Enter], Cancel [c]
o
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]
/usr/local/jira/soft
Default location for JIRA Software data
[/var/atlassian/application-data/jira]
/usr/local/jira/data
Configure 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]
2
HTTP Port Number
[8080]
8800
Control Port Number
[8005]
8805
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]
y
Details on where JIRA Software will be installed and the settings that will be used.
Installation Directory: /usr/local/jira/soft
Home Directory: /usr/local/jira/data
HTTP Port: 8800
RMI Port: 8805
Install as service: Yes
Install [i, Enter], Exit [e]
i
Extracting files ...
Please wait a few moments while JIRA Software is configured.
Installation of JIRA Software 8.5.4 is complete
Start JIRA Software 8.5.4 now?
Yes [y, Enter], No [n]
y
Please wait a few moments while JIRA Software starts up.
Launching JIRA Software ...
Installation of JIRA Software 8.5.4 is complete
Your installation of JIRA Software 8.5.4 is now ready and can be accessed
via your browser.
JIRA Software 8.5.4 can be accessed at http://localhost:8800
Finishing installation ...
能看到最后 Finishing 的话说明成功了,后面先关闭Jira的服务然后再操作其他。
2.4,关闭服务
[root@...wh2h6as05hZ... package]#
sudo /usr/local/jira/soft/bin/shutdown.sh
`sMMMMMMMMMMMMMM+
MMMMMMMMMMMMMM
:sdMMMMMMMMMMM
MMMMMM
`sMMMMMMMMMMMMMM+ MMMMMM
MMMMMMMMMMMMMM +MMMMM
:sMMMMMMMMMMM MMMMM
MMMMMM `UOJ
`sMMMMMMMMMMMMM+ MMMMMM
MMMMMMMMMMMMMM +MMMMM
:sdMMMMMMMMMM MMMMM
MMMMMM `UOJ
MMMMMM
+MMMMM
MMMMM
`UOJ
Atlassian Jira
Version : 8.5.4
If you encounter issues starting or stopping JIRA, please see the Troubleshooting guide at https://docs.atlassian.com/jira/jadm-docs-085/Troubleshooting+installation
Server startup logs are located in /usr/local/jira/soft/logs/catalina.out
Using CATALINA_BASE: /usr/local/jira/soft
Using CATALINA_HOME: /usr/local/jira/soft
Using CATALINA_TMPDIR: /usr/local/jira/soft/temp
Using JRE_HOME: /usr/local/jira/soft/jre/
Using CLASSPATH: /usr/local/jira/soft/bin/bootstrap.jar:/usr/local/jira/soft/bin/tomcat-juli.jar
Using CATALINA_PID: /usr/local/jira/soft/work/catalina.pid
PID file found but either no matching process was found or the current user does not have permission to stop the process. Stop aborted.
2.4.1,进程文件如果无法删除或者修改什么的可以先删除
[root@...wh2h6as05hZ... package]#
rm /usr/local/jira/soft/work/catalina.pid
rm: remove regular file '/usr/local/jira/soft/work/catalina.pid'?
y
2.5,安装Mysql链接包
先解压
[root@...wh2h6as05hZ... package]#
tar -zvxf mysql-connector-java-5.1.48.tar.gz
copy带bin的文件到atlassian安装目录
[root@...wh2h6as05hZ... mysql-connector-java-5.1.48]# ll
total 2452
-rw-r--r-- 1 root root 91845 Jul 11 2019 build.xml
-rw-r--r-- 1 root root 250554 Jul 11 2019 CHANGES
-rw-r--r-- 1 root root 18122 Jul 11 2019 COPYING
-rw-r--r-- 1 root root 1006959 Jul 11 2019 mysql-connector-java-5.1.48-bin.jar
-rw-r--r-- 1 root root 1006956 Jul 11 2019 mysql-connector-java-5.1.48.jar
-rw-r--r-- 1 root root 61407 Jul 11 2019 README
-rw-r--r-- 1 root root 63658 Jul 11 2019 README.txt
drwxr-xr-x 8 root root 79 Jul 11 2019 src
[root@...wh2h6as05hZ... mysql-connector-java-5.1.48]#
cp
mysql-connector-java-5.1.48-bin.jar
/usr/local/jira/soft/atlassian-jira/WEB-INF/lib/
2.6,copy破解包到固定的地方
之前我们创建了crack的目录,就是用来放破解包的
先解压
[root@...wh2h6as05hZ... package]#
tar -zvxf atlassian-agent-v1.2.3.tar.gz
._atlassian-agent-v1.2.3
atlassian-agent-v1.2.3/
atlassian-agent-v1.2.3/._LICENSE
atlassian-agent-v1.2.3/LICENSE
atlassian-agent-v1.2.3/atlassian-agent.jar
atlassian-agent-v1.2.3/._shasum.txt
atlassian-agent-v1.2.3/shasum.txt
atlassian-agent-v1.2.3/._README.pdf
atlassian-agent-v1.2.3/README.pdf
copy到crack目录
[root@...wh2h6as05hZ... package]#
cd atlassian-agent-v1.2.3/
[root@...wh2h6as05hZ... atlassian-agent-v1.2.3]#
cp
atlassian-agent.jar
/usr/local/jira/crack/
2.7,修改jira的配置文件
[root@...wh2h6as05hZ... atlassian-agent-v1.2.3]#
vim /usr/local/jira/soft/bin/setenv.sh
在下面添加命令
export JAVA_OPTS="-javaagent:/usr/local/jira/crack/atlassian-agent.jar ${JAVA_OPTS}"
JAVA_OPTS="-Xms${JVM_MINIMUM_MEMORY} -Xmx${JVM_MAXIMUM_MEMORY} ${JVM_CODE_CACHE_ARGS} ${JAVA_OPTS} ${JVM_REQUIRED_ARGS} ${DISABLE_NOTIFICATIONS} ${JVM_SUPPORT_RECOMMENDED_ARGS} ${JVM_EXTRA_ARGS} ${JIRA_HOME_MINUSD} ${START_JIRA_JAVA_OPTS}"
export JAVA_OPTS
>> export JAVA_OPTS="-javaagent:/usr/local/jira/crack/atlassian-agent.jar ${JAVA_OPTS}" <<
# DO NOT remove the following line
JAVA_HOME="/usr/local/jira/soft/jre/"; export JAVA_HOME
2.8, 启动服务
[root@iZbp18huwto3wh2h6as05hZ ~]# cd /usr/local/jira/soft/bin/
[root@iZbp18huwto3wh2h6as05hZ bin]# sudo ./start-jira.sh
To run JIRA in the foreground, start the server with start-jira.sh -fg
executing using dedicated user: jira
`sMMMMMMMMMMMMMM+
MMMMMMMMMMMMMM
:sdMMMMMMMMMMM
MMMMMM
`sMMMMMMMMMMMMMM+ MMMMMM
MMMMMMMMMMMMMM +MMMMM
:sMMMMMMMMMMM MMMMM
MMMMMM `UOJ
`sMMMMMMMMMMMMM+ MMMMMM
MMMMMMMMMMMMMM +MMMMM
:sdMMMMMMMMMM MMMMM
MMMMMM `UOJ
MMMMMM
+MMMMM
MMMMM
`UOJ
Atlassian Jira
Version : 8.5.4
If you encounter issues starting or stopping JIRA, please see the Troubleshooting guide at https://docs.atlassian.com/jira/jadm-docs-085/Troubleshooting+installation
Server startup logs are located in /usr/local/jira/soft/logs/catalina.out
Using CATALINA_BASE: /usr/local/jira/soft
Using CATALINA_HOME: /usr/local/jira/soft
Using CATALINA_TMPDIR: /usr/local/jira/soft/temp
Using JRE_HOME: /usr/local/jira/soft/jre/
Using CLASSPATH: /usr/local/jira/soft/bin/bootstrap.jar:/usr/local/jira/soft/bin/tomcat-juli.jar
Using CATALINA_PID: /usr/local/jira/soft/work/catalina.pid
Tomcat started.
出现下图启动成功
3,数据库配置
3.1,数据库端修改
验证数据库的ssl链接
数据库处于安全考虑,会自动启用SSL的链接方式,查看:
> SHOW VARIABLES LIKE '%ssl%';
数据库SSL链接
由于我们自己测试,没有在服务器上启用SSL的链接,因此需要关闭这个SSL的链接限制
找到my.cnf,添加以下内容
[root@...wh2h6as05hZ... bin]# find / -name my.cnf
/etc/my.cnf
[root@...wh2h6as05hZ... bin]# vim /etc/my.cnf
[mysqld]
#绕过ssl登录
skip_ssl
重启数据库服务
[root@iZbp18huwto3wh2h6as05hZ bin]# systemctl restart mysqld
再次验证
> SHOW VARIABLES LIKE '%ssl%';
数据库ssl关闭
3.2,Jira的链接中取消使用ssl链接
3.3,数据库中创建Jira相关的数据库等
atlassian公司贴心的提供了Jira链接数据库的指导网页
链接到mysql 5.7
https://confluence.atlassian.com/adminjiraserver085/connecting-jira-applications-to-mysql-5-7-981154582.html
3.3.1,创建数据库
> CREATE DATABASE jiradb CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
--------------------------------------------------
1 queries executed, 1 success, 0 errors, 0 warnings
查询:CREATE DATABASE jiradb CHARACTER SET utf8mb4 COLLATE utf8mb4_bin
共 1 行受到影响
执行耗时 : 0.006 sec
传送时间 : 1.001 sec
总耗时 : 1.008 sec
Jiradb数据库
3.3.2,创建对应的用户
> GRANT ALL ON *.* TO 'jira'@'localhost' IDENTIFIED BY '<PASSWORD>';
> FLUSH PRIVILEGES;
--------------------------------------------------
2 queries executed, 2 success, 0 errors, 1 warnings
查询:GRANT all on *.* TO 'jira'@'localhost' IDENTIFIED BY '<PASSWORD>'
共 0 行受到影响, 1 个警告
执行耗时 : 0.004 sec
传送时间 : 0 sec
总耗时 : 0.005 sec
注意:要查看所有警告的完整列表,请启用 工具 -> 首选项 -> 常规 -> 在信息选项卡下显示警告
--------------------------------------------------
查询:flush privileges
共 0 行受到影响
执行耗时 : 0.004 sec
传送时间 : 0 sec
总耗时 : 0.004 sec
3.3.3,修改mysql的my.cnf配置,添加或者修改如下配置
# 根据jira的要求进行配置
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
# 根据jira的要求进行配置
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
重启数据库服务
[root@...wh2h6as05hZ... bin]# systemctl restart mysqld
网友评论