Jira
仅用于学习,商业化推荐购买正版
Jira平台应用市场
可以看出这些应用供应商也是专业服务商长期更新的。
- 开始
目标是达到安装速度更快,解决Bug问题;
前期准备:
1, Linux: 使用Windows平台WSL Ubuntu ; (或者 docker desktop hub 镜像 );
2, jira:wget https://downloads.atlassian.com/software/jira/downloads/atlassian-jira-software-8.22.0-x64.bin
;
3,java JDK: sudo apt install openjdk-8-jre-headless
;
4, mysql: sudo apt install mysql-server mysql-client
(推荐选用);(或者预编译的二进制包:sudo apt download mysql-server mysql-client;如使用源码安装需要安装编译依赖)
5, Agent: download;
6, mysql-connector-java: listDownload ---- activeDownload
安装
- 1,安装 Mysql
(1, sudo apt install mysql-server mysql-client;
(2, 执行 sudo cat /etc/mysql/debian.cnf 得到密码;
(3, 进入数据库 mysql -u debian-sys-maint -p
(4, 执行:
Create database jira default character set utf8 collate utf8_bin;
CREATE USER 'jira'@'localhost' IDENTIFIED BY 'jira';
GRANT ALL PRIVILEGES ON jira.* TO 'jira'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;
(1, 使用Navicat or DbVisualizer 连接数据库查看;
;
- 2,安装 jira
(1, wget https://downloads.atlassian.com/software/jira/downloads/atlassian-jira-software-8.22.0-x64.bin;
(2, chmod 755 ./atlassian-jira-software-8.22.0-x64.bin;
(3, sudo ./atlassian-jira-software-8.22.0-x64.bin 按需选择安装;
- 3,配置 mysql-connector-java
(1, cd /opt/atlassian/jira/;
(2, sudo ./bin/shutdown.sh
(3, sudo cp mysql-connector-java-8.0.30.jar /opt/atlassian/jira/atlassian-jira/WEB-INF/lib/;(或者进入目录:wget https://repo1.maven.org/maven2/mysql/mysql-connector-java/8.0.30/mysql-connector-java-8.0.30.jar)
(4, 检查权限 chmod 755 filename;
- 4,配置Agent.jar
(1, 进入/opt/atlassian/jira; 执行 git clone <url>
;
(2, 把release目录的atlassian-agent.jar 复制到目录;
(3, 设置文件权限;(注意Agent.jar权限问题:chmod 755 filename && chown -R root:root filename; )
- 5,修改setenv.sh
(1, sudo vim bin/setenv.sh; 在文件下方加入一行:export JAVA_OPTS="-javaagent:/opt/atlassian/jira/atlassian-agent.jar ${JAVA_OPTS}"
- 6,启动应用
(1, 启动 sudo ./bin/start-jira.sh
(2, 浏览器进入localhost:8080, 配置数据库;(host:localhost\user:jira\pass:jira)
(3, 进入填写license 页面, 复制ID;
- 生成License 以下命令我放在了 /opt/atlassian/jira目录
(1, 执行 java -jar atlassian-agent.jar -d -m [email protected] -n BAT -p jira -o http://localhost:8080 -s 页面上的服务器ID;
(2, 生成的填写到localhost:8080> license 页面;
- 7,完成
其它
(1,Ubuntu mysql卸载使用apt remove mysql无法消除干净,可以使用apt purge mysql:
执行:
sudo apt purge mysql-*
sudo rm -rf /etc/mysql/ /var/lib/mysql
sudo apt autoremove
sudo apt autoclean