摘要:此问题实际上是因为强制关机后,vm虚拟机文件夹对应的lck文件及文件夹没有删除导致的。 我们只需要添加一个脚本去删除win对应目录下的文件就可以了 bat脚本如下: @echo off for /f "delims=" %%a in ('dir /ad /b /s D:\vm-data\') do
阅读全文
摘要:#yum -y install net-tools #dhclient #vi net.sh #sh net.sh #hostnamectl set-hostname k8s- #vi /etc/hosts 写入host配置文件 curl -o /etc/yum.repos.d/CentOS-Bas
阅读全文
摘要:#!/bin/bash #调整eth0文件 /usr/bin/sed -i "/^IPV6/d" /etc/sysconfig/network-scripts/ifcfg-eth0 /usr/bin/sed -i "s/dhcp/static/g" /etc/sysconfig/network-sc
阅读全文
摘要:TYPE=Ethernet BOOTPROTO=static NAME=ens33 DEVICE=ens33 ONBOOT=yes IPADDR=192.168.2.51 NETMASK=255.255.255.0 GATEWAY=192.168.2.1 DNS1=192.168.2.1
阅读全文
摘要:200 - OK,服务器成功返回网页 - Standard response for successful HTTP requests. 301 - Moved Permanently(永久跳转),请求的网页已永久跳转到新位置。 - This and all future requests should be directed to the given. 403 - Fo...
阅读全文
摘要:1.安装Nginx: 2.安装php (使用FastCGI方式) 浏览器访问验证: Yum安装MySQL参考: 最后还需要执行一条:
阅读全文
摘要:使用 'Ctrl' + ' ] ' 一起按退出
阅读全文
摘要:1.[初始yum源备份]-[yum更换为国内源]-[添加epel扩展源] #!/bin/bash mkdir /etc/yum.repos.d/backup/ mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/backup/ if [ `uname -r |aw
阅读全文
摘要:1.编辑打开ssh的配置文件 /etc/ssh/sshd_config 找到里面的UseDNS yes修改为:#UseDNS no
阅读全文