1、复制redis.conf文件
cp -rf redis.conf redis_6380.conf cp -rf redis.conf redis_6381.conf
2、修改redis_6380.conf、redis_6381.conf文件
daemonize yes pidfile /var/run/redis_6380.pid port 6380 logfile logfile/var/log/redis/redis_6380.log daemonize yes pidfile /var/run/redis_6381.pid port 6381 logfile logfile/var/log/redis/redis_6381.log
3、启动
/usr/local/bin/redis-server --port 6380 /usr/local/bin/redis-server --port 6381
时间: 2024-11-08 20:48:36