摘要: docker容器常用操作 #####查看本机上存在的所有容器 docker ps -a #####查看运行的容器 不截断 docker ps --no-trunc #####创建容器 docker create -it xx:xx (新建的容器处于停止状态) #####启动容器 docker sta 阅读全文
posted @ 2022-02-21 15:55 tangshow 阅读(59) 评论(0) 推荐(0) 编辑
摘要: docker基础相关知识和docker常用操作 ####镜像相关 #####获取镜像 docker pull … docker pull NAME[:TAG] 不指定tag,默认选择latest最新 docker pull nginx (获取最新版非稳定版) docker pull hub.c.16 阅读全文
posted @ 2022-02-21 14:48 tangshow 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 在centos7上安装docker最新版本 ####环境准备 系统centso7.9 ####关闭selinux setenforce 0 sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config;cat /etc/seli 阅读全文
posted @ 2022-02-21 14:33 tangshow 阅读(343) 评论(0) 推荐(0) 编辑
摘要: ####修改默认ssh端口 https://www.cnblogs.com/tangshow/p/15882408.html ####修改ssh空闲时间 https://www.cnblogs.com/tangshow/p/15882408.html ####防ddos 见ddos表 ####中断指 阅读全文
posted @ 2022-02-21 14:22 tangshow 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 在 centos7上使用crontab定时任务,自动定时执行脚本 ####添加/编辑 Crontab crontab -e crontab [-u username] -e 默认情况下,系统会编辑当前用户的crontab命令集合 ####查看Crontab crontab -l crontab [- 阅读全文
posted @ 2022-02-21 14:09 tangshow 阅读(2134) 评论(0) 推荐(0) 编辑
摘要: CentOS7 /根目录空间不足,/home目录空间剩余较多。现需要将/home的空闲空间,分配给/。 基础知识:linux /dev/mapper目录浅谈 https://www.cnblogs.com/amoyzhu/p/6626423.html ####0 环境 系统centos7,安装时使用 阅读全文
posted @ 2022-02-21 11:22 tangshow 阅读(2780) 评论(1) 推荐(0) 编辑