How to start redis-server on a different port than the default port 6379 in ubuntu

前端 未结 5 1395
时光取名叫无心
时光取名叫无心 2021-01-03 21:04

How to start redis-server on a different port than the default port 6379 in Ubuntu? I have used the following steps to install the redis:

         


        
5条回答
  •  庸人自扰
    2021-01-03 21:36

    1. Locate your redis.conf file (it will probably be at /etc/redis/6379.conf).
    2. Copy the file or edit that one and change the port directive to any free port.
    3. Start Redis with the new config file (note that if you've copied the file in the previous step, you'll need to change the service's startup script to use that file).

提交回复
热议问题