Linux系统安装Redis
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
1. 官网下载
地址:http://redis.io/download,这里我下载的是最新版5.0.3版本
2. 上传并解压
cd /usr/local
mkdir redis
cd redis
3. 配置
进入解压完的redis目录
[root@xxxxxx redis-5.0.3]# ll
编译:
make install PREFIX=/usr/redis
拷贝redis配置文件至安装目录:
cp /usr/local/redis/redis-5.0.6/redis.conf /usr/local/redis/bin/
# vi ./redis.conf,更改以下配置,wq保存并推出
bind 0.0.0.0
daemonize yes
requirepass 123456
bind:0.0.0.0 #允许所有ip访问,默认为127.0.0.1只允许本机访问(或者执行如下图命令,from mykt)
daemonize yes #需要把redis放在后台运行,默认redis不在后台运行
requirepass 123456 #远程连接密码
服务器添加安全组规则,将6379端口号加进去:
4. 启动
前台启动 [root@xxx bin]# ./redis-server
后台启动
[root@xxx bin]# ./redis-server redis.conf
出现如下信息,则代表启动成功
16972:C 09 Jan 2019 17:25:27.408 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
16972:C 09 Jan 2019 17:25:27.408 # Redis version=5.0.3, bits=64, commit=00000000, modified=0, pid=16972, just started
16972:C 09 Jan 2019 17:25:27.408 # Configuration loaded
一般我们后台启动即可,此时,用RedisDesktop Manager工具就可以远程连接服务器上的redis了!




A beautiful web dashboard for Linux
最近提交(Master分支:30 天前 )
186a802e
added ecosystem file for PM2 5 年前
5def40a3
Add host customization support for the NodeJS version 5 年前
更多推荐
所有评论(0)