I am using CentOS 7 and I have to ensure that ports 2888 and 3888 are open.
(我正在使用CentOS 7,并且必须确保端口2888和3888已打开。)
I read this article but this did not work because on CentOS 7 OS there is no iptables save
command.
(我读了这篇文章,但是没有用,因为在CentOS 7 OS上没有iptables save
命令。)
Someone told me that the above URL is not valid for CentOS 7. and I should follow this .
(有人告诉我,上述URL对CentOS 7无效。我应该遵循这一点 。)
But this article is not clear to me on exactly what command I need to execute.(但是这篇文章对我到底需要执行什么命令尚不清楚。)
I also found
(我也发现)
firewall-cmd --zone=public --add-port=2888/tcp
but this does not survive reboots.
(但这无法在重新启动后继续存在。)
So how can I open the ports and make it survive reboots?
(那么,如何打开端口并使其在重启后不受影响?)
ask by Knows Not Much translate from so