Centos7.6 install MySQL+Redis (latest version)

This blog [猫叔's blog] (https://unclecatmyself.github.io/), please state the source for reprinting

This series of tutorials is attached to [HMStrange Project] (https://github.com/UncleCatMySelf/HMStrange).

Historical articles##

MySQLtutorial##

1、 Download mysql, address: http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm 2. Use xftp to upload to the directory you want 3. Code operation, install and restart mysql service

# rpm -ivh mysql-community-release-el7-5.noarch.rpm
# yum install mysql-community-server
# service mysqld restart

4、 Set mysql root password

# mysql -u root
mysql>set password for'root'@'localhost'=password('Your password');
mysql> flush privileges;

5、 Configure mysql encoding

# vi /etc/my.cnf
[ mysql]default-character-set=utf8

6、 Allow remote link, enter mysql

mysql> grant all privileges on *.* to root@'%'identified by 'Remote password';
mysql> flush privileges;

7、 Open port 3306, or close the firewall. I am using a virtual machine environment and I use it myself, so I turned off the firewall directly.

systemctl stop firewalld.service    #Stop firewall
systemctl disable firewalld.service     #Prohibit firewall startup

Redistutorial##

1、 Download redis, address: http://download.redis.io/releases/redis-5.0.4.tar.gz

2、 Install gcc and other required by default

yum install -y gcc tcl

3、 Unzip 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  #Allow remote
protected-mode no #Turn off protection mode
daemonize yes #Daemon mode is on

5、 Start redis

# cd src
# . /redis-server ./../redis.conf

Recommended Posts

Centos7.6 install MySQL+Redis (latest version)
Centos install the latest version of cmake
Centos7 install k8s cluster 1.15.0 version
CentOS 8.0.1905 install ZABBIX4.4 version (verified)
1.5 Install Centos7
CentOS6 mininal install CouchDB2 detailed version
Install the latest OpenCV4.3 under Centos8
CentOS8 Chinese input method (2020-10-31 latest version) installation method
Centos6 install Python2.7.13
Install the latest Python 3.6 version on Ubuntu
CentOS7.2 install Mysql5.7.13
CentOS install Redmine
Centos7 install Python 3.6.
CentOS 7 install Docker
CentOS7 install GlusterFS
CentOS 7.4 install Zabbix 3.4
CentOS7 install Docker
Centos6.5 install Tomcat
CentOS install Python 3.6
Vmware install CentOS6
centos7 install docker-ce 18.01.0
CentOS 7.2 install MariaDB
Centos7 install Python2.7
Install mysql8.0.13 version under Linux CentOS7 system
CentOS 7.3 install Zabbix3
Centos7 install LAMP+PHPmyadmin
CentOS install mysql
CentOS install openjdk 1.8
CENTOS6.5 install CDH5.12.1 (1)
CentOS install PHP
CentOS6 install mist.io
Centos7 install Docker
centOs install rabbitMQ
Centos7 install Nginx
CentOS6.5 install CDH5.13
Centos7 install docker18
Centos install Python3
centos7 install docker
CentOS install jdk
centos7 install nginx-rtmp
CentOS8 install MySQL8.0
Centos6.3 install KVM
CentOS install PostgreSQL 9.1
CentOS 7 install Java 1.8
CentOS8 install fastdfs6.06
Centos 7 install PostgreSQL
CentOS7 install MySQL8
CentOS 7 install Java 1.8
CentOS 6 install Docker
centos 6.5 install zabbix 4.4
Centos8 install Docker
CentOS6.8 install python2.7
CentOS install nodejs 8
CentOS6.5 install GNS3
centos 7.5 install mysql5.7.17
Centos7 install MySQL8.0-manual
CentOS7 install Kubernetes 1.16.3
VirtualBox install centos7
centos7 install lamp
CentOS7 update the latest kernel | RPM directly install the kernel
Install centos7 and connect