Home  >  Article  >  PHP Framework  >  Solution to workerman being unable to connect

Solution to workerman being unable to connect

尚
Original
2019-12-12 13:43:223498browse

Solution to workerman being unable to connect

The Workerman application has been deployed on Alibaba Cloud ECS (ECS is a private network). All ports required by Workerman have been allowed in the ECS security group, but the external network cannot be opened normally. (Note, other services can be accessed externally than port 80). The telnet connection displays "No route to host".

Recommended: workerman tutorial

Cause of the problem:

Because I don’t know much about centos7, after closing firewalld.service, I did not close iptable.service caused.

Solution to the problem:

1. In the security group inbound direction, set the port range of workererman

2. Turn off the firewalld firewall and modify the /etc/sysconfig/iptables rules.

The above is the detailed content of Solution to workerman being unable to connect. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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