https://github.com/afeiship/ushell-module-redis
Unix like shell module for redis.
https://github.com/afeiship/ushell-module-redis
redis shell unix ushell
Last synced: about 1 month ago
JSON representation
Unix like shell module for redis.
- Host: GitHub
- URL: https://github.com/afeiship/ushell-module-redis
- Owner: afeiship
- Created: 2016-10-26T09:29:43.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-11-13T06:20:09.000Z (over 6 years ago)
- Last Synced: 2025-05-22T22:10:12.024Z (12 months ago)
- Topics: redis, shell, unix, ushell
- Language: Shell
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ushell-module-redis
> Unix like shell module for redis.
## resources:
+ http://www.jianshu.com/p/17e4bc176ed7
## commands:
## description:
+ centos:
```bash
Selected config:
Port : 6379
Config file : /etc/redis/6379.conf
Log file : /var/log/redis_6379.log
Data dir : /var/lib/redis/6379
Executable : /usr/local/bin/redis-server
Cli Executable : /usr/local/bin/redis-cli
```
## download && install:
```bash
wget http://download.redis.io/redis-stable.tar.gz
tar -zxvf redis-stable.tar.gz
cd redis-stable
make
make install
cd utils/
# 执行脚本,然后一路回车都按照默认设置执行
./install_server.sh
```
## usage:
```bash
# 查看是否启动redis服务
ps -ef | grep redis
# 启动
/etc/init.d/redis_6379 start
# 通过配置文件启动
/usr/local/bin/redis-server /etc/redis/redis.conf
# 关闭
/etc/init.d/redis_6379 stop
# 关闭,假如是默认端口号,可以省略 -p 参数
/usr/local/bin/redis-cli -p 6379 shutdown
```