阿里云:2核2G服务器5M带宽58元/年、2核4G服务器188元、4核8G服务器346元一年、8核16G5M...
CentOS 7+系统下打开或者关闭firewalld防火墙命令与CentOS6是不同的,Linux百科网分享CentOS7下打开关闭firewalld防火墙与端口的命令方法:
CentOS7下打开关闭firewalld防火墙
firewalld打开关闭及其他常用命令:
systemctl start firewalld
systemctl stop firewalld
systemctl status firewalld
systemctl disable firewalld
systemctl enable firewalld
systemctl是CentOS7的服务管理工具中主要的工具,systemctl融合service和chkconfig的功能于一体:
systemctl start firewalld.service
systemctl stop firewalld.service
systemctl restart firewalld.service
systemctl status firewalld.service
systemctl enable firewalld.service
systemctl disable firewalld.service
systemctl is-enabled firewalld.service
systemctl list-unit-files|grep enabled
systemctl --failed
firewalld-cmd配置命令
firewall-cmd --version
firewall-cmd --help
firewall-cmd --state
firewall-cmd --zone=public --list-ports
firewall-cmd --reload
firewall-cmd --get-active-zones
firewall-cmd --get-zone-of-interface=eth0
firewall-cmd --panic-on
firewall-cmd --panic-off
firewall-cmd --query-panic
firewall-cmd开启端口实例
firewall-cmd --zone=public --add-port=80/tcp --permanent (--permanent永久生效,没有此参数重启后失效)
firewall-cmd --reload
firewall-cmd --zone= public --query-port=80/tcp
firewall-cmd --zone= public --remove-port=80/tcp --permanent
2023服务器优惠,阿里云PK腾讯云!
①阿里云:阿里云5M带宽服务器60元1年起(1c2g/2c4g/2c8g/4c8g/8c16g/16c32g)
②腾讯云:腾讯云2核4G服务器8M带宽74元一年(有高配)
③华为云:华为云1核2服务器1M带宽60元一年(配置多款可选)
⑤代金券:阿里云代金券限量发放中(有账号就能领)
发表评论