当前位置: 首页 > news >正文

广元市网站建设_网站建设公司_AJAX_seo优化

湖南网站推广电话,我赢seo,昆明网络科技公司有哪些,wordpress写文章失败在使用Docker 进行跨平台部署之后#xff0c;我们还可以尝试进行跨架构部署。 从X86 架构上移植到 aarch64 上。 要使用这个功能#xff0c;需要Docker 的版本在19以上#xff0c;因为这个是19以上版本中提供的一个实验性方案。 除此之外还需要#xff1a;Linux的内核版本要…在使用Docker 进行跨平台部署之后我们还可以尝试进行跨架构部署。 从X86 架构上移植到 aarch64 上。 要使用这个功能需要Docker 的版本在19以上因为这个是19以上版本中提供的一个实验性方案。 除此之外还需要Linux的内核版本要在4.X版本以上 否则的话会出现错误特别是 centOS 用户。 这一节讲述的内容就是如何在centOS 用户中修改Linux内核。 以下是具体步骤 1. 检查当前版本 检查当前内核版本是否在4.X版本以上如果是请直接跳转第三步 测试DOCKER buildx[4]插件使用是否正常 检查方式 uname -a实操 [rootmaster ~]# uname -aLinux master 3.10.0-1160.92.1.el7.x86_64 #1 SMP Tue Jun 20 11:48:01 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux查看方式 查看 Linux master 之后的内容数字是版本号紧随其后的是cpu架构。 以上述内容为例 版本号是 3.10.0-1160.92.1.el7 最开始的 3 是大版本号而我们所要求的 4.x 就是指 要使用大版本号为4 的内核版本。x86_64就是指 系统采用 x86架构 64位 计算机操作系统。 2. 升级内核版本 2.1 升级方式 本次升级我们采用使用内核文件本地升级的方式进行操作 具体分为六部分 创建存放内核文件的分区文件夹、下载内核、安装内核、更改内核启动顺序、检查默认内核版本、重启后检查内核版本 以下为分步骤详述 2.1.1 创建内核文件的存放地址 这里我们通常建议采用 /opt/下存储。或者 /root/下存储前者采用Linux 管理方式 后者采用管理员管理方式不建议随意存放或者放在非管理员用户下。 这里采用 /opt/kernel目录。 mkdir -p /opt/kernel2.1.2 下载内核 这里采用 从指定网址下载如果你的服务器不能链接外网后续我会把内核文件的百度网盘链接更新在此处可以直接下载文件传输到服务器上。 cd /opt/kernel wget http://193.49.22.109/elrepo/kernel/el7/x86_64/RPMS/kernel-ml-devel-4.19.12-1.el7.elrepo.x86_64.rpm wget http://193.49.22.109/elrepo/kernel/el7/x86_64/RPMS/kernel-ml-4.19.12-1.el7.elrepo.x86_64.rpm2.1.3 安装内核 cd /opt/kernel yum localinstall -y kernel-ml\*注意当使用关键词查找方式不能找到安装提示Nothing to do时可以指定位置依次安装。 过程如下 问题展示 [rootmaster kernel]# cd /opt/kernel yum localinstall -y kernel-ml\*Loaded plugins: fastestmirror, langpacksRepository base is listed more than once in the configurationRepository updates is listed more than once in the configurationRepository extras is listed more than once in the configurationRepository centosplus is listed more than once in the configurationSkipping: kernel-ml*, filename does not end in .rpm.Nothing to do实际情况 [rootmaster kernel]# ls kernel-ml-4.19.12-1.el7.elrepo.x86_64.rpm kernel-ml-devel-4.19.12-1.el7.elrepo.x86_64.rpm解决方式 [rootmaster kernel]# yum localinstall -y kernel-ml-4.19.12-1.el7.elrepo.x86_64.rpm[rootmaster kernel]# yum localinstall -y kernel-ml-devel-4.19.12-1.el7.elrepo.x86_64.rpm2.1.4 更改内核启动顺序 [rootmaster kernel]# grub2-set-default 0 grub2-mkconfig -o /etc/grub2.cfg Generating grub configuration file ... Found linux image: /boot/vmlinuz-4.19.12-1.el7.elrepo.x86_64 Found initrd image: /boot/initramfs-4.19.12-1.el7.elrepo.x86_64.img Found linux image: /boot/vmlinuz-3.10.0-1160.92.1.el7.x86_64 Found initrd image: /boot/initramfs-3.10.0-1160.92.1.el7.x86_64.img Found linux image: /boot/vmlinuz-3.10.0-1160.90.1.el7.x86_64 Found initrd image: /boot/initramfs-3.10.0-1160.90.1.el7.x86_64.img Found linux image: /boot/vmlinuz-3.10.0-1160.88.1.el7.x86_64 Found initrd image: /boot/initramfs-3.10.0-1160.88.1.el7.x86_64.img Found linux image: /boot/vmlinuz-3.10.0-693.el7.x86_64 Found initrd image: /boot/initramfs-3.10.0-693.el7.x86_64.img Found linux image: /boot/vmlinuz-0-rescue-01c8d25d03ff48abbbe893b5100e4d2d Found initrd image: /boot/initramfs-0-rescue-01c8d25d03ff48abbbe893b5100e4d2d.img done2.1.5 检查默认内核是不是 4.19 这里是因为我安装的版本是 4.19.12 如果你使用的是其他版本请自行变更。 [rootmaster kernel]# grubby \--default-kernel /boot/vmlinuz-4.19.12-1.el7.elrepo.x86_642.1.6 重启后检查内核版本是不是4.19 重启服务器 [rootmaster kernel] reboot 检查版本 [rootmaster ~]# uname -a Linux master 4.19.12-1.el7.elrepo.x86_64 #1 SMP Fri Dec 21 11:06:36 EST 2018 x86_64 x86_64 x86_64 GNU/Linux2.2 常见错误记录 在使用 4.x 以下内核的版本时Docker 的 Bulidx[4] 插件使用时会提示报错的 其中常出现错误展示 注意使用账户为root 错误一 [rootmaster ~]# docker run --rm --privileged docker/binfmt:66f9012c56a8316f9244ffd7622d7c21c1f6f28d Unable to find image docker/binfmt:66f9012c56a8316f9244ffd7622d7c21c1f6f28d locally 66f9012c56a8316f9244ffd7622d7c21c1f6f28d: Pulling from docker/binfmt 1537944798a7: Pull complete 2e6cfc71c612: Pull complete e4893eb1e1de: Pull complete Digest: sha256:4f7c8d7fc9ec599be42e3d4587cb1bd9baa6e548d540cddd50fabaa7ff966041 Status: Downloaded newer image for docker/binfmt:66f9012c56a8316f9244ffd7622d7c21c1f6f28d 2023/07/26 08:01:55 Cannot write to /proc/sys/fs/binfmt_misc/register: write /proc/sys/fs/binfmt_misc/register: invalid argument错误二 [rootmaster ~]# docker run --rm -t arm64v8/ubuntu uname -m Unable to find image arm64v8/ubuntu:latest locally latest: Pulling from arm64v8/ubuntu a39c84e173f0: Pull complete Digest: sha256:26c3bd3ae441c873a210200bcbb975ffd2bbf0c0841a4584f4476c8a5b8f3d99 Status: Downloaded newer image for arm64v8/ubuntu:latest WARNING: The requested images platform (linux/arm64/v8) does not match the detected host platform (linux/amd64/v3) and no specific platform was requested exec /usr/bin/uname: exec format error错误三 [rootmaster ~]# docker run --rm --privileged multiarch/qemu-user-static --reset -p yes Unable to find image multiarch/qemu-user-static:latest locally latest: Pulling from multiarch/qemu-user-static 01c2cdc13739: Pull complete 11933eee4160: Pull complete 30abb83a18eb: Pull complete 0657daef200b: Pull complete 10094524a9f3: Pull complete Digest: sha256:2c8b8fcf1d6badfca797c3fb46b7bb5f705ec7e66363e1cfeb7b7d4c7086e360 Status: Downloaded newer image for multiarch/qemu-user-static:latest Setting /usr/bin/qemu-alpha-static as binfmt interpreter for alpha sh: write error: Invalid argument sh: write error: Invalid argument Setting /usr/bin/qemu-arm-static as binfmt interpreter for arm Setting /usr/bin/qemu-armeb-static as binfmt interpreter for armeb sh: write error: Invalid argument Setting /usr/bin/qemu-sparc-static as binfmt interpreter for sparc sh: write error: Invalid argument sh: write error: Invalid argument Setting /usr/bin/qemu-sparc32plus-static as binfmt interpreter for sparc32plus sh: write error: Invalid argument Setting /usr/bin/qemu-sparc64-static as binfmt interpreter for sparc64 sh: write error: Invalid argument Setting /usr/bin/qemu-ppc-static as binfmt interpreter for ppc Setting /usr/bin/qemu-ppc64-static as binfmt interpreter for ppc64 sh: write error: Invalid argument Setting /usr/bin/qemu-ppc64le-static as binfmt interpreter for ppc64le sh: write error: Invalid argument Setting /usr/bin/qemu-m68k-static as binfmt interpreter for m68k sh: write error: Invalid argument Setting /usr/bin/qemu-mips-static as binfmt interpreter for mips sh: write error: Invalid argument Setting /usr/bin/qemu-mipsel-static as binfmt interpreter for mipsel sh: write error: Invalid argument sh: write error: Invalid argument Setting /usr/bin/qemu-mipsn32-static as binfmt interpreter for mipsn32 sh: write error: Invalid argument Setting /usr/bin/qemu-mipsn32el-static as binfmt interpreter for mipsn32el Setting /usr/bin/qemu-mips64-static as binfmt interpreter for mips64 sh: write error: Invalid argument sh: write error: Invalid argument Setting /usr/bin/qemu-mips64el-static as binfmt interpreter for mips64el Setting /usr/bin/qemu-sh4-static as binfmt interpreter for sh4 sh: write error: Invalid argument Setting /usr/bin/qemu-sh4eb-static as binfmt interpreter for sh4eb sh: write error: Invalid argument sh: write error: Invalid argument Setting /usr/bin/qemu-s390x-static as binfmt interpreter for s390x sh: write error: Invalid argument Setting /usr/bin/qemu-aarch64-static as binfmt interpreter for aarch64 sh: write error: Invalid argument Setting /usr/bin/qemu-aarch64_be-static as binfmt interpreter for aarch64_be Setting /usr/bin/qemu-hppa-static as binfmt interpreter for hppa sh: write error: Invalid argument Setting /usr/bin/qemu-riscv32-static as binfmt interpreter for riscv32 sh: write error: Invalid argument Setting /usr/bin/qemu-riscv64-static as binfmt interpreter for riscv64 sh: write error: Invalid argument Setting /usr/bin/qemu-xtensa-static as binfmt interpreter for xtensa sh: write error: Invalid argument Setting /usr/bin/qemu-xtensaeb-static as binfmt interpreter for xtensaeb sh: write error: Invalid argument Setting /usr/bin/qemu-microblaze-static as binfmt interpreter for microblaze sh: write error: Invalid argument Setting /usr/bin/qemu-microblazeel-static as binfmt interpreter for microblazeel sh: write error: Invalid argument Setting /usr/bin/qemu-or1k-static as binfmt interpreter for or1k sh: write error: Invalid argument Setting /usr/bin/qemu-hexagon-static as binfmt interpreter for hexagon sh: write error: Invalid argument3. 测试Docker 的**buildx[4]**插件使用是否正常 [rootmaster ~]# docker buildx ls NAME/NODE DRIVER/ENDPOINT STATUS PLATFORMS mybuilder * docker-container mybuilder0 unix:///var/run/docker.sock running linux/amd64, linux/arm64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6 default dockerdefault default running linux/amd64, linux/386无告警和报错内容正常使用。 4. 总结 至此完成更改。
http://www.lebaoying.cn/news/61823.html

相关文章:

  • 响应式网站建设小程序api
  • 惠州行业网站设计方案做网站赚钱嘛
  • 站长之家端口扫描品牌建设及龙头企业
  • 电商网站页面分类山儿网站建设公司
  • 天津市建设工程监理公司网站电子商务网站建设 臧良运 好不好
  • 合肥做网站是什么wordpress导入word
  • 网站自适应 如何做佛山做外贸网站平台
  • 温岭做鞋子的网站专业的建站公司推广
  • 工程施工人员招聘网站中山做网站企业
  • 网站建设 发展方向福田欧曼货车
  • 网站建设公司百家号销售类电商网站如何做优化
  • 涿州做网站的公司室内设计效果图素材网站
  • 成都网站建设网站建设哪家好推广公司新形象的营销支出
  • 商务网站开发需求分析xp花生壳做自己的网站
  • 微网站在哪建手机新机价格网站
  • 做网站的语言有哪些工业设计网站排行榜前十名有哪些
  • 东莞网站营销策划建立个网站
  • 舟山市建设信息港网站河南省百城建设提质工程网站
  • 360建设网站免费下载2003配置网站与2008的区别
  • 山东省优质高职院校建设网站网页设计作业在线网站首页
  • 开发网站的好处中山网站制作专业
  • 磁县邯郸网站建设百度收录快的发帖网站
  • 阅读分享网站模板制作投票链接哪家好厂商
  • 建设网站的公司汇总营销策划公司收费明细
  • 怎么做系统网站海外最开放的浏览器
  • 为什么建设部网站进不去网站系统使用手册
  • 重庆seo网站排名优化为企业建网站
  • 公司网站建设工作重点打电话沟通做网站
  • 网站修改解析怎么做wordpress的api
  • 网站更新要怎么做网站备案和实名认证