CSDN热搜
在更新过程中可能会出现如下报错: Error: Failed to download metadata for repo ‘appstream‘: Cannot prepare internal mirrorlist 由于本人的虚拟机安装的为CentOS_8故会出现报错 转载自:https://blog.csdn.net/weixin_43252521/article/details/124409151 解决步骤: 进入到 yum 的 repos 目录 cd /etc/yum.repos.d/ 修改 centos 文件内容 sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* 生成缓存更新 yum makecache 运行 yum update 并重新安装 vim yum update -y yum -y install vim
转载自:https://blog.csdn.net/weixin_43252521/article/details/124409151
转载自:https://www.cnblogs.com/LeeMicroShake/articles/16592621.html#
常用命令:# 列出项目中目前的所有容器docker-compose ps#停止正在运行的容器docker-compose stop#启动停止的容器docker-compose start#重启项目中的服务docker-compose restart [options] [SERVICE...]#查看帮助docker-compose -h#停止和删除容器、网络、卷、镜像docker-compose down#删除停止容器dockers-compose rm#查看服务容器的输出docker-compose logs [options] [SERVICE...]#构建(重新构建)项目中的服务容器docker-compose build [options] [--build-arg key=val...] [SERVICE...]#拉取服务依赖的镜像docker-compose pull [options] [SERVICE...]#在指定服务上执行一个命令docker-compose run ubuntu ping www.baidu.com#验证并查看compose文件配置docker-compose config [options]#为服务创建容器docker-compose create [options] [SERVICE...]复制代码
开机启动:systemctl enable httpd.service 开机不启动:systemctl disable httpd.service 停止firewall:systemctl stop firewalld.service 禁止firewall开机启动:systemctl disable firewalld.service
使用道具 举报
本版积分规则 回帖并转播 回帖后跳转到最后一页
程序园优秀签约作者
0
粉丝关注
19
主题发布