The JDK.

# JDK yum search Java | grep -i -- color JDK yum install Java -- 1.8.0 comes with its Java -- 1.8.0 comes with -- its devel CD/usr/lib/JVM/CD Java-1.8.0-openjdk-1.8.0.161-0.b14.el7_4.x86_64 / # Configure the environment variable vim /etc/profile # Add the following three lines at the end of the file (the specific path depends on the actual situation) export JAVA_HOME = / usr/lib/JVM/Java -- 1.8.0 comes with its 1.8.0.161-0. B14. El7_4. X86_64 export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar export PATH=$PATH:$JAVA_HOME/bin # # check whether the JDK is installed by pressing Java -version'Copy the code

MySQL 8.0 (GA)

MySQL official address RPM installation package of the MySQL Yum repository

Mysql > alter database

Obtain the YUM package in wGET mode

1. The wget dev.mysql.com/get/mysql80…

2. Install MySQL RPM installation package (Navicat for MySQL)

yum localinstall mysql80-community-release-el7-3.noarch.rpm

3. Install the mysql service. During the installation, a message is displayed asking you whether to continue to select Y

yum install mysql-community-server

Mysql -v Checks the version information

Start the MySql service systemctl start mysqld.service

Check the MySql service status systemctl status mysqld.service

Obtain the initial password sudo grep ‘temporary password’ /var/log/mysqld.log

Log in to mysql using the initial password -uroot -p

Mysql > alter mysql password strength; otherwise, do not set password such as 123456.

set global validate_password.policy=0;

set global validate_password.length=6;

ALTER USER ‘root’@’localhost’ IDENTIFIED BY ‘123456’; ALTER USER ‘root’@’localhost’ IDENTIFIED BY ‘123456’;

Enable remote connection :alter user ‘root’@’%’ identified with mysql_native_password by ‘123456’;

Remember to refresh the following :FLUSH PRIVILEGES;

Finally exit the mysql setting: exit

One of the most important things you need to do is add a security group and open ports to your cloud server

Maven installation preparation

Apache Maven address

1. Download: wget mirrors.tuna.tsinghua.edu.cn/apache/mave…

2. Run the tar command to decompress the tar.gz file :tar -zxvf apache-maven-3.6.3-bin.tar.gz

3. Move and change the maven3 name to mv apache-maven-3.6.3 /usr/local/maven3

4. Set environment variables:

export M2_HOME=/usr/local/maven3

export PATH=JAVA_HOME/bin:$M2_HOME/bin

Check whether the mvn-version command is configured successfully

3. Install Jenkins

This is the latest Jenkins LTS release: you can download it from Jenkins LTS. Tsinghua University mirror site, have a look, replace with the latest link

Wget mirrors.tuna.tsinghua.edu.cn/jenkins/red… Sudo yum install Jenkins – 2.164.2-1.1 noarch. RPM

2. Jenkins defaults to port 8080. If it conflicts with other programs, you can change the port number

vim /etc/sysconfig/jenkins

systemctl start jenkins.service

4. Change the default mirror source (can not change, I find it is similar to emM)

vim /var/lib/jenkins/hudson.model.UpdateCenter.xml

Amend the url to tsinghua university official mirror: mirrors.tuna.tsinghua.edu.cn/jenkins/upd…

5. Access

For example, my machine: http://ip:8099

6. Obtain the access key, copy it, and verify it

cat /var/lib/jenkins/secrets/initialAdminPassword

7. Click quick Install on the left

Docker and Docker-compose installation

1. Install the Docker CE

1.1. Install the required packages. Yum-utils provides yum-config-manager utility, and DEVICe-mapper-persistent-data and LVM2 require devicemapper to store drivers

sudo yum install -y yum-utils \ 
device-mapper-persistent-data \ 
 lvm2
Copy the code

1.2. Run the following command to set up a stable repository. Even if you still want to install builds from beta or test repositories, you always need a stable repository.

sudo yum-config-manager \ 
 --add-repo \ 
https://download.docker.com/linux/centos/docker-ce.repo
Copy the code

Sudo yum install docker-ce-y

Docker :systemctl enable docker && systemctl start Docker Check the version information: docker -v

Docker-compose installation

Docker, compose installation see: docs.docker.com/compose/ins… Docker-compose github query stable version: github.com/docker/comp…

The curl -l github.com/docker/comp… uname -s-uname -m -o /usr/local/bin/docker-compose

Add execution permission: chmod +x /usr/local/bin/docker-compose

Check the installed version: docker-compose –version

Install Git

yum install -y git

git –version