Port conflict due to recent build environment , So summarize this article , I hope there is something wrong with it , Please point out , I'll correct it as soon as possible , Progress together .
system :centos7

View firewall status . The result is that running perhaps not running
firewall-cmd --state
stay running State , towards firewall Add ports that need to be opened :
such as :
firewall-cmd --permanent --zone=public --add-port=80/tcp
So that external devices can access it 80 Port .
Reload configuration , Make a change ( Just added the port to be opened ) Effective .
firewall-cmd --reload // load configuration , Make the modification effective .
View open ports , appear 80/tcp This opens correctly :
firewall-cmd --permanent --zone=public --list-ports
Common commands of firewall :
Command to turn on Firewall :
systemctl start firewalld.service
Command to close firewall :
systemctl stop firewalld.service
Start up automatically :
systemctl enable firewalld.service
Turn off and start automatically :
systemctl disable firewalld.service
View firewall status :
systemctl status firewalld
Delete open ports :
After deleting the specified port , other ip You cannot access the port on this computer .
firewall-cmd --zone=public --remove-port=80/tcp --permanent firewall-cmd
--reload systemctl restart firewalld.service
Open assignment IP Access port :
That is to say, the port can only be specified IP Visited :
firewall-cmd --permanent --add-rich-rule 'rule family=ipv4 source address=IP address
port port= port protocol=tcp accept' firewall-cmd --reload Loading takes effect

©2020 ioDraw All rights reserved
2020 Nobel Prize in physiology or medicine announced Implementation and challenge of metadata service in data Lake Enterprises face SEM Bidding and SEO How to choose ? Or both ?spark.sql.shuffle.partitions and spark.default.parallelism The difference between JavaScript Do a simple guess number games What are the types of variables ? Trump's "VIP therapy ": Is receiving a drug treatment that has not yet been approved ( Essence )2020 year 6 month 26 day C# Class library DataTable( Extension method ) program ( process ) How is it stored in the operating system , Space allocation Understanding neural network machine translation in three minutes