systemctl

作者: BlackChen | 来源:发表于2018-01-17 22:26 被阅读18次

centos 7

关闭防火墙:

systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动

启动一个服务:systemctl start firewalld.service
关闭一个服务:systemctl stop firewalld.service
重启一个服务:systemctl restart firewalld.service
显示一个服务的状态:systemctl status firewalld.service
在开机时启用一个服务:systemctl enable firewalld.service
在开机时禁用一个服务:systemctl disable firewalld.service
查看服务是否开机启动:systemctl is-enabled firewalld.service;echo $?
查看已启动的服务列表:systemctl list-unit-files|grep enabled

http://www.ruanyifeng.com/blog/2016/03/systemd-tutorial-commands.html

https://www.cnblogs.com/lxjshuju/p/7183689.html

相关文章

  • systemd学习笔记

    systemctl 重启 systemctl reboot 关闭 systemctl poweroff CPU停止...

  • 5. linux命令

    来源: http://man.linuxde.net/systemctl systemctl systemctl命...

  • Basic knowledge about systemd an

    systemctl --help #查詢systemctl指令用法systemctl list-units #查詢...

  • CentOS7 Failed to start LSB: Bri

    systemctl stop NetworkManager systemctl disable NetworkMa...

  • systemctl

    重新加载配置文件 systemctl daemon-reload 启动 systemctl start redi...

  • systemctl

    图形界面及命令行界面 设置开机默认界面为图形界面 设置开机默认界面为命令行界面 开机重启即可生效,当然也可不重启切...

  • systemctl

    centos 7 关闭防火墙: systemctl stop firewalld.service #停止firew...

  • systemctl

    systemctl相当于service和chkconfig的结合体,使用它可以永久性启用/禁止或临时关闭/启动某个...

  • systemctl

    systemctl(system control)-控制systemd系统和服务管理器。 描述: 向system ...

  • systemctl

网友评论

      本文标题:systemctl

      本文链接:https://www.haomeiwen.com/subject/yhgquxtx.html