所需资料都在
链接:https://pan.baidu.com/s/1X-N0wBB9pb1D8u2pyzeqCw
提取码:cug2
下面是安装过程
1.安装Java 环境
rpm -ivh jdk-8u201-linux-x64.rpm
安装mysql
#查询mariadb
rpm -qa | grep mariadb
--mariadb-libs-5.5.65-1.el7.x86_64
#删除mariadb
rpm -e mariadb-libs-5.5.65-1.el7.x86_64 --nodeps
#安装mysql
yum install libaio.so.1 gcc gcc-c++ ncurses ncurses-devel cmake openssl-devel libaio perl net-tools -y
rpm -ivh mysql-community-* --force --nodeps
#配置数据库
vi /etc/my.cnf
default-storage-engine=INNODB
character_set_server=utf8
innodb_default_row_format=DYNAMIC
innodb_file_format=Barracuda
innodb_log_file_size=2G
sql_mode=ONLY_FULL_GROUP_BY,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
#启动数据库
systemctl start mysqld
systemctl enable mysqld
#查看默认密码登入数据库
cat /var/log/mysqld.log |grep password
#重置密码
mysql -uroot -p-W+GwPFi?5e6
mysql> set global validate_password_policy=0;
mysql> set global validate_password_number_count=0;
mysql> set global validate_password_special_char_count=0;
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'Password01!';
mysql> CREATE USER 'root'@'%' IDENTIFIED BY 'Password01!';
mysql> grant all privileges on *.* to root@'%';
mysql> CREATE DATABASE jira CHARACTER SET utf8 COLLATE utf8_bin;
mysql> GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,REFERENCES,ALTER,INDEX on jira.* TO 'jira'@'%' IDENTIFIED BY 'Password01!';
mysql> flush privileges;
下载破解和mysql 驱动
在网盘中
安装Jira
#下载Jira https://product-downloads.atlassian.com/software/jira/downloads/atlassian-jira-software-8.10.0-x64.bin 并放到根目录下
#执行包
chmod +x atlassian-jira-software-8.10.0-x64.bin
./atlassian-jira-software-8.10.0-x64.bin
#根据提示默认安装就好
停止jira
/etc/init.d/jira stop
chown -R jira:jira /var/atlassian/application-data/jira
chown -R jira:jira /opt/atlassian/jira/logs
chown -R jira:jira /opt/atlassian/jira/temp
chown -R jira:jira /opt/atlassian/jira/work
chmod -R u=rwx,g=rx,o=rx /var/atlassian/application-data/jira
chmod -R u=rwx,g=rx,o=rx /opt/atlassian/jira/logs
chmod -R u=rwx,g=rx,o=rx /opt/atlassian/jira/temp
chmod -R u=rwx,g=rx,o=rx /opt/atlassian/jira/work
cd /opt/atlassian/jira/logs
mv catalina.out catalina.out_bak
-
将MySQL驱动文件和破解包放入到/opt/atlassian/jira/atlassian-jira/WEB
tar -xf mysql-connector-java-5.1.49.tar.gz
cd mysql-connector-java-5.1.49
cp *.jar /opt/atlassian/jira/atlassian-jira/WEB-INF/lib-
加入破解文件
#移除原有文件
cd /opt/atlassian/jira/atlassian-jira/WEB-INF/lib
mv atlassian-extras-3.2.jar /opt
cp /root/atlassian-extras-3.2.jar /opt/atlassian/jira/atlassian-jira/WEB-INF/lib
-
-
启动jira
/etc/init.d/jira start
配置jiara
注意这里需要选5.6
因为我们没有正式的license,所以需要我们在jira官网注册一个账号,然后利用这个账号申请一个可以试用30天的license,点击生成jira许可证。如下