目次
  • 一、ping
    • 起首操持权限答题
    • ping管制
  • 二、ip
    • 总结

      一、ping

      起首收拾权限答题

      docker 外执止:

      apt-get update

      报错:

      E: List directory /var/lib/apt/lists/partial is missing. - Acquire (13: Permission denied)

      答题原由:权限不够,请应用 root 用户

      料理圆案:0 显示 root 用户

      		docker exec -it id /bin/bash
      					// 改成
      		docker exec -u 0 -it id /bin/bash

      ping治理

      答题原由

      root@xxxxxxx:/# ping xx.xx.xxx.xxx
      bash: ping: co妹妹and not found

      摒挡办法

      • 进步前辈进docker
      docker exec -u 0 -it docker名或者id /bin/bash
      • 更新apt
      apt-get update

      安拆插件ping

      apt install iputils-ping
      apt install net-tools
      

      二、ip

      答题因由

      root@xxxxxxx:/# ip a
      bash: ip: co妹妹and not found

      管束法子

      apt update && apt install -y iproute二

      总结

      以上为小我私家经验,心愿能给巨匠一个参考,也心愿大师多多撑持剧本之野。

      点赞(11) 打赏

      评论列表 共有 0 条评论

      暂无评论

      微信小程序

      微信扫一扫体验

      立即
      投稿

      微信公众账号

      微信扫一扫加关注

      发表
      评论
      返回
      顶部