3、安装mysql,并创建jira数据库及jira用户
(1)服务器配置mysql repo源
mysql下载网址:https://dev.mysql.com/downloads/repo/yum/,
下载mysql57-community-release-el6-11.noarch.rpm,然后上传到/usr/local/src
默认启用的是5.7,更改为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
(2)安装mysql
# yum clean all && yum install mysql-community-server -y
(3)启动mysql并设置自启
# /etc/init.d/mysqld start
(4) 初始化mysql并重置密码
# /usr/bin/mysql_secure_installation
(5) 创建jira数据库和jira用户
# mysql -uroot -p‘211212‘ -e "CREATE DATABASE jira CHARACTER SET utf8 COLLATE utf8_bin;grant all on jira.* to ‘jira‘@‘%‘ identified by ‘jirapasswd‘;"
(6) 测试jira连接
# mysql mysql -u jira -p jirapasswd # 连接成功
4、安装jira
(1)下载后安装jira
#cd /usr/local/src
#chmod a+x atlassian-jira-software-7.4.1-x64.bin
#sudo ./atlassian-jira-software-7.4.1-x64.bin
//使用默认安装,安装完成会启动jira
(2)启动jira
关闭已启动的jira,然后把破解包里面的atlassian-extras-3.2.jar和mysql-connector-java-5.1.42-bin.jar两个文件复制到/opt/atlassian/jira/atlassian-jira/WEB-INF/lib/目录下
#/opt/atlassian/jira/bin/stop-jira.sh # 停止jira
#/opt/atlassian/jira/bin/start-jira.sh # 启动jira
- 其中atlassian-extras-2.jar是用来替换原来的atlassian-extras-2.jar文件,用作破解jira系统的。
- 而mysql-connector-java-5.1.42-bin.jar是用来连接mysql数据库的驱动软件包
- 重新启动jira,访问ip:8080
访问jira 8080端口成功:
1、查看浏览器界面的nginx能不能拿到
2、如果拿不到,查看Linux系统是否安装nginx服务
查看iptable 是否关闭
3、拿到nginx,不能访问8080端口:
返回的错误是:http error 404
解决方法:删除jira服务,重新安装jira后,可以进入8080端口
4、设置jira
登陆http://localhost:8080界面进行配置
5、下载apache与subversion
(1)下载路径是:
(2)安装apache是报错为:no APR
下载apr及apr-util