Replica Set Error

The problem here is related to linux. I disabled the service called iptables first. Then I repeated the process and the problem was solved.
#systemctl disable iptables