09 2019 档案
摘要:systemctl list-unit-files (查看开机启动项) systemctl list-unit-files | grep 程序名称 (查看某些服务开机启动状态) systemctl list-unit-files | grep enable (查看哪些为开机启动服务)
阅读全文
摘要:systemctl enable (服务名称)
阅读全文
摘要:systemctl stop docker.service 停止docker进程 systemctl start docker.service 启动docker服务
阅读全文
摘要:docker rmi $(docker images -q) 删除所有镜像
阅读全文
摘要:docker save $(docker images | grep -v REPOSITORY | awk 'BEGIN{OFS=":";ORS=" "}{print $1,$2}') -o haha.tar 将docker镜像打包成haha.tar ,然后将haha.tar存放指定的机器。 do
阅读全文
摘要:systemctl stop firewalld.service 关闭防火墙 systemctl start firewalld.service 开启防火墙 firewall-cmd --state 查看防火墙运行状态 systemctl disable firewalld.service 禁止开机
阅读全文
摘要:rpm -ivh 包名 --force --nodeps (强制安装)
阅读全文
摘要:#!/bin/bash auth=123456 echo " flushall " | redis-cli -a $auth wq (-a 指登陆Redis控制台输入的密码)
阅读全文