Redis: Creating Server TCP listening socket *:6388: bind: Permission denied

I have fresh ContOS 7 and redis (Redis 3.2.12) on it. Redis work great on default port 6379, but when I change the port in redis.conf I have Error msg in logs: # Creating Server TCP listening socket *:6388: bind: Permission denied. My firewall is disable (sudo firewall-cmd --state not running) and I don't know who can block it.

Upvotes: 2

Views: 4602

Answers (2)

Ali Gonabadi
Ali Gonabadi

Reputation: 944

I had same problem, As Gabriel Pereira mentioned, configuring SELinux to accept port for redis fixed my problem.

semanage port -a -t redis_port_t -p tcp 6388

remember to change 6388 to your specified port number.

Upvotes: 3

By default the SELinux is enable in your CentOS. Check it sudo vi /etc/selinux/config and you need to change SELINUX enforcing to disabled.

Upvotes: 2

Related Questions