Swoole framework Hyperf (two) - IP + port number, the browser can not access the solution under Windows.

If you run Hyperf in the local virtual machine, ip + port, the browser can not access the windows, because the problem is the firewall, the firewall if you are using iptables, then add a port.

Open the configuration file

# vi /etc/sysconfig/iptables

Insert a row

# -A INPUT -m state --state NEW -m tcp -p tcp --dport 9501 -j ACCEPT

Restart the firewall

# systemctl restart iptables.service

Ctrl + c broken hyperf Service

Start Service

# php hyperf.php start

Browser access
Here Insert Picture Description

Hyperf frame Series List

Published 112 original articles · won praise 75 · views 130 000 +

Guess you like

Origin blog.csdn.net/weikaixxxxxx/article/details/95748200