1、安装centos系统
2、关闭防火墙 ---------systemctl stop firewall.service
3、查看防火墙状态 --- firewall-cmd --state
4、安装wget 包----------yum -y install wget
5、安装java环境
yum -y install java-1.8.0-openjdk.x86_64
6、下载jira 安装包
wget https://downloads.atlassian.com/software/jira/downloads/atlassian-jira-software-7.8.1-x64.bin
7、下载mysql源安装包包
[root@localhost home]# wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm
8、解压安装mysql源
[root@localhost home]# yum localinstall mysql57-community-release-el7-8.noarch.rpm
9、检查mysql源是否安装成功
[root@localhost home]# yum repolist enabled | grep "mysql.*-community.*"
mysql-connectors-community/x86_64 MySQL Connectors Community 74
mysql-tools-community/x86_64 MySQL Tools Community 74
mysql57-community/x86_64 MySQL 5.7 Community Server 307
9、安装mysql
[root@localhost home]# yum install mysql-community-serv
10、启动MySQL
[root@localhost home]# systemctl start mysqld
11、查看MySQL状态
[root@localhost home]# systemctl status mysqld
● mysqld.service - MySQL Server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2018-11-28 22:00:21 EST; 37min ago
Docs: man:mysqld(8)
http://dev.mysql.com/doc/refman/en/using-systemd.html
Process: 19804 ExecStart=/usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid $MYSQLD_OPTS (code=exited, status=0/SUCCESS)
Process: 19730 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS)
Main PID: 19808 (mysqld)
CGroup: /system.slice/mysqld.service
└─19808 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid
Nov 28 22:00:17 localhost.localdomain systemd[1]: Starting MySQL Server...
Nov 28 22:00:21 localhost.localdomain systemd[1]: Started MySQL Server.
12、设置开机启动
[root@localhost home]# systemctl enable mysqld
[root@localhost home]# systemctl daemon-reload
13、修改MySQL默认密码,初始密码在最后面
[root@localhost home]# grep 'temporary password' /var/log/mysqld.log
2018-11-29T03:00:18.501943Z 1 [Note] A temporary password is generated for root@localhost: -3&5n;rqj!mR
14、修改MySQL密码
[root@localhost home]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.7.24
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'Ecarx#2018';
Query OK, 0 rows affected (0.00 sec)
15,MySQL密码策略为强密码,如需修改,可以修改以下几个地方;不需修改可以忽略此步骤
show variables like '%password%'; 通过msyql环境变量可以查看密码策略的相关信息:
validate_password_policy:密码策略,默认为MEDIUM策略
validate_password_dictionary_file:密码策略文件,策略为STRONG才需要
validate_password_length:密码最少长度
validate_password_mixed_case_count:大小写字符长度,至少1个
validate_password_number_count :数字至少1个
validate_password_special_char_count:特殊字符至少1个
策略 检查规则
0 or LOW Length
1 or MEDIUM Length; numeric, lowercase/uppercase, and special characters
2 or STRONG Length; numeric, lowercase/uppercase, and special characters; dictionary file
修改密码策略
在/etc/my.cnf文件添加validate_password_policy配置,指定密码策略
# 选择0(LOW),1(MEDIUM),2(STRONG)其中一种,选择2需要提供密码字典文件
validate_password_policy=0
如果不需要密码策略,添加my.cnf文件中添加如下配置禁用即可:
validate_password = off
修改完之后需要重启数据库服务
systemctl restart mysqld
16、mysql相关配置文件
配置文件:/etc/my.cnf
日志文件:/var/log//var/log/mysqld.log
服务启动脚本:/usr/lib/systemd/system/mysqld.service
socket文件:/var/run/mysqld/mysqld.pid
17、创建jira 数据库
mysql> CREATE DATABASE jiradatabase CHARACTER SET utf8 COLLATE utf8_bin;
18、查看数据库
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| jiradatabase |
| mysql |
| performance_schema |
| sys |
+--------------------+
5 rows in set (0.00 sec)
19、创建访问jira数据库的账号和密码,账号密码自定义;
mysql> grant all on jira.* to 'jirauser'@'%' identified by 'xxxxxxxxx';
Query OK, 0 rows affected, 1 warning (0.00 sec)
20、给jira账号赋予远程访问权限
mysql> GRANT ALL PRIVILEGES ON *.* TO 'jirauser'@'%' IDENTIFIED BY 'Ecarx#2018' WITH GRANT OPTION;
Query OK, 0 rows affected, 1 warning (0.02 sec)
21、刷新权限即生效
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> exit
22、将jira的安装包改成755可以执行权限
chmod 755 atlassian-jira-software-7.8.1-x64.bin
23、正式安装jira
[root@localhost home]# ./atlassian-jira-software-7.8.1-x64.bin
Unpacking JRE ...
Starting Installer ...
Nov 29, 2018 12:40:08 AM java.util.prefs.FileSystemPreferences$2 run
INFO: Created system preferences directory in java.home.
This will install JIRA Software 7.8.1 on your computer.
OK [o, Enter], Cancel [c]
o
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
Where should JIRA Software be installed?
[/opt/atlassian/jira]
/ho ^H^H^H^H^[[3~^[[3~^Z
[1]+ Stopped ./atlassian-jira-software-7.8.1-x64.bin
[root@localhost home]# ./atlassian-jira-software-7.8.1-x64.bin
Unpacking JRE ...
Starting Installer ...
Nov 29, 2018 12:41:09 AM java.util.prefs.FileSystemPreferences$2 run
INFO: Created system preferences directory in java.home.
This will install JIRA Software 7.8.1 on your computer.
OK [o, Enter], Cancel [c]
o
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
Where should JIRA Software be installed?
[/opt/atlassian/jira]
/home/atlassian/jira
Default location for JIRA Software data
[/var/atlassian/application-data/jira]
/home/atlassian/application-data/jira
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]
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: /home/atlassian/jira
Home Directory: /home/atlassian/application-data/jira
HTTP Port: 8080
RMI Port: 8005
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 7.8.1 is complete
Start JIRA Software 7.8.1 now?
Yes [y, Enter], No [n]
n
Installation of JIRA Software 7.8.1 is complete
Your installation of JIRA Software 7.8.1 is now ready.
Finishing installation ...
24、如果安装中出现以下错误提示
[root@localhost home]# ./atlassian-jira-software-7.8.1-x64.bin
Unpacking JRE ...
Starting Installer ...
Nov 29, 2018 12:26:10 AM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
Nov 29, 2018 12:26:10 AM java.util.prefs.FileSystemPreferences$2 run
INFO: Created system preferences directory in java.home.
Could not display the GUI. This application needs access to an X Server.
*******************************************************************
You can also run this application in console mode without
access to an X server by passing the argument -c
*******************************************************************
请安装此文件包 dejavu-sans-fonts;
[root@localhost home]# yum install -y dejavu-sans-fonts
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.cn99.com
* extras: mirrors.163.com
* updates: mirrors.cn99.com
Resolving Dependencies
--> Running transaction check
---> Package dejavu-sans-fonts.noarch 0:2.33-6.el7 will be installed
--> Processing Dependency: dejavu-fonts-common = 2.33-6.el7 for package: dejavu-sans-fonts-2.33-6.el7.noarch
--> Running transaction check
---> Package dejavu-fonts-common.noarch 0:2.33-6.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================================================================
Installing:
dejavu-sans-fonts noarch 2.33-6.el7 base 1.4 M
Installing for dependencies:
dejavu-fonts-common noarch 2.33-6.el7 base 64 k
Transaction Summary
====================================================================================================================================================================================
Install 1 Package (+1 Dependent package)
Total download size: 1.5 M
通过23步骤,可以看出jira 已经安装到/home/atlassian/jira和/home/atlassian/application-data/jira目录下,并且jira监听的端口是8080。
jira的主要配置文件,存放在/opt/atlassian/jira/conf/server.xml文件中
vim /home/atlassian/jira/conf/server.xml
现在启动jira系统
[root@localhost bin]# ./startup.sh
.....
.... .NMMMD. ...
.8MMM. $MMN,..~MMMO.
.?MMM. .MMM?.
OMMMMZ. .,NMMMN~
.IMMMMMM. .NMMMN. .MMMMMN,
,MMMMMM$..3MD..ZMMMMMM.
=NMMMMMM,. .,MMMMMMD.
.MMMMMMMM8MMMMMMM,
.ONMMMMMMMMMMZ.
,NMMMMMMM8.
.:,.$MMMMMMM
.IMMMM..NMMMMMD.
.8MMMMM: :NMMMMN.
.MMMMMM. .MMMMM~.
.MMMMMN .MMMMM?.
Atlassian JIRA
Version : 7.8.1
现在我们先关闭jira,
[root@localhost bin]# ./shutdown.sh
.....
.... .NMMMD. ...
.8MMM. $MMN,..~MMMO.
.?MMM. .MMM?.
OMMMMZ. .,NMMMN~
.IMMMMMM. .NMMMN. .MMMMMN,
,MMMMMM$..3MD..ZMMMMMM.
=NMMMMMM,. .,MMMMMMD.
.MMMMMMMM8MMMMMMM,
.ONMMMMMMMMMMZ.
,NMMMMMMM8.
.:,.$MMMMMMM
.IMMMM..NMMMMMD.
.8MMMMM: :NMMMMN.
.MMMMMM. .MMMMM~.
.MMMMMN .MMMMM?.
Atlassian JIRA
Version : 7.8.1
然后把破解包里面的atlassian-extras-3.2.jar和mysql-connector-java-5.1.39-bin.jar两个文件复制到/opt/atlassian/jira/atlassian-jira/WEB-INF/lib/目录下。
[root@localhost home]# cp atlassian-extras-3.2.jar /home/atlassian/jira/atlassian-jira/WEB-INF/lib/
cp: overwrite ‘/home/atlassian/jira/atlassian-jira/WEB-INF/lib/atlassian-extras-3.2.jar’?
[root@localhost home]# cp mysql-connector-java-5.1.39-bin.jar /home/atlassian/jira/atlassian-jira/WEB-INF/lib/
其中atlassian-extras-3..2.jar是用来替换原来的atlassian-extras-3.2.jar文件,用作破解jira系统的。
而mysql-connector-java-5.1.39-bin.jar是用来连接mysql数据库的驱动软件包。
在重新启动jira
[root@localhost bin]# ./startup.sh
.....
.... .NMMMD. ...
.8MMM. $MMN,..~MMMO.
.?MMM. .MMM?.
25、打开浏览器输入 ip:8080页面安装
26、连接数据库
27、填完基本信息,点击测试连接,看看是否成功,再下一步
28、再下一步,会出现初始化下一步,要等会
29、相关数据库的配置文件如下
cat /home/atlassian/application-data/jira/dbconfig.xml
30.下一步
注意:上图中的Mode中,我们在此使用的是Private(私有)模式,在这个模式下,用户的创建需要由管理员创建。而在Public(共用)模式下,用户是可以自己进行注册。
32、下面这个页面是需要我们输入jira的license,如下
注意:上图中的Server ID:BSG9-24QF-8M40-O1CT
因为我们没有正式的license,所以需要我们在jira官网注册一个账号,注意,这里可能需要,注册最好是用Gmail,国内邮箱可能会收不到邮件。
33、然后利用这个账号申请一个可以试用30天的license,点击生成jira许可证。如下:
注意:这个图中的Server ID就是我们上面刚刚截图的Server ID。
/34、点击34、yes 上面的key 就会自动复制到你的许可征
35、设置管理员账号和密码
创建第一个项目,如下:
到此 jira 7.8的安装就好了,现在看看jira的破解
破解jira,其实我们已经破解了在前面复制atlassian-extras-3.1.2.jar到/opt/atlassian/jira/atlassian-jira/WEB-INF/lib/目录下时,再次启动jira时就已经破解了。
我们现在登陆到jira中查看授权信息,如下:
通过上图,我们可以很明显的看到jira我们可以使用到2033年,。到此有关jira的安装、破解就已经全部结束。
如何修改内存?
vim /home/atlassian/jira/bin/setenv.sh
[root@localhost bin]# cat /home/atlassian
atlassian/ atlassian-jira-software-7.8.1-x64.bin
atlassian-extras-3.2.jar atlassian-jira-software-7.8.1-x64.bin.1495.dir/
[root@localhost bin]# cat /home/atlassian/jira/bin/setenv.sh
#
# One way to set the JIRA HOME path is here via this variable. Simply uncomment it and set a valid path like /jira/home. You can of course set it outside in the command terminal. That will also work.
#
#JIRA_HOME=""
#
# Occasionally Atlassian Support may recommend that you set some specific JVM arguments. You can use this variable below to do that.
#
JVM_SUPPORT_RECOMMENDED_ARGS=""
#
# The following 2 settings control the minimum and maximum given to the JIRA Java virtual machine. In larger JIRA instances, the maximum amount will need to be increased.
#
JVM_MINIMUM_MEMORY="4096m"
JVM_MAXIMUM_MEMORY="8192m"
#
# The following are the required arguments for JIRA.
#
JVM_REQUIRED_ARGS='-Djava.awt.headless=true -Datlassian.standalone=JIRA -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dmail.mime.decodeparameters=true -Dorg.dom4j.factory=com.atlassian.core.xml.InterningDocumentFactory'
# Uncomment this setting if you want to import data without notifications
#
#DISABLE_NOTIFICATIONS=" -Datlassian.mail.senddisabled=true -Datlassian.mail.fetchdisabled=true -Datlassian.mail.popdisabled=true"
#-----------------------------------------------------------------------------------
#
# In general don't make changes below here
修改内存之前需要先关闭jira服务,修改完成之后再启动Jira 服务
日志查看:
tail -f /home/atlassian/jira/logs/catalina.out
最后放上福利:
链接:https://pan.baidu.com/s/1Fnmml6Lenj9sYI_GLUO-Ug
提取码:1xfr
如果链接失效了,请站内联系哦