Install JDK11, MySQL8.0, Minio and other software on CentOS Linux (rpm script mode)

Local environment: Windows 10 Home Edition + 16G memory + 512G hard disk
Software: VMWare WorkStation 16.0
FinalShell 4.0.1

1. Download the necessary software packages

The download software all chooses the x86 architecture 64-bit! ! ! (You can choose according to your own computer configuration)

CentOS Linux mirror iso file :
https://mirrors.tuna.tsinghua.edu.cn/centos/7.9.2009/isos/x86_64/
insert image description here

FinalShell download address :
http://www.hostbuf.com/

MySQL 8.0.33 rpm包
https://dev.mysql.com/downloads/mysql/
insert image description here

JDK11.0 package :
https://repo.huaweicloud.com/java/jdk/11.0.2+9/
insert image description here

Minio rpm package :
https://dl.min.io/server/minio/release/linux-amd64/
insert image description here

2. Actual combat script

2.1 Script to install JDK11

insert image description here
insert image description here
After uploading the installation script and installation package, you need to give jdk11_install.shthe script file execution permission, the command is as follows:

chmod 777 jdk11_install.sh

After the command is executed, the file will turn green
in the above picture Note: If there is a permission problem, you must first authorize the jdk to the user

提示: bash: /usr/java/jdk1.8/bin/java: insufficient permissions

Solution: chmod +x /usr/java/jdk1.8/bin/java

  1. chmod: method to change permissions
  2. +: Represents adding permissions
  3. x: Represents execution permission

Just execute the script directly.
Note: There is no script provided here, you can refer to the link below to write it yourself

For script content, please refer to:
Installing JDK 11 on CentOS7.6

The latest Centos 8.5.2111丨JDK installation & uninstallation & running Jar

2.2 Install MySQL script

Same as above, create a new folder /usr/local/under the folder , upload the MySQL rpm tar package here, and upload the script in addition.名为mysql
insert image description here

After uploading the installation script and installation package, you need to give mysql_install(8.0).shthe script file execution permission, the command is as follows:

chmod 777 mysql_install(8.0).sh

After the command is executed, the file will turn green
in the figure above , just execute the script directly.
Note: There is no script provided here, you can refer to the link below to write it yourself

For script content, please refer to:
RPM method of installing MySQL on CentOs7

Install MySQL5.7.31 in CentOS ------ use the RPM installation package collection of rpm-bundle.tar to install

Install MySQL5.7 on Linux

2.3 Minio installation script

Same as above, create a new folder /usr/local/under the folder , upload the rpm package of Minio here, and also upload the script.名为minio
insert image description here

After uploading the installation script and installation package, you need to give minio_install.shthe script file execution permission, the command is as follows:

chmod 777 minio_install.sh

After the command is executed, the file will turn green
in the figure above , just execute the script directly.
Note: There is no script provided here, you can refer to the link below to write it yourself

Script content can refer to:
centos7 environment installation stand-alone version MinIo background self-start

Linux (centos7+/redhat7+) system rpm offline installation minio graphic detailed explanation

Centos 7 installation series (9): Minio (rpm mode)

According to feedback from netizens: To share this running script, please refer to the blog link below

Are you sure you don't want to take a look? One-click installation and configuration of related services on CentOS7 system (install MySQL8, JDK11, Minio, Redis6.2, gcc environment in rpm mode in offline mode), save you worry and effort! :

https://blog.csdn.net/qq_44723773/article/details/131728508

Guess you like

Origin blog.csdn.net/qq_44723773/article/details/131614256