关于如何在 centos 7 安装 MySQL 5.7.X,请看我的上篇文章Centos7 安装 MySQL 5.7.X
配置 MySQL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
shell>mysql -u root -p
mysql>create database jira_db default character set utf8 collate utf8_bin;
mysql>grant all privileges on jira_db.* to 'jira'@'%' identified by 'XXXXX' with grant option;
mysql>grant all privileges on jira_db.* to 'jira'@'localhost' identified by 'XXXXX' with grant option;
mysql>flush privileges;
mysql>exit
shell>mysql -u jira -p
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| jira_db |
+--------------------+
2 rows in set (0.00 sec)
# 当出现上面的情况时代表MySQL 数据库配置已经完成
shell>mkdir -p /opt/softs/atlassian
shell>cd /opt/softs/atlassian
shell>wget https://product-downloads.atlassian.com/software/jira/downloads/atlassian-jira-software-7.13.0-x64.bin
shell>chmod a+x atlassian-jira-software-7.13.0-x64.bin
shell>./atlassian-jira-software-7.13.0-x64.bin
# 对于第一次安装的新手而说,建议一路回车采用默认配置就可以了。下面是我安装流程
shell>./atlassian-jira-software-7.13.0-x64.bin
Unpacking JRE ...
Starting Installer ...
Dec 09, 2018 1:10:34 AM java.util.prefs.FileSystemPreferences$2 run
INFO: Created system preferences directory in java.home.
This will install JIRA Software 7.13.0 on your computer.
OK [o, Enter], Cancel [c]
o
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], Upgrade an existing JIRA installation [3, Enter]
Existing installation directory:
[/opt/atlassian/jira]
Back up JIRA home directory
The upgrade process will automatically back up your JIRA installation
directory. You can also choose to back up your existing JIRA home directory.
Both directories are backed up as zip archive files in their respective
parent directory locations.
We strongly recommend choosing this option in the unlikely event that you
experience problems with the upgrade and may require these backups to
restore your existing JIRA installation.
If you have many attachments in your JIRA home directory, the zip archive of
this directory may consume a significant amount of disk space.
Back up JIRA home directory?
Yes [y, Enter], No [n]
Checking for local modifications.
List of modifications made within JIRA directories.
The following provides a list of file modifications within the
atlassian-jira directory.
Modified files:
(none)
Removed files:
(none)
Added files:
lib/mysql-connector-java-5.1.47.jar
[Enter]
Checking if your instance of JIRA Software is running
Upgrade check list
Back up your external database
We strongly recommend you back up your JIRA Software database if you have
not already done so.
Please refer to the following URL for back up guidelines:
http://docs.atlassian.com/jira/jadm-docs-0713/Backing+up+data
Check plugin compatibility
Check that your non-bundled plugins are compatible with JIRA Software
7.13.0.
Access the plugin manager through the following URL:
http://localhost:8080/plugins/servlet/upm#compatibility
For more information see our documentation at the following URL:
http://docs.atlassian.com/jira/jadm-docs-0713/Upgrading+JIRA+applications
Please ensure you have read the above checklist before upgrading.
Your existing JIRA installation is about to be upgraded!
The upgrade process will shut down your existing JIRA installation to complete the upgrade.
Do you want to proceed?
Upgrade [u, Enter], Exit [e]
u
Your instance of JIRA is currently being upgraded.
Shutting down JIRA...
Checking if JIRA has been shutdown...
Backing up the JIRA installation directory
Backing up the JIRA home directory
Deleting the previous JIRA installation directory...
Extracting files ...
Please wait a few moments while JIRA Software is configured.
Installation of JIRA Software 7.13.0 is complete
Start JIRA Software 7.13.0 now?
Yes [y], No [n, Enter]
y
Please wait a few moments while JIRA Software starts up.
Launching JIRA Software ...
Installation of JIRA Software 7.13.0 is complete
Your installation of JIRA Software 7.13.0 is now ready and can be accessed
via your browser.
Custom modifications
Your previous JIRA installation contains customisations that must be
manually transferred. Refer to our documentation more information:
http://docs.atlassian.com/jira/jadm-docs-0713/Upgrading+JIRA+applications+manually#UpgradingJIRAapplicationsmanually-configuringnewjiraasold3.4MigrateyourexistingJIRAconfigurationsovertoyournewJIRAinstallation
JIRA Software 7.13.0 can be accessed at http://localhost:8080
JIRA Software may take several minutes to load on first start up.
Finishing installation ...