redis
./redis-server 默认方式启动 (6379端口) 连接 ./redis-cli 退出 ./redis-cli shutdown
./redis-server --port xxxx 指定端口启动 连接 ./redis-cli -p xxxx 退出 ./redis-cli -p xxxx shutdown
./redis -server ../redis.conf 指定配置文件启动
指定ip端口连接
./redis-cli -p 6379 -h 127.0.0.1
指定ip端口关闭
./redis-cli -p 6379 -h 127.0.0.1 shutdown
密码连接
./redis-cli -p 6380 -a 123456 退出 ./redis-cli -p 6380 -a 123456 shutdown