正常开启防火墙提示如下:
[root@website ~]# systemctl restart firewalld
Failed to restart firewalld.service: Unit is masked.
网上搜索说服务被锁定了。不知道为什么阿里云的服务器会自动锁定服务。。。郁闷了好半天,最后发现是防火墙问题。
解决办法:
[root@website ~]# systemctl unmask firewalld
Removed symlink /etc/systemd/system/firewalld.service.
如需再次锁定
[root@website ~]# systemctl mask firewalld