Ubuntu allows other computers/external computers to access redis

created at 07-15-2021 views: 2


By default, redis only allows local access and does not support external access. If you need external access, you need to modify the redis configuration file.

ubuntu uses apt-get to install redis.

Redis allows external access steps

1. Open the redis configuration file redis.conf

vim /etc/redis/redis.conf

2. Find bind and change it to bind, as shown in the figure below:



3. Restart redis

service redis-server restart

Finally, redis can now allow external access.

created at:07-15-2021
edited at: 07-15-2021: