[email protected] / Back @ The version can be specified after the version number , You can also specify no ver...">

当前位置:网站首页>Install and use MAC redis, connect to remote server redis

Install and use MAC redis, connect to remote server redis

2022-07-04 14:10:00 Lucky little yellow man

1、mac Use brew install redis

brew install [email protected] # Back @ The version can be specified after the version number , You can also specify no version

start-up redis

brew services start redis

2、 Connect local redis

redis-cli

3、 Connect to remote server redis

redis-cli -h 192.168.138.136 -p 6379

4、 Set the specified key Value

SET KEY_NAME VALUE
stay Redis 2.6.12 Previous version , SET Orders always return OK .

from Redis 2.6.12 Version start , SET When the setting operation completes successfully , To return to OK .

redis 127.0.0.1:6379> SET key "value"
OK
 
redis 127.0.0.1:6379> GET key
"value"

Reference resources :MAC install redis The easy way to _ Fenglingdu W The blog of -CSDN Blog _mac install redisRedis SET command - Set the specified key Value

原网站

版权声明
本文为[Lucky little yellow man]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/185/202207041105289502.html