centos 如何使用yum快速安装redis,并且配置端口、授权密码以及后台启动。
[root@localhost /]# yum -y install redis
[root@localhost /]# cp /etc/redis.conf /etc/6666.conf #重新拷贝一下启动文件
[root@localhost /]# vim /etc/6666.conf
将其中的几处修改一下:
bind 127.0.0.1 这个注释掉,可以外网+内网访问
port 6379 这块把端口6379修改成6666
daemonize no 把no修改成yes,可以后台启动(必须得修改)
# requirepass foobared 将#注释去掉,把foobared 修改成自己需要的密码(必须得设置)
其他配置信息请参考个人博客
版权属于: 技术客
原文地址: https://www.sunjs.com/article/detail/1e055af53dff4b39ba273b3fb893abc4.html
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。