CentOS7开放端口和关闭防火墙
条评论开放端口
永久的开放需要的端口
1  | $ sudo firewall-cmd --zone=public --add-port=3000/tcp --permanent  | 
之后检查新的防火墙规则
1  | $ firewall-cmd --list-all  | 
关闭防火墙
由于只是用于开发环境,所以打算把防火墙关闭掉
1  | // 临时关闭防火墙,重启后会重新自动打开  | 
永久的开放需要的端口
1  | $ sudo firewall-cmd --zone=public --add-port=3000/tcp --permanent  | 
之后检查新的防火墙规则
1  | $ firewall-cmd --list-all  | 
由于只是用于开发环境,所以打算把防火墙关闭掉
1  | // 临时关闭防火墙,重启后会重新自动打开  |