stream和http模块是同级
[root@node2 html]#yum install epel-release.noarch -y
[root@node2 html]#yum install redis -y
[root@node2 html]#systemctl start redis
[root@node3 html]#yum install epel-release.noarch -y
[root@node3 html]#yum install redis -y
[root@node3 html]#systemctl start redis
-h 指定主机;redis数据(内存数据库);
redis存在内存中,速度较快;mysql存在硬盘中,速度相对于redis较慢。
[root@localhost html]#vim /apps/nginx/conf/nginx.conf
[root@localhost html]#nginx -t
nginx: the configuration file /apps/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /apps/nginx/conf/nginx.conf test is successful
[root@localhost html]#nginx -s reload
[root@node2 html]#vim /etc/redis.conf
[root@node2 html]#systemctl restart redis
[root@node3 html]#vim /etc/redis.conf
[root@node3 html]#systemctl restart redis
[root@localhost html]#yum install epel-release.noarch -y
[root@localhost html]#yum install redis -y
[root@localhost html]#systemctl start redis