指令 作用systemctl start 服务名开启服务systemctl stop 服务名关闭服务systemctl status 服务名显示状态systemctl restart 服务名重启服务systemctl enable 服务名开
指令 | 作用 |
systemctl start 服务名 | 开启服务 |
systemctl stop 服务名 | 关闭服务 |
systemctl status 服务名 | 显示状态 |
systemctl restart 服务名 | 重启服务 |
systemctl enable 服务名 | 开机启动服务 |
systemctl disable 服务名 | 禁止开机启动 |
systemctl list-units | 查看系统中所有正在运行的服务 |
systemctl list-unit-files | 查看系统中所有服务的开机启动状态 |
systemctl list-dependencies 服务名 | 查看系统中服务的依赖关系 |
systemctl mask 服务名 | 冻结服务 |
systemctl unmask 服务名 | 解冻服务 |
systemctl set-default multi-user.target | 开机时不启动图形界面 |
systemctl set-default graphical.target | 开机时启动图形界面 |
启动服务命令service Mysql start,查看服务命令service mysql status。
有时候用service才能起动服务,systemctl启动不了。
来源地址:https://blog.csdn.net/m0_72889625/article/details/130270473
--结束END--
本文标题: ubuntu查看系统启动项和启动服务
本文链接: https://www.lsjlt.com/news/413666.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-04-29
2024-04-29
2024-04-29
2024-04-18
2024-04-17
2024-04-11
2024-04-08
2024-04-08
2024-04-03
2024-03-15
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0