Home > Database > Redis > How to open the redis port under linux

How to open the redis port under linux

王林
Release: 2021-02-04 09:22:46
forward
3363 people have browsed it

How to open the redis port under linux

The specific steps are as follows:

First open the redis.conf configuration file

vi redis.conf
Copy after login

Then change bind 127.0.0.1 to 0.0.0.0

How to open the redis port under linux

Then execute the command:

1, /sbin/iptables -I INPUT -p tcp --dport 6379 -j ACCEPT

2, / etc/init.d/iptables save

3、service iptables restart

How to open the redis port under linux

##4、Verification: telnet ip 6379

Related recommendations:

redis database tutorial

The above is the detailed content of How to open the redis port under linux. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template