个人知识库
Author: 刘杰文, Date: Unknown, Categories: , Tags:
修改设置一般需要管理员权限。
systemctl status firewalld.service
也可以使用service
命令如下:
service firewalld status
systemctl start vsftpd.service
也可以使用service
命令如下:
service vsftpd start
启用后,服务将会开机自启。
systemctl enable vsftpd.service
systemctl stop firewalld.service
也可以使用service
命令如下:
service firewalld stop
禁用后,服务不再开机自启。
systemctl disable firewalld.service
在我使用的CentOS中,service命令都是调用链接,然后调用相应的systemctl来执行。service和systemctl的选项一个放在后一个放在前。支持的选项也不完全一样。
service
支持:
start, stop, restart, try-restart, reload, force-reload, status.
然而systemctl
支持更加完整,它都有。