添加开启自启动 #systemctlenablehttpd.service 关闭开启自启动 #systemctldisablehttpd.service 检查服务状态 #systemctlstatushttpd.service 检查是否处于Active状态 #systemctlis-activehttpd.service 显示所有已经启动的服务 #systemctllist-units--type=service 显示所有服务的状态,相当于chkconfig--list #systemctllist-unit-files|grepenabled原文链接:https://www.f2er.com/centos/378826.html