JIRA安装部署
使用现有mysql、JAVA环境
创库授权
create database jira default character set utf8 collate utf8_bin;
CREATE USER 'jira'@'%' IDENTIFIED BY 'jira';
grant all privileges on jira.* to 'jira'@'%' identified by 'jira';
flush privileges;
show grants for jira@'%';
安装KIRA,上传.bin文件,chmod+x授权后执行
./atlassian-jira-software-8.5.1-x64.bin
替换破解文件,将atlassian-extras-3.2.jar mysql-connector-java-5.1.42.jar放入以下路径
cd /opt/atlassian/jira/atlassian-jira/WEB-INF/lib
修改内存
vim /opt/atlassian/jira/bin/setenv.sh
MINIMUM=1024
MAXIMUM=4096
全新环境安装
安装mariadb JDK
yum -y install mariadb mariadb-server
systemctl start mariadb
systemctl enablemariadb
数据库配置
mysql_secure_installation
mysql_secure_installation
Enter current password for root (enter fornone):<–初次运行直接回车
设置密码
Set root password? [Y/n] <– 是否设置root用户密码,输入y并回车或直接回车
New password: <– 设置root用户的密码
Re-enter new password: <– 再输入一次你设置的密码
其他配置
Remove anonymous users? [Y/n] <– 是否删除匿名用户,回车
Disallow root login remotely? [Y/n] <–是否禁止root远程登录,回车,
Remove test database and access to it?[Y/n] <– 是否删除test数据库,回车
Reload privilege tables now? [Y/n] <– 是否重新加载权限表,回车
退出重新登录ok
mysql配置文件修改:
接下来配置MariaDB的字符集:
-> 首先是配置文件/etc/my.cnf,在[mysqld]标签下添加
init_connect='SET collation_connection =utf8_unicode_ci'
init_connect='SET NAMES utf8'
character-set-server=utf8
collation-server=utf8_unicode_ci
skip-character-set-client-handshake
max_allowed_packet=256M
transaction-isolation=READ-COMMITTED
接着配置文件/etc/my.cnf.d/client.cnf,在[client]中添加
default-character-set=utf8
-> 然后配置文件/etc/my.cnf.d/mysql-clients.cnf,在[mysql]中添加
default-character-set=utf8
安装JDK
下载后解压缩至/usr/local/java
配置环境变量
vim /etc/profile
export JAVA_HOME=/usr/local/java
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib
cd /usr/bin
ln -s -f /usr/local/java/bin/javac
ln -s -f /usr/local/java/jre/bin/java