Last active
October 8, 2019 04:35
-
-
Save 1901/b591b6820ed06314de20437db4eeb883 to your computer and use it in GitHub Desktop.
[Redis commands] #redis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 如果是通过 apt-get 或 yum 安装的 redis | |
/etc/init.d/redis-server stop | |
/etc/init.d/redis-server start | |
/etc/init.d/redis-server restart | |
# 如果是通过源码安装的 redis | |
./redis-cli -h 127.0.0.1 -p 6379 shutdown | |
./redis-cli -a 密码 -h 127.0.0.1 -p 6379 shutdown # 如果有密码 | |
# 启动 redis | |
./redis-server ../redis.conf | |
# check memory usage | |
info memory |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment