- sshd
# 启动
systemctl restart sshd.service
# 开机自启动
systemctl enable sshd.service
- mariadb
# 启动
systemctl restart mariadb.service
# 开机自启动
systemctl enable mariadb.service
- 防火墙(最操蛋的一个)
# 关闭
systemctl stop firewalld.service
# 开机也关闭
systemctl disable firewalld.service
- 列出所有服务
systemctl list-unit-files --type=service
- 图片欣赏
本文介绍如何使用systemctl命令管理常见的Linux服务,包括SSH服务(sshd)、MariaDB数据库服务及防火墙服务。提供了启动、重启、设置开机启动及关闭等操作的具体命令。
648

被折叠的 条评论
为什么被折叠?



