在firewalld下要移除端口的开放,只需要运行下面代码:
firewall-cmd --zone=public --remove-port=10050/tcp
firewall-cmd --runtime-to-permanent
firewall-cmd --reload
在firewalld下要移除端口的开放,只需要运行下面代码:
firewall-cmd --zone=public --remove-port=10050/tcp
firewall-cmd --runtime-to-permanent
firewall-cmd --reload