redis 使用配置文件启动多个的命令
1.cd /usr/local
2. cd redis-4.0.0/
3. redis-server conf/redis-6379.conf
4. 用ps -ef | grep redis- 查看是否启动成功
5. 启动成功如下显示
root 29826 00:00:00 redis-server *:6379 |
---|
root 29833 29796 0 11:59 pts/1 00:00:00 grep --color=auto redis- |
- kill -s 9 29826 杀死该进程,停止redis