# jira安裝具體步驟 1. 安裝docker ![image](https://img2023.cnblogs.com/blog/2627104/202307/2627104-20230705230931019-1424539379.png) 2. 啟動docker ![image](https ...
jira安裝具體步驟
-
安裝docker
-
啟動docker
-
上傳並解壓(tar -xvf)資料庫驅動(tar.gz),上傳破解jar包(atlassian-agent.jar)
-
運行命令,下載鏡像並啟動mysql容器
docker run --name mysql --restart always -p 3306:3306 -e MYSQL_ROOT_PASSWORD=wjj123456 -v mysql_data:/var/lib/mysql -v mysql_conf:/etc/mysql/conf.d -v mysql_backup:/backup -d mysql:5.7
-
進入/var/lib/docker/volumes/mysql_conf/_data/目錄,執行命令
vim mysql.cnf
[mysqld] default-storage-engine=INNODB character_set_server=utf8mb4 collation-server=utf8mb4_general_ci innodb_default_row_format=DYNAMIC innodb_large_prefix=ON innodb_file_format=Barracuda innodb_log_file_size=256M
接下來按順序執行以下命令:
docker exec -it mysql bash mysql -u root -p #(輸入剛纔資料庫配置的密碼) show databases; CREATE DATABASE jira CHARACTER SET utf8mb4 COLLATE utf8mb4_bin; GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER,INDEX on jira.* TO 'jira'@'%' IDENTIFIED BY 'jira'; GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,REFERENCES,ALTER,INDEX on jira.* TO 'jira'@'%' IDENTIFIED BY 'jira'; flush privileges; show databases; #查看是否有jira資料庫 exit exit #運行jira容器 docker run --name jira --restart always -e JVM_SUPPORT_RECOMMENDED_ARGS=-Duser.timezone=Asia/Shanghai -p 85:8080 -v jira_data:/var/atlassian/application-data/jira -v jira_opt:/opt/atlassian/jira -d atlassian/jira-software:8.8.0 docker ps #查看是否啟動 #在剛纔解壓的mysql-connector-java-5.1.49-bin.jar文件下執行以下命令 docker cp mysql-connector-java-5.1.49-bin.jar jira:/opt/atlassian/jira/atlassian-jira/WEB-INF/lib # atlassian-agent.jar文件下執行以下命令 docker cp atlassian-agent.jar jira:/opt/atlassian/jira/bin # 進入容器 docker exec -it jira bash # 進入下麵目錄 cd /opt/atlassian/jira/bin apt update apt install vim/vi vim setenv.sh #在文件末尾添加 export JAVA_OPTS="-javaagent:/opt/atlassian/jira/bin/atlassian-agent.jar ${JAVA_OPTS}" #重要: docker restart mysql docker restart jira #查看容器是否正常運行 docker ps #破解 java -jar atlassian-agent.jar -p jira -m [email protected] -n devops -o https://zhile.io -s BLUD-BFC2-CXIO-U191
按照指示填,即可破解成功!!!