Linux CenOS open port

Question: Port 8080 cannot be accessed

Share pictures

p>

Solution:

The first step is to check whether the Alibaba Cloud port is open

Network Security>Security Group>Configuration Rule>Add Incoming Direction

Share picture

The second step is to check whether the firewall is turned on (Only when the firewall is turned on)

Check firewall status: systemctl status firewalld

Share pictures

Check which ports the firewall opens: firewall-cmd –list-ports

 Share picture

Add port 8080 to the firewall: firewall-cmd –zone =public –add-port=8080/tcp –permanent

share picture

Restart the firewall: systemctl restart firewalld.service

Review the open ports

share picture

So far the problem is solved

Common firewall commands:

1. Check firewall status: systemctl st atus firewalld

2, turn off the firewall: systemctl status firewalld

3, turn on disable: systemctl disable firewalld

4, turn on: systemctl enable firewalld

5. Restart the firewall: systemctl restart firewalld.service

6. Check which ports the firewall has opened: firewall-cmd –list-ports

7. Open a certain Port: firewall-cmd –zone=public –add-port=80/tcp –permanent

–zone #Scope

–add-port=80/ tcp #Add port, the format is: port/communication protocol

–permanent #Permanent effective, invalid after restart without this parameter

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 5073 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.