JIRA安装包:atlassian-jira-software-8.5.4-x64.bin
破解包:atlassian-agent-v1.2.3.tar_2.gz
Mysql驱动:mysql-connector-java-5.1.49.tar.gz
先把上面下载的软件包放到同一目录下,比如/home目录下,然后输入下面的命令进行安装:
./atlassian-jira-software-8.5.4-x64.bin
tar zxvf atlassian-agent-v1.2.3.tar_2.gz
tar zxvf mysql-connector-java-5.1.49.tar.gz
cp atlassian-agent-v1.2.3/atlassian-agent.jar /home/jira/
cp mysql-connector-java-5.1.49/mysql-connector-java-5.1.49-bin.jar /opt/atlassian/jira/atlassian-jira/WEB-INF/lib/
service jira start
过程如下:
[root@d07852d45604 home]# ./atlassian-jira-software-8.5.4-x64.bin
We couldn't find fontconfig, which is required to use OpenJDK. Press [y, Enter] to install it.
For more info, see https://confluence.atlassian.com/x/PRCEOQ
y
Installing fontconfig and dejavu sans fonts...
Loaded plugins: fastestmirror, ovl
Setting up Install Process
base | 3.7 kB 00:00
base/primary_db | 4.7 MB 00:23
extras | 3.4 kB 00:00
extras/primary_db | 29 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 9.9 MB 00:15
Resolving Dependencies
--> Running transaction check
---> Package fontconfig.x86_64 0:2.8.0-5.el6 will be installed
--> Processing Dependency: freetype >= 2.1.4 for package: fontconfig-2.8.0-5.el6.x86_64
--> Processing Dependency: libfreetype.so.6()(64bit) for package: fontconfig-2.8.0-5.el6.x86_64
--> Running transaction check
---> Package freetype.x86_64 0:2.3.11-19.el6_10 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===================================================================================================================================================================================================================
Package Arch Version Repository Size
===================================================================================================================================================================================================================
Installing:
fontconfig x86_64 2.8.0-5.el6 base 186 k
Installing for dependencies:
freetype x86_64 2.3.11-19.el6_10 updates 361 k
Transaction Summary
===================================================================================================================================================================================================================
Install 2 Package(s)
Total download size: 547 k
Installed size: 1.2 M
Downloading Packages:
(1/2): fontconfig-2.8.0-5.el6.x86_64.rpm | 186 kB 00:00
(2/2): freetype-2.3.11-19.el6_10.x86_64.rpm | 361 kB 00:00
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 376 kB/s | 547 kB 00:01
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Importing GPG key 0xC105B9DE:
Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <[email protected]>
Package: centos-release-6-10.el6.centos.12.3.x86_64 (@CentOS/6.10)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : freetype-2.3.11-19.el6_10.x86_64 1/2
Installing : fontconfig-2.8.0-5.el6.x86_64 2/2
Verifying : fontconfig-2.8.0-5.el6.x86_64 1/2
Verifying : freetype-2.3.11-19.el6_10.x86_64 2/2
Installed:
fontconfig.x86_64 0:2.8.0-5.el6
Dependency Installed:
freetype.x86_64 0:2.3.11-19.el6_10
Complete!
Loaded plugins: fastestmirror, ovl
Setting up Install Process
Determining fastest mirrors
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package dejavu-sans-fonts.noarch 0:2.33-1.el6 will be installed
--> Processing Dependency: dejavu-fonts-common = 2.33-1.el6 for package: dejavu-sans-fonts-2.33-1.el6.noarch
--> Running transaction check
---> Package dejavu-fonts-common.noarch 0:2.33-1.el6 will be installed
--> Processing Dependency: fontpackages-filesystem for package: dejavu-fonts-common-2.33-1.el6.noarch
--> Running transaction check
---> Package fontpackages-filesystem.noarch 0:1.41-1.1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===================================================================================================================================================================================================================
Package Arch Version Repository Size
===================================================================================================================================================================================================================
Installing:
dejavu-sans-fonts noarch 2.33-1.el6 base 2.2 M
Installing for dependencies:
dejavu-fonts-common noarch 2.33-1.el6 base 63 k
fontpackages-filesystem noarch 1.41-1.1.el6 base 8.8 k
Transaction Summary
===================================================================================================================================================================================================================
Install 3 Package(s)
Total download size: 2.2 M
Installed size: 5.3 M
Downloading Packages:
(1/3): dejavu-fonts-common-2.33-1.el6.noarch.rpm | 63 kB 00:00
(2/3): dejavu-sans-fonts-2.33-1.el6.noarch.rpm | 2.2 MB 00:03
(3/3): fontpackages-filesystem-1.41-1.1.el6.noarch.rpm | 8.8 kB 00:00
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 610 kB/s | 2.2 MB 00:03
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : fontpackages-filesystem-1.41-1.1.el6.noarch 1/3
Installing : dejavu-fonts-common-2.33-1.el6.noarch 2/3
Installing : dejavu-sans-fonts-2.33-1.el6.noarch 3/3
Verifying : fontpackages-filesystem-1.41-1.1.el6.noarch 1/3
Verifying : dejavu-sans-fonts-2.33-1.el6.noarch 2/3
Verifying : dejavu-fonts-common-2.33-1.el6.noarch 3/3
Installed:
dejavu-sans-fonts.noarch 0:2.33-1.el6
Dependency Installed:
dejavu-fonts-common.noarch 0:2.33-1.el6 fontpackages-filesystem.noarch 0:1.41-1.1.el6
Complete!
Unpacking JRE ...
Starting Installer ...
This will install JIRA Software 8.5.4 on your computer.
OK [o, Enter], Cancel [c]
o #这里输入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]
1 #这里输入1使用快速安装模式,即使用默认设置进行安装
Details on where JIRA Software will be installed and the settings that will be used.
Installation Directory: /opt/atlassian/jira
Home Directory: /var/atlassian/application-data/jira
HTTP Port: 8080
RMI Port: 8005
Install as service: Yes
Install [i, Enter], Exit [e]
i #这里输入i或者直接回车安装成JIRA服务,以后可以直接通过服务进行开关
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]
n #这里暂时先不启动,因为还需要复制Mysql数据库驱动和破解包
Installation of JIRA Software 8.5.4 is complete
Your installation of JIRA Software 8.5.4 is now ready.
Finishing installation ...
[root@d07852d45604 home]# tar zxvf atlassian-agent-v1.2.3.tar_2.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
[root@d07852d45604 home]# tar zxvf mysql-connector-java-5.1.49.tar.gz
[root@d07852d45604 home]# cp atlassian-agent-v1.2.3/atlassian-agent.jar /opt/atlassian/jira/atlassian-jira/WEB-INF/lib/
[root@d07852d45604 home]# cp mysql-connector-java-5.1.49/mysql-connector-java-5.1.49-bin.jar /opt/atlassian/jira/atlassian-jira/WEB-INF/lib/
这里在安装JIRA时都是按默认设置进行安装的。
安装完成后,修改配置文件/opt/atlassian/jira/bin/setenv.sh:
[root@d07852d45604 home]# vi /opt/atlassian/jira/bin/setenv.sh
把70行的
export JAVA_OPTS
替换成:
export JAVA_OPTS="-javaagent:/home/jira/atlassian-agent.jar ${JAVA_OPTS}"
现在可以启动JIRA了:
[root@d07852d45604 home]# service jira start
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 /opt/atlassian/jira/logs/catalina.out
Using CATALINA_BASE: /opt/atlassian/jira
Using CATALINA_HOME: /opt/atlassian/jira
Using CATALINA_TMPDIR: /opt/atlassian/jira/temp
Using JRE_HOME: /opt/atlassian/jira/jre/
Using CLASSPATH: /opt/atlassian/jira/bin/bootstrap.jar:/opt/atlassian/jira/bin/tomcat-juli.jar
Using CATALINA_PID: /opt/atlassian/jira/work/catalina.pid
Tomcat started.
[root@d07852d45604 home]#
JIRA服务启动后可以在浏览器中输入IP加端口进行访问了,JIRA默认端口为8080,通过下图所示,设置语言为中文,当然也可以不设置,默认为英文。
然后选择“我将设置它自己”,点“下一步"
进行数据库设置,如果只是演示用可以选择内置的数据库;如果是正式的生产环境选择其它数据库。JIRA支持的主流的数据库,通过数据库类型的选择设置好主机、端口、数据库名、用户名、密码等等,测试连接通过即可。如果是选择Mysql,建议使用Mysql5.6或者Mysql5.7,这样不容易出错。另外在创建数据库时建议选择UTF8编码,目前不支持UTF8MB4。如:
CREATE DATABASE jira CHARACTER SET UTF8 COLLATE utf8_general_ci;
点击“下一步”,进行数据库配置,需要等待一段时间。
然后把下图中的服务器ID记录下来。
使用下面的命令生成许可证:
/opt/atlassian/jira/jre/bin/java -jar /home/jira/atlassian-agent.jar -p jira -m [email protected] -n jira -o https://jira.com -s B9Q5-PTP1-WXO3-R3BZ
把生成的许可证字符串复制到页面中,点“下一步”。
其中:
-p jira(安装的是jira产品),具体的可以根据-p进行参考
-m [email protected](随意写)
-n jira(随意写)
-o https://jira.com (随意写)
-s B9Q5-PTP1-WXO3-R3BZ (即jira显示的服务器ID)
后面就根据页面操作即可。
如果页面配置失败或者想要重新配置实例,可以把原来的实例删除:
rm /var/atlassian/application-data/jira/* -rf
然后再重新进行Web页面配置。
参考:
https://www.jianshu.com/p/9ca92a191f36