<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/ DTD/wml_1.1.xml">

<wml>
<head>
<meta http-equiv="cache-control" content="max-age=180,private" />
</head>
<card title="systemctl 如何启动、关闭、启用/禁用服务">
<p>
作者:<a href="index.php?action=showuser&amp;userid=1&amp;hash=">admin</a><br />时间:2021-10-29 21:17<br />分类:<a href="index.php?action=list&amp;cid=3&amp;hash=">电脑技术</a><br />内容:
systemctl 如何启动、关闭、启用/禁用服务


启动服务：systemctl start vsftpd.service


关闭服务：systemctl stop vsftpd.service


重启服务：systemctl restart vsftpd.service


显示服务的状态：systemctl status vsftpd.service


在开机时启用服务：systemctl enable vsftpd.service


在开机时禁用服务：systemctl disable vsftpd.service


查看服务是否开机启动：systemctl is-enabled vsftpd.service


查看已启动的服务列表：systemctl list-unit-files|grep enabled


查看启动失败的服务列表：systemctl --failed
</p><p>
<a href="index.php?action=login&amp;hash=">立即登陆发表评论</a><br />
</p>
<p><a href="index.php?action=list&amp;hash=">返回日志列表</a><br /><a href="index.php?action=index&amp;hash=">返回主页</a></p>
</card>
</wml>
