MySQL教程# rpm -ivh mysql-community-release-el7-5.noarch.rpm# yum install mysql-community-server# service mysqld restart 4、设置mysql的root密码 # mysql -u rootmysql> set password for 'root'@'localhost' =password('你的密码');mysql> flush privileges;5、配置mysql编码 # vi /etc/my.cnf[mysqldefault-character-set =utf86、允许远程链接,进入mysql mysql> grant all privileges on *.* to root@'%'identified by '远程密码';mysql> flush privileges;7、开启3306端口,或者关闭防火墙,我是虚拟机环境且自己用的,我直接关了防火墙。 systemctl stop firewalld.service #停止firewallsystemctl disable firewalld.service #禁止firewall开机启动Redis教程2、安装gcc等默认需要的 yum install -y gcc tcl3、解压安装 # tar xzf redis-5.0.4.tar.gz# cd redis-5.0.4# make install4、修改redis.conf bind 0.0.0.0 #允许远程protected-mode no #关闭保护模式daemonize yes #守护进程模式开启5、启动redis # cd src# ./redis-server ./../redis.conf转自:https://cloud.tencent.com/developer/article/1412416
|