systemctl 的常用命令
systemctl 的常用命令
命令 作用
systemctl start xxx 启动服务
systemctl restart xxx 重启服务
systemctl stop xxx 停止服务
systemctl reloead xxx 重新加载配置文件(不终止服务)
system status xxx 查看服务状态
systemctl enable xxx 开机自动启动
systemctl disabled 开机不自动启动
systemctlis-enable xxx 查看服务是不是开机自启
systemctl list-unit-files --type=service 查看各个级别下服务的启动与禁用情况
systemctl set-default multi-user.target 开机默认进入命令行界面
systemctl set-default graphical.target 开机默认进入图形界面

浙公网安备 33010602011771号