摘要: 1)、停掉docker服务 [root@localhost~]# systemctl stop docker 2)、修改配置文件 [root@localhost~]# mkdir /data [root@localhost~]# vim/usr/lib/systemd/system/docker.s 阅读全文
posted @ 2023-03-30 17:00 leiuk 阅读(70) 评论(0) 推荐(0) 编辑
摘要: yum install -y httpd-tools htpasswd -cb /etc/nginx/htpasswd mynginx 123456 auth_basic "Please enter the user name and password"; #这里是验证时的提示信息auth_basi 阅读全文
posted @ 2023-03-30 16:59 leiuk 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 开始之前需要检测系统内核是否支持inotify 方式一:使用 uname -r 命令检查Linux内核,如果低于2.6.13,就需要重新编译内核加入inotify的支持。 方式二:使用ll /proc/sys/fs/inotify命令,是否有以下三条信息输出,如果没有表示不支持。 -rw-r--r- 阅读全文
posted @ 2023-03-30 16:58 leiuk 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 修改qcow2镜像密码 1、安装libvirtd # Ubuntu $ apt install -y qemu-kvm libvirt-bin bridge-utils virt-manager # CentOS $ yum install -y qemu-kvm libvirt virt-inst 阅读全文
posted @ 2023-03-30 16:58 leiuk 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 1.问题: 开机提示Entering emergenc mode.Exit the shell to continue. 2.解决办法: xfs_repair -v -L /dev/dm-0 如果输入xfs_repair -v -L /dev/dm-0,报no such file or direct 阅读全文
posted @ 2023-03-30 16:57 leiuk 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 1.检查cpu是否支持虚拟化 如果有vmx信息输出,就说明支持vt,如果没有任何的输出,说明你的cpu不支持,将无法使用kvm虚拟机 grep vmx /proc/cpuinfo 2.确保bios里开启了虚拟化功能 查看是否加载kvm模块 lsmod | grep kvm 如果没有加载 modpro 阅读全文
posted @ 2023-03-30 16:57 leiuk 阅读(195) 评论(0) 推荐(0) 编辑