Detailed installation tutorial of MySQL and Redis under Centos7.6
Next, let's learn about the detailed installation tutorials of MySQL and Redis under Centos7.6. I believe you will benefit a lot after reading it. The text is not much in essence. I hope the detailed installation tutorials of MySQL and Redis under Centos7.6 are what you want.
1. Download mysql at http://dev.mysql.com/get/mysq...
2. Use xftp to upload to the desired directory
3. Code operation to install and restart the mysql service
# rpm-ivh mysql-community-release-el7-5.noarch.rpm# yum install mysql-community-server# service mysqld restart
4. Set the root password for mysql
# mysql-u rootmysql > set password for 'root'@'localhost' = password (' your password'); mysql > flush privileges
5. Configure mysql coding
# vi / etc/ my.cnf [MySQL] default-character-set = utf8
6. Allow remote links to enter mysql
Mysql > grant all privileges on *. * to root@'%'identified by 'remote password'; mysql > flush privileges
7. Open port 3306, or turn off the firewall. I am in a virtual machine environment and use it myself. I turned off the firewall directly.
Systemctl stop firewalld.service # stop firewallsystemctl disable firewalld.service # disable firewall boot
Redis tutorial
1. Download redis at http://download.redis.io/rele...
2. Install gcc and other default requirements
Yum install-y gcc tcl
3. Decompress and install
# tar xzf redis-5.0.4.tar.gz# cd redis-5.0.4# make install
4. Modify redis.conf
Bind 0.0.0.0 # allows remote protected-mode no # to turn off protected mode daemonize yes # daemon mode on
5. Start redis
# cd src#. / redis-server. /.. / redis.conf
After reading this article on detailed installation tutorials for MySQL and Redis under Centos7.6, many readers will want to know more about it. For more industry information, you can follow our industry information section.