下载JIRA软件包 #
https://www.atlassian.com/software/jira/free
wget https://downloads.atlassian.com/software/jira/downloads/atlassian-jira-software-8.22.0-x64.bin
安装好MYSQL #
(参见MySQL安装)
创建jira数据库 #
colin@colin-VirtualBox:~$ mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 20
Server version: 8.0.29-0ubuntu0.22.04.2 (Ubuntu)
Copyright (c) 2000, 2022, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create database jira default character set utf8 collate utf8_bin;
Query OK, 1 row affected, 2 warnings (0.02 sec)
mysql> create user 'jira'@'localhost' IDENTIFIED BY 'jira';
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
mysql> create user 'jira'@'localhost' IDENTIFIED BY 'Daibin@8';
Query OK, 0 rows affected (0.02 sec)
mysql> GRANT ALL PRIVILEGES ON jira.* TO 'jira'@'localhost' WITH GRANT OPTION;
Query OK, 0 rows affected (0.01 sec)
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.01 sec)
mysql> quit
Bye
colin@colin-VirtualBox:~$ mysql -ujira -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 21
Server version: 8.0.29-0ubuntu0.22.04.2 (Ubuntu)
Copyright (c) 2000, 2022, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
安装jira #
根据提示对应选择即可
colin@colin-VirtualBox:~/Downloads$ chmod 755 ./atlassian-jira-software-8.22.0-x64.bin
colin@colin-VirtualBox:~/Downloads$ sudo ./atlassian-jira-software-8.22.0-x64.bin
[sudo] colin 的密码:
Unpacking JRE ...
Starting Installer ...
This will install Jira Software 8.22.0 on your computer.
OK [o, Enter], Cancel [c]
o
Click Next to continue, or Cancel to exit Setup.
Choose the appropriate installation or upgrade option.
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]
1
The following default options cannot be used. You will be asked to provide alternatives for these options.
* HTTP Port (In use)
* Control Port (In use)
Configure which ports Jira Software will use.
Jira requires two TCP ports that are not being used by any other
applications on this machine. The HTTP port is where you will access Jira
through your browser. The Control port is used to startup and shutdown Jira.
Use default ports (HTTP: 8080, Control: 8005) - Recommended [1], Set custom value for HTTP and Control ports [2, Enter]
2
HTTP Port Number
[8080]
18080
Control Port Number
[8005]
18005
Details on where Jira Software will be installed and the settings that will be used.
Installation Directory: /opt/atlassian/jira
Home Directory: /var/atlassian/application-data/jira
HTTP Port: 18080
RMI Port: 18005
Install as service: Yes
Install [i, Enter], Exit [e]
i
Extracting files ...
Please wait a few moments while Jira Software is configured.
Installation of Jira Software 8.22.0 is complete
Start Jira Software 8.22.0 now?
Yes [y, Enter], No [n]
y
Please wait a few moments while Jira Software starts up.
Launching Jira Software ...
Installation of Jira Software 8.22.0 is complete
Your installation of Jira Software 8.22.0 is now ready and can be accessed
via your browser.
Jira Software 8.22.0 can be accessed at http://localhost:18080
Finishing installation ...
colin@colin-VirtualBox:~/Downloads$