啓動服務bash
systemctl start iptables.service
中止服務ide
systemctl stop iptables.service
重啓服務rest
systemctl restart iptables.service
查看服務狀態ip
systemctl status iptables.service
開機啓動it
systemctl enable iptables.service
禁止開機啓動table
systemctl disable iptables.service
查看全部已啓動的服務class
systemctl list-units --type=service
查看開機啓動服務列表file
systemctl list-unit-files
查看某個服務開機是否啓動iptables
systemctl list-unit-files |grep iptables iptables.service enabled