顯示具有 Jira 標籤的文章。 顯示所有文章
顯示具有 Jira 標籤的文章。 顯示所有文章

2023/05/30

Ubuntu 22.04 LTS Install Jira 9.8.1

先輸入下方指令進行安裝以及資料庫設定
# Install package
sudo apt update -y
sudo apt install unzip fontconfig mariadb-server -y

# Setting MariaDB Server
sudo vim /etc/mysql/mariadb.conf.d/50-server.cnf

[mysqld]
default-storage-engine= INNODB
character_set_server = utf8mb4
innodb_default_row_format = DYNAMIC
innodb_large_prefix = ON
innodb_file_format = Barracuda
innodb_log_file_size = 2G
sql_mode = NO_AUTO_VALUE_ON_ZERO

sudo systemctl restart mariadb

# Create User and Database
sudo mysql
CREATE DATABASE jira CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'jirauser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL ON jira.* TO 'jirauser'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;
EXIT;

# Download & Install Jira
wget https://product-downloads.atlassian.com/software/jira/downloads/atlassian-jira-software-9.8.1-x64.bin
chmod a+x atlassian-jira-software-9.8.1-x64.bin
sudo ./atlassian-jira-software-9.8.1-x64.bin

We couldn't find fontconfig, which is required to use OpenJDK. Press [y, Enter] to install it.
y

This will install Jira Software 9.8.1 on your computer.
OK [o, Enter], Cancel [c]

Please choose one of the following:
Express Install (use default settings) [1], Custom Install (recommended for advanced users) [2, Enter], Upgrade an existing Jira installation [3]
2

Use default ports (HTTP: 8080, Control: 8005) - Recommended [1, Enter], Set custom value for HTTP and Control ports [2]
1

Install Jira as Service?
Yes [y, Enter], No [n]
y

Install [i, Enter], Exit [e]
i

Would you like Setup to overwrite it?
Yes [y], Yes to All [ya], No [n], No to All [na]
ya

Installation of Jira Software 9.8.1 is complete
Start Jira Software 9.8.1 now?
Yes [y, Enter], No [n]
y

# Add mysql jar for Jira
wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.30.zip
unzip mysql-connector-java-8.0.30.zip
sudo cp ./mysql-connector-java-8.0.30/mysql-connector-java-8.0.30.jar /opt/atlassian/jira/lib

# restart Jira
sudo /etc/init.d/jira stop && sudo /etc/init.d/jira start

安裝畫面選擇如下圖