Open JQChan opened 3 years ago
sudo apt-get install redis-server redis-cli
启动Redis服务器:
service redis-server {start | stop | restart}
打开客户算工具进行测试:
redis-cli 127.0.0.1:6379> PING PONG
brew install redis
// 启动Redis brew services start redis
// 重启Redis brew services restart redis
// 停止Redis brew services stop redis
redis-cli PING
//成功返回PONG
## Redis命令 1. String(字符串) ```bash redis-cli SET name "xialei" redis-cli GET name
npm install redis
Node使用Redis
Redis安装
启动Redis服务器:
打开客户算工具进行测试:
启动Redis服务器:
// 重启Redis brew services restart redis
// 停止Redis brew services stop redis
redis-cli PING
//成功返回PONG
Node安装Redis