I had a talk with Chat GPT regarding this issue.
The solution I got is as follows :
sudo nano /etc/redis/redis.conf
Look for the following lines in the configuration file:
port 6379
Add a new line below the port line to specify the extra port you want to use. For example, if you want to add port 11000, the configuration will look like this:
port 6379
port 11000
Save the changes and exit the text editor.
Restart the Redis server to apply the new configuration. Use the following command:
sudo service redis-server restart
To test the connection to the extra port, you can run the following command:
redis-cli -h localhost -p 11000 ping
If the connection is successful, you will see PONG as the response.
create the new site by this command :
bench new-site [site-name]
Please remember to remove port ‘11000’ after creating the site. Because I have seen that the command “Bench start” will return errors.
Removing port ‘11000’ :
sudo nano /etc/redis/redis.conf
Look for the following lines in the configuration file and remove it :
port 11000
Save the changes and exit the text editor.
Restart the Redis server to apply the new configuration. Use the following command:
sudo service redis-server restart