vitasfly 2018-07-18
mini安装centos7
更新yum源
yum -y install net-tools wget lrzsz lsof mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup cd /etc/yum.repos.d/ wget http://mirrors.163.com/.help/CentOS7-Base-163.repo yum clean all yum makecache yum -y update yum -y install pcre pcre-devel openssl openssl-devel gcc-c++
卸载selinux,停防火墙
yum -y remove selinux* systemctl stop firewalld.service systemctl disable firewalld.service
安装jdk
cd /home/ rpm -ivh jdk-8u171-linux-x64.rpm
检查jdk
java -version
输出
java version "1.8.0_171" Java(TM) SE Runtime Environment (build 1.8.0_171-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)
安装mysql5.6
rpm -ivh mysql57-community-release-el7-11.noarch.rpm
接下来设置yum,直接安装是mysql5.7的,设置为5.6
vi /etc/yum.repos.d/mysql-community.repo
将mysql5.6设为启动
# Enable to use MySQL 5.6 [mysql56-community] name=MySQL 5.6 Community Server baseurl=http://repo.mysql.com/yum/mysql-5.6-community/el/7/$basearch/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql [mysql57-community] name=MySQL 5.7 Community Server baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/7/$basearch/ enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql查看启动情况
yum repolist all | grep mysql
mysql-cluster-7.5-community/x86_64 MySQL Cluster 7.5 Community 禁用 mysql-cluster-7.5-community-source MySQL Cluster 7.5 Community - Sou 禁用 mysql-cluster-7.6-community/x86_64 MySQL Cluster 7.6 Community 禁用 mysql-cluster-7.6-community-source MySQL Cluster 7.6 Community - Sou 禁用 !mysql-connectors-community/x86_64 MySQL Connectors Community 启用: 51 mysql-connectors-community-source MySQL Connectors Community - Sour 禁用 !mysql-tools-community/x86_64 MySQL Tools Community 启用: 63 mysql-tools-community-source MySQL Tools Community - Source 禁用 mysql-tools-preview/x86_64 MySQL Tools Preview 禁用 mysql-tools-preview-source MySQL Tools Preview - Source 禁用 mysql55-community/x86_64 MySQL 5.5 Community Server 禁用 mysql55-community-source MySQL 5.5 Community Server - Sour 禁用 !mysql56-community/x86_64 MySQL 5.6 Community Server 启用: 395 mysql56-community-source MySQL 5.6 Community Server - Sour 禁用 mysql57-community/x86_64 MySQL 5.7 Community Server 禁用 mysql57-community-source MySQL 5.7 Community Server - Sour 禁用 mysql80-community/x86_64 MySQL 8.0 Community Server 禁用 mysql80-community-source MySQL 8.0 Community Server - Sour 禁用
安装mysql
yum -y install mysql-community-server
启动mysql
systemctl start mysqld
设置mysql密码
mysql_secure_installation
配置数据库
mysql -u root -p
create database jiradb character set utf8 collate utf8_bin; grant all on jiradb.* to jira@"%" identified by "12qwaszx"; grant all on jiradb.* to jira@"localhost" identified by "12qwaszx"; flush privileges;
create database confluencedb character set utf8 collate utf8_bin; grant all on confluencedb.* to confluence@"%" identified by "12qwaszx"; grant all on confluencedb.* to confluence@"localhost" identified by "12qwaszx"; flush privileges;
安装jira
tar -zxvf atlassian-jira-software-7.11.0.tar.gz mv atlassian-jira-software-7.11.0-standalone/ /usr/local/jira mkdir -p /var/jira vi ~/.bash_profile export JIRA_HOME=/var/jira
安装mysql连接器
cd /home/ tar -zvxf mysql-connector-java-5.1.46.tar.gz cd mysql-connector-java-5.1.46 cp mysql-connector-java-5.1.46-bin.jar /usr/local/jira/atlassian-jira/WEB-INF/lib/启动jira
cd /usr/local/jira/bin ./start-jira.sh
jira配置授权码
在官网注册账号,安装提示生成license,提供30天试用期。
安装成功的界面如下,jira是自带中文包的,可以设置英文和中文
破解jira
cp atlassian-extras-3.2.jar /usr/local/jira/atlassian-jira/WEB-INF/lib/ /usr/local/jira/bin/stop-jira.sh /usr/local/jira/bin/start-jira.sh