摘要:
Docker&CKA学习笔记(注:本人CKA学习来自阿良教育) 第一章、容器存在的意义、优势、docker介绍 1.1 容器存在的意义 1、上线流程繁琐 开发->测试->申请资源->审批->部>测试等环节 2、资源利用率低 普遍服务器利用率低,造成过多浪费 3、扩容/缩容不及时 业务高峰期扩容流程繁 阅读全文
摘要:
一、机器 /home 单独挂载了,只有2G ,现在 /data 有200G 我想将 /home 移至/data下 怎么操作? 解决方案: 1:备份数据 2:进入单用户模式,重新启动系统,并在启动菜单中选择进入单用户模式(也可以通过在启动时添加 single 或 1 到内核启动参数)。 3:创建新的目 阅读全文
摘要:
(1)hosts文件 [task]IP地址1 hostname=主机名1IP地址2 hostname=主机名2IP地址3 hostname=主机名3 [task:vars]ansible_become=yesansible_become_method=sudoansible_become_user= 阅读全文
摘要:
# vim ~/.vimrc ==>autocmd FileType yaml setlocal ai ts=2 sw=2 et (建议手敲) 阅读全文
摘要:
问题: Using a SSH password instead of a key is not possible because Host Key checking is enabled and sshpass does not support this. Please add this host 阅读全文
摘要:
阅读全文
摘要:
请确保 sar 已经安装并正在记录数据。你可以通过以下步骤确保 sar 正在运行:服务是sysstat 查看 CPU 使用情况: sar -u -s 00:00:00 -e 06:00:00 查看内存使用情况: sar -r -s 00:00:00 -e 06:00:00 查看 I/O 和传输速率: 阅读全文
摘要:
cat /etc/passwd | egrep '^hnoa3|^huxianghui|^zhousichong' |awk -F: '{print $1}' | xargs -I {} sh -c 'echo "User: {}"; id {}; echo " "'cat /etc/passwd 阅读全文
摘要:
修改vsftp回显信息 ansible -i hosts task -m shell -a "grep 'ftpd_banner' /etc/vsftpd/vsftpd.conf" sed -i '/ftpd_banner/s/^/#/g' /etc/vsftpd/vsftpd.conf ansib 阅读全文
摘要:
临时解决方案: #service postfix status#service sendmail status#service postfix stop[root@wign ~]# ps -ef|grep sendmail|wc -l3038[root@wign ~]# ps -ef|grep po 阅读全文
摘要:
linux系统查找占用swap空间最多的10个进程(1)ps -eo pid,user,comm,pmem,vsz --sort=-vsz | head -n 11(2)for i in $(cd /proc;ls | grep "^[0-9]"|awk '$0 >100');do awk '/Sw 阅读全文