Install wget
Command line: yum install wget
1) Go to the root user
>: cd ~
2) Download mysql57
>: wget http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
3) Installation mysql57
>: yum -y install mysql57-community-release-el7-10.noarch.rpm
>: yum -y install mysql-community-server
4) Start mysql57 and view the status of start
>: systemctl start mysqld.service
>: systemctl status mysqld.service
5) Review the default password and log in
>: grep "password" /var/log/mysqld.log >: mysql -uroot -p
6) Change Password
>: ALTER USER 'root'@'localhost' IDENTIFIED BY 'new password';
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The above is the installation and configuration mysql
The following is a mounting redis
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1) Go to the root user
>: cd ~
2) Download redis-5.0.5
>: wget http://download.redis.io/releases/redis-5.0.5.tar.gz
3) extracting installation package
>: tar -xf redis-5.0.5.tar.gz
4) into the target file
> Cd-repeat 5.0.5
5) compiler environment
>: make
6) Copy the installation environment to the specified path
>: cp -r ~/redis-5.0.5 /usr/local/redis
7) configuration redis background can start: modify the content below
>: vim /usr/local/redis/redis.conf
daemonize yes
8) to complete the configuration changes
>: esc >: :wq
9) establish flexible connection
>: ln -s /usr/local/redis/src/redis-server /usr/bin/redis-server
>: ln -s /usr/local/redis/src/redis-cli /usr/bin/redis-cli
10) running in the background redis
>: redis-server &
ctrl + c
11) Environmental Testing redis
>: redis-cli
ctrl + c
12) Close redis service
>: pkill -f redis -9