下面以sshd服务举例,解释新system进程

  1. systemctl start sshd(开启服务)
  2. systemctl stop sshd(关闭服务)
  3. systemctl restart sshd(重启服务)
  4. systemctl reload sshd(重新加载配置文件,不重启服务)

  1. systemctl enable sshd(设置服务开机自启)
  2. systemctl disable sshd(禁止服务开机自启)

  1. systemctl is-enabled sshd(查看服务是否开机自启)

  2. systemctl status sshd(查看服务当前状态)

    (* ̄(oo) ̄)Linux开启或关闭服务问题

相关文章: