【jira】ubuntu20.04安装配置jira-8.22.0
1. 官网
https://www.atlassian.com/software/jira/guides
https://docs.atlassian.com/software/jira/docs/api/
2. 安装mysql
https://www.cnblogs.com/fireblackman/p/15692363.html
3. 下载jira
wget https://downloads.atlassian.com/software/jira/downloads/atlassian-jira-software-8.22.0-x64.bin
4. 创建jira数据库
mysql -h localhost -u root -p
create database jira default character set utf8 collate utf8_bin; CREATE USER 'jira'@'localhost' IDENTIFIED BY 'jirapasswd'; GRANT ALL PRIVILEGES ON jira.* TO 'jira'@'localhost' WITH GRANT OPTION; FLUSH PRIVILEGES;
如果配置的时候报错,不支持的编码和字符集,执行下面修改一下
ALTER DATABASE `jira` DEFAULT CHARACTER SET utf8mb4 DEFAULT COLLATE utf8mb4_0900_ai_ci;
5. 安装jira, 根据提示对应选择即可
chmod 755 ./atlassian-jira-software-8.22.0-x64.bin sudo ./atlassian-jira-software-8.22.0-x64.bin
6. 初始化数据库
http://192.168.10.99:8070/secure/SetupDatabase.jspa
7. 查询mysql版本,下载mysql-connector-java-8.0.28.jar
下载链接:https://repo1.maven.org/maven2/mysql/mysql-connector-java/
mysql --version sudo cp mysql-connector-java-8.0.28.jar /opt/atlassian/jira/atlassian-jira/WEB-INF/lib/
可能会有权限问题
sudo chmod 755 /opt/atlassian/jira/atlassian-jira/WEB-INF/lib/mysql-connector-java-8.0.28.jar
8. 重启jira
cd /opt/atlassian/jira/ sudo ./bin/stop-jira.sh sudo ./bin/start-jira.sh
9. 重新测试链接
10. 初始化配置
11. 输入license, (没有,跳过)
按照提示,生成试用的密钥
配置管理员信息
选择语言
选择头像
尽情操作吧
至此完成
补充:
12.卸载
cd /opt/atlassian/jira && ls sudo bash uninstall
执行步骤如下:
master@master:/opt/atlassian/jira$ ls atlassian-jira CONTRIBUTING.md lib README.html temp work bin external-source licenses README.md tomcat-docs BUILDING.txt install.reg logs README.txt uninstall conf jre NOTICE setup_permissions.bat webapps master@master:/opt/atlassian/jira$ sudo bash uninstall [sudo] password for master: Before continuing, please ensure you have exported your data via Jira Software 8.22.0 Administration section. Are you ready to completely remove Jira Software 8.22.0 and all of its components? Yes [y, Enter], No [n] Uninstalling Jira Software 8.22.0 ... Jira Software 8.22.0 was successfully removed from your computer. Finishing uninstallation ...
然后删除对应目录
sudo rm -rf /opt/atlassian/jira sudo rm -rf /var/atlassian/application-data/jira
参考链接:
https://www.cnblogs.com/faberbeta/p/14391747.html
https://blog.csdn.net/dcsc_sss/article/details/79861989
https://blog.csdn.net/otoyix/article/details/118512701