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).
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
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