redis默认配置的端口号是6379,假设现在要多配置一个6380,我们可以直接复制6379.conf命名为6380.conf,并且编辑配置文件
cp /etc/redis/6379.conf /etc/redis/6380.conf vi /etc/redis/6380.conf
需要修改几个参数
pidfile //run/redis/redis6380-//log/redis/redis6380-~
然后保存,直接启动这个配置文件就行了
redis-server /etc/redis/6380.conf
我们可以查看下进程
ps auxf | grep redis-server