Linux常用命令

系统服务控制 systemctl


# 设为开机自启动/取消自启动
systemctl enable/disable xxxx.service
# 基本启停操作
systemctl start/stop/restart xxxx.service
# 查看状态
systemctl status xxxx.service
# 查看服务列表
systemctl list-units --type=service

Docker容器


# 列出容器
docker ps



posted @ 2024-11-13 16:28  迷路的哨兵甲  阅读(1)  评论(0编辑  收藏  举报