centos8 安装docker
curl https://download.docker.com/linux/centos/docker-ce.repo -o /etc/yum.repos.d/docker-ce.repo
yum install docker-ce -y
运行报错
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running
systemctl daemon-reload
sudo service docker restart
sudo service docker status
centos7固定ip
配置文件在 /etc/sysconfig/network-scripts/ifcfg-xhzy-work
用的是wifi所以ifcfg-当前wifi名称
BOOTPROTO="static"
双引号不能漏
ONBOOT="yes"
说明它是启动网卡
centos终端连接wifi
开启无线口
nmcli r wifi on
连接wifi
wpa_supplicant -B -i wlp3s0 -c <(wpa_passphrase "无线名称" "无线密码”)
分配ip
dhclient wlp16s0
查看效果
ip addr show wlp16s0
打赏