合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
【Windows版下载地址】 https://github.com/MicrosoftArchive/redis/releases ``` cd /usr/local mkdir resource cd resource wget http://download.redis.io/releases/redis-5.0.7.tar.gz tar -xzvf redis-5.0.7.tar.gz 检查是否安装了gcc gcc 安装gcc yum install gcc 安装tcl yum install tcl cd redis-5.0.7/ make MALLOC=libc make test (如果出现问题,删除redis文件夹,然后重新进行test) mkdir /usr/local/soft cd /usr/local/soft mkdir redis5 cd redis5 mkdir bin mkdir conf cd bin cp /usr/local/resource/redis-5.0.7/src/redis-cli ./ cp /usr/local/resource/redis-5.0.7/src/redis-server ./ cd ../conf/ cp /usr/local/resource/redis-5.0.7/redis.conf ./ vim redis.conf # daemonize no daemonize yes # maxmemory <bytes> maxmemory 128MB /usr/local/soft/redis5/bin/redis-server /usr/local/soft/redis5/conf/redis-6379.conf netstat -anp | grep 6379 /usr/local/soft/redis5/bin/redis-server -v vim /lib/systemd/system/redis.service [Unit] Description=Redis After=network.target [Service] Type=forking PIDFile=/var/run/redis_6379.pid ExecStart=/usr/local/soft/redis5/bin/redis-server /usr/local/soft/redis5/conf/redis.conf ExecReload=/bin/kill -s HUP $MAINPID ExecStop=/bin/kill -s QUIT $MAINPID PrivateTmp=true [Install] WantedBy=multi-user.target systemctl daemon-reload 进入redis /usr/local/soft/redis5/bin/redis-cli ``` centos8安装redis https://www.cnblogs.com/architectforest/p/12325230.html Linux下进行redis的安装和配置(开启远程连接) https://www.cnblogs.com/junjun511/p/11299575.html 启动redis: 进入所在目录,执行./redis-server,启动redis服务 进入所在目录,执行./redis-cli,打开redis服务 本地启动 /usr/local/source/redis-5.0.7/src/redis-cli -h 127.0.0.1 -p 6379 Linux下连接redis步骤,连接指定服务和端口: https://www.runoob.com/redis/redis-connection.html