Ubuntu allows other computers/external computers to access redis

created at 07-15-2021 views: 2

preface

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 127.0.0.1 and change it to bind 0.0.0.0, as shown in the figure below:

bind 0.0.0.0

bind 127.0.0.1

3. Restart redis

service redis-server restart

Finally, redis can now allow external access.

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