What should I do if the port under centos cannot be accessed?

王林
Release: 2020-03-27 17:39:38
Original
3554 people have browsed it

What should I do if the port under centos cannot be accessed?

Problem:

After starting the external service on the centos7 listening port, the port access is denied.

Solution:

If you are just using a development environment, you may consider turning off the firewall directly.

The commands are as follows:

systemctl disable firewalld
systemctl stop firewalld
Copy after login

After running the above two commands, the firewall will be closed and will not start automatically at boot.

Note: Remember not to turn off the firewall at will in the production environment.

(Recommended tutorial: centos tutorial)

The above is the detailed content of What should I do if the port under centos cannot be accessed?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
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