介绍有关jira的相关安装与破解。html
jdk安装1.8版本以上java
安装mysql以后,要为jira建立对应的数据库、用户名和密码:mysql
mysql -u root -p 'root用户密码' -e “create database jira default character set utf8 collateutf8_bin;grant all on jira.* to 'jira'@'%' identified by 'jira用户密码';”git
或者github
mysql -u root -p ‘root用户密码’ :mysql的root帐户登陆 web
mysql>create database jira default character set utf8 collateutf8_bin; :建立一个jira数据库 sql
mysql>grant all on jira.* to 'jira'@'%' identified by 'jira用户密码'; :jira用户能够经过任何主机链接到jira数据库 数据库
mysql>flush privileges; :使修改生效 服务器
1)jira7.2.2安装包下载:app
jira7.2.2安装包下载:
wget https://downloads.atlassian.com/software/jira/downloads/atlassian-jira-software-7.2.2-x64.bin
jira7.2破解包下载:
https://page00.ctfile.com/fs/15323800-217439079
jira7.3.8 版本已经不须要下载中文语言包安装包里面已经包含中文,并且jira7.2.2版本的中文语言包,官方已经取消再也不提供。
jira7.3.8安装包下载:
wget https://downloads.atlassian.com/software/jira/downloads/atlassian-jira-software-7.3.8-x64.bin
jira7.3.8破解包下载:
https://page00.ctfile.com/fs/15323800-217438995
jira7.3.8破解方法和jira7.2.2同样。
2)开始安装与破解
chmod 755 ./atlassian-jira-software-7.2.2-x64.bin
./atlassian-jira-software-7.2.2-x64.bin
-----------------------------------------------------下面是安装选择:----------------------------------------------------
[root@hdserver5 jira]# ./atlassian-jira-software-7.2.2-x64.bin
Unpacking JRE ...
Starting Installer ...
Aug 29, 2014 3:29:28 PM java.util.prefs.FileSystemPreferences$2 run
INFO: Created system preferences directory in java.home.
This will install JIRA 6.0.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 6.0.1 be installed?
[/opt/atlassian/jira]
/usr/local/jira (安装目录)
Default location for JIRA data
[/var/atlassian/application-data/jira]
/usr/local/jira_data (主目录、home目录)
Configure which ports JIRA 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]
1 (使用默认端口,若端口被占用可更改。http端口登录网页用)
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
Extracting files ...
Please wait a few moments while JIRA starts up.
Launching JIRA ...
Installation of JIRA 6.0.1 is complete
Your installation of JIRA 6.0.1 is now ready and can be accessed via your
browser.
JIRA 6.0.1 can be accessed at http://localhost:8080
--------------------------------------------------------------------------------------------------------------------------------------
如今咱们先关闭jira,而后把破解包里面的atlassian-extras-3.1.2.jar和mysql-connector-java-5.1.39-bin.jar(mysql驱动器)两个文件复制到/opt/atlassian/jira/atlassian-jira/WEB-INF/lib/目录下。
其中atlassian-extras-3.1.2.jar是用来替换原来的atlassian-extras-3.1.2.jar文件,用做破解jira系统的。
而mysql-connector-java-5.1.39-bin.jar是用来链接mysql数据库的驱动软件包。
如今再次启动jira
可经过:jira安装目录/bin/start-jira.sh,启动jira服务
3)可登录 http://localhost:8080 到jira配置页面
登录配置页面的一些报错:
1.没法显示该网页:
1)多是服务器防火墙设置太高
2)若是是云上面的系统,也多是服务器所在的云没有开设8080这个端口,这个要本身添加
2.Configured jira.home '/opt/atlassian/jira' must not be a parent directory of the webapp servlet path '/opt/atlassian/jira/jira-5.2.6/atlassian-jira'.
jira-application.properties
文件并将' jira.home
'属性的值设置 为JIRA主目录所需的位置
server.xml
文件
<Context ...> ... <Parameter name="jira.home" value="c:/jira/home"/> ... </Context>
3)配置环境变量 export JIRA_HOME=
请注意:若是您为文件和环境变量中jira.home
的属性指定了不一样的值,则环境变量的值优先。 3)覆盖2),2)覆盖1)
请注意: 最后将<jira-home>目录给jira用户(可能随机生成jira实例)rwx权限
chmod 777 ./<jira-home>
3.选择本身的Mysql数据库的时候,报错Could not find driver with class name: com.mysql.jdbc.Driver
将 mysql-connector-java-5.1.39-bin.jar(mysql驱动器)两个文件复制到 安装目录/lib 目录下,再重启JIRA后链接试一下。
若仍是没法链接,则换一个数据库链接驱动器。
https://github.com/yurii-github/mysql-connector-j/blob/release/5.1/mysql-connector-java-5.1.38-SNAPSHOT-bin.jar
4)jira配置页面破解
参考后半部分: 点击打开连接