摘要:
# useradd zhangsan# passwd zhangsan # chage -l zhangsan最近一次密码修改时间 :12月 07, 2018密码过期时间 :从不密码失效时间 :从不帐户过期时间 :从不两次改变密码之间相距的最小天数 :0两次改变密码之间相距的最大天数 :99999在 阅读全文
摘要:
1 kvm 原理讲解 kvm 内核模块 qemu 硬件仿真 libvirt 用户接口管理 虚拟机的组成 硬盘文件 配置文件 2 qemu-img 命令说明 虚拟机硬盘文件的创建 后端模板盘的使用 3 虚拟机配置文件说明 内存,cpu,硬盘,网卡 4 安装一个虚拟机 最小化安装,只分一个根分区 5 把 阅读全文
摘要:
真机 安装git,同步git里的资料 # yum -y install git # git clone git://124.193.128.166/hello.git # cd hello/ # git pull # ls 查看上传到git里的资料 cmd.txt grub ifcfg-eth0 n 阅读全文
摘要:
openstack 环境准备 第一台虚拟机(openstack) 4 cpu , 9G 内存 50G 硬盘 qemu-img create -f qcow2 -b node.qcow2 openstack.img 50G 2 块网卡 添加网卡 <interface type='bridge'> <s 阅读全文
摘要:
真机 安装git,同步git里的资料 # yum -y install git # git clone git://124.193.128.166/hello.git # cd hello/ # git pull 创建/启动/开机自启动,vbr虚拟网络 # cp /root/hello/vbr.xm 阅读全文
摘要:
能把修改过的行显示出来[root@es2 ~]# grep -Pv "^(#|$)" /etc/elasticsearch/elasticsearch.yml cluster.name: nsd1808node.name: es2network.host: 0.0.0.0discovery.zen. 阅读全文
摘要:
docker02 ~]# history 6 yum -y install docker-engine-selinux-1.12.1-1.el7.centos.noarch.rpm 7 yum -y install docker-engine-1.12.1-1.el7.centos.x86_64.r 阅读全文
摘要:
[root@docker02 ~]# docker run -it centos [root@fc191527f87c /]# cd /etc/yum.repos.d/[root@fc191527f87c yum.repos.d]# lsCentOS-Base.repo CentOS-Debugin 阅读全文
摘要:
docker 命名空间6大要素: 主机名、网络、用户、进程、根目录、信号向量 docker run -it 镜像名:标签 安装前准备:需要64位操作系统至少RHEL6.5以上的版本,强烈推荐RHEL7关闭防火墙(不是必须)安装Docker 软件包列表:docker-enginedocker-engi 阅读全文
摘要:
自己创建新容器 [root@docker02 ~]# docker rm $(docker stop $(docker ps -qa))2ed6c524e9bf [root@docker02 ~]# docker ps -aCONTAINER ID IMAGE COMMAND CREATED STA 阅读全文