Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Detailed installation tutorial of MySQL and Redis under Centos7.6

2025-02-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report