• ADADADADAD

    14.EVE-NG更新方便,不费劲儿![ mysql数据库 ]

    mysql数据库 时间:2024-12-25 09:58:29

    作者:文/会员上传

    简介:

    文章列表(关注微信公众号EmulatedLab,及时获取文章以及下载链接)1、EVE-NG介绍(EVE-NG最好用的模拟器,仿真环境时代来临!)
    2、EVE-NG安装过程介绍3、EVE-NG导入Dynamips和IOL4、EVE

    以下为本文的正文内容,内容仅供参考!本站为公益性网站,复制本文以及下载DOC文档全部免费。


    文章列表(关注微信公众号EmulatedLab,及时获取文章以及下载链接)

    1、EVE-NG介绍(EVE-NG最好用的模拟器,仿真环境时代来临!)

    2、EVE-NG安装过程介绍

    3、EVE-NG导入Dynamips和IOL

    4、EVE-NG导入QEMU镜像

    5、EVE-NG关联SecureCRT,VNC,Wireshark

    6、EVE-NG网卡桥接,带您走进更高级的实验

    7、EVE-NG硬盘扩容,存储海量镜像

    8、EVE-NG定制个人镜像,脚本快速导入

    9、EVE-NG容纳H3C、Huawei,吞并GNS3

    10、EVE-NG镜像来啦!打造国内最大的EVE交流圈

    11、EVE-NG镜像再次来袭,无所不能!

    12、EVE-NG镜像增持,走上神坛!

    13、EVE-NG内存不够?教您扩大虚拟内存!

    14、EVE-NG更新方便,不费劲儿!

    15、EVE-NG小众镜像,助力尝鲜!

    16、EVE-NG体验Seafile,抛弃10K/s网盘

    17、......

    点击查看配套视频教程!





    EVE-NG更新方便,不费劲儿!



    目前我的EVE-NG版本是2.0.3-59

     

     


    【在线更新】

     


    由于EVE-NG服务器在国外,你们懂的,速度很慢,不建议用在线更新!

     


    官方更新方法如下:


    apt-getupdate    

    apt-get upgrade (更新底层ubuntu可用的更新包,这里面不仅包含了eve-ng,也包含其他更新包)

     

    root@eve-ng:~#apt-get update

    Get:1 http://security.ubuntu.com/ubuntuxenial-security InRelease [102 kB]    

    Get:2 http://us.archive.ubuntu.com/ubuntuxenial InRelease [247 kB]           

    Get:3 http://us.archive.ubuntu.com/ubuntuxenial-updates InRelease [102 kB]   

    Get:4 http://security.ubuntu.com/ubuntuxenial-security/main amd64 Packages [257 kB]

    ……

    ……

    …...

     

    root@eve-ng:~#apt-get upgrade

    Reading packagelists... Done

    Building dependencytree      

    Reading stateinformation... Done

    Calculatingupgrade... Done

    The followingpackages have been kept back:

      linux-headers-generic linux-headers-virtuallinux-p_w_picpath-virtual linux-virtual

    The followingpackages will be upgraded:

      apt apt-utils distro-info-data dpkg dpkg-dev eve-ngghostscript libapt-inst2.0 libapt-pkg5.0 libdns-export162

      libdpkg-perl libfreetype6 libgs9libgs9-common libicu55 libisc-export160 libnspr4 libnss3 libnss3-nssdblibsystemd0

      libudev1 libxslt1.1 linux-libc-dev loginmysql-client-5.7 mysql-client-core-5.7 mysql-common mysql-server

      mysql-server-5.7 mysql-server-core-5.7 ntpopenvswitch-common openvswitch-pki openvswitch-switch

      openvswitch-testcontroller passwdpython3-software-properties software-properties-common systemd systemd-sysvudev

    41 upgraded, 0 newly installed, 0 to remove and 4 notupgraded.

    Need to get 68.1 MBof archives.

    After thisoperation, 65.5 kB of additional disk space will be used.

    Do you want tocontinue? [Y/n] y

     

    总共有41个包,如果更新全部,那速度非常慢。


    所以我们可以只更新eve-ng,命令:apt-get install eve-ng

    也可以先下载下来然后share给其他人。命令:apt-getdownload eve-ng

     

     

    如果您想提高速度,更新Ubuntu所有可用包,可以换国内的源。下面介绍一个最简单的方法,将Ubuntu默认的源从us改成cn,更新速度能快一点,当然,这仅仅只能提高非eve-ng的更新速度,对eve-ng相关的更新包无效!

    root@eve-ng:~# sed -i "s/us.archive/cn.archive/g" /etc/apt/sources.list     #替换us,改为cn

    root@eve-ng:~#

     

    root@eve-ng:~# apt-get update

    Get:1 http://cn.archive.ubuntu.com/ubuntuxenial InRelease [247 kB]

    Get:2 http://cn.archive.ubuntu.com/ubuntuxenial-updates InRelease [102 kB]   

    Get:3 http://cn.archive.ubuntu.com/ubuntuxenial/main amd64 Packages [1,201 kB]

    Get:4 http://cn.archive.ubuntu.com/ubuntuxenial/main i386 Packages [1,196 kB]

    Get:5 http://security.ubuntu.com/ubuntuxenial-security InRelease [102 kB]    

    Get:6 http://cn.archive.ubuntu.com/ubuntuxenial/main Translation-en [568 kB] 

    Get:7 http://cn.archive.ubuntu.com/ubuntuxenial/restricted amd64 Packages [8,344 B]

    Get:8 http://cn.archive.ubuntu.com/ubuntuxenial/restricted i386 Packages [8,684 B]

    Get:9 http://cn.archive.ubuntu.com/ubuntuxenial/restricted Translation-en [2,908 B]

    Get:10 http://cn.archive.ubuntu.com/ubuntuxenial/universe amd64 Packages [7,532 kB]

    Hit:11 http://www.eve-ng.net/repo xenialInRelease                            

    Get:12 http://cn.archive.ubuntu.com/ubuntuxenial/universe i386 Packages [7,512 kB]

    Get:13 http://cn.archive.ubuntu.com/ubuntuxenial/universe Translation-en [4,354 kB]

    Get:14 http://cn.archive.ubuntu.com/ubuntuxenial/multiverse amd64 Packages [144 kB]

    Get:15 http://cn.archive.ubuntu.com/ubuntuxenial/multiverse i386 Packages [140 kB]

    Get:16 http://cn.archive.ubuntu.com/ubuntuxenial/multiverse Translation-en [106 kB]

    Get:17 http://cn.archive.ubuntu.com/ubuntuxenial-updates/main amd64 Packages [527 kB]

    Get:18 http://cn.archive.ubuntu.com/ubuntuxenial-updates/main i386 Packages [513 kB]

    Get:19 http://cn.archive.ubuntu.com/ubuntuxenial-updates/main Translation-en [214 kB]

    Get:20 http://cn.archive.ubuntu.com/ubuntuxenial-updates/restricted amd64 Packages [7,776 B]

    Get:21 http://cn.archive.ubuntu.com/ubuntuxenial-updates/restricted i386 Packages [7,792 B]

    Get:22 http://cn.archive.ubuntu.com/ubuntuxenial-updates/restricted Translation-en [2,548 B]

    Get:23 http://cn.archive.ubuntu.com/ubuntuxenial-updates/universe amd64 Packages [460 kB]

    Get:24 http://cn.archive.ubuntu.com/ubuntuxenial-updates/universe i386 Packages [446 kB]

    Get:25 http://cn.archive.ubuntu.com/ubuntuxenial-updates/universe Translation-en [180 kB]

    Get:26 http://cn.archive.ubuntu.com/ubuntuxenial-updates/multiverse amd64 Packages [8,916 B]

    Get:27 http://cn.archive.ubuntu.com/ubuntuxenial-updates/multiverse i386 Packages [7,712 B]

    Get:28 http://cn.archive.ubuntu.com/ubuntuxenial-updates/multiverse Translation-en [4,136 B]

    Fetched 25.6 MB in22s (1,125 kB/s)                                           

    Reading packagelists... Done

     

     

     


    注意:

    如果您在国外,那么我非常建议您使用在线更新。如果您在国内,我还是建议您使用离线更新,请看下面的介绍。

     

     

     

     

    【离线更新】

     

     

    一、查看与eve-ng相关的包都有哪些

     

    root@eve-ng:~# dpkg -l | grep eve-ng

    ii  eve-ng                               2.0.3-59                                   amd64        A new generation software fornetworking labs.

    ii  eve-ng-dynamips                      2.0.2-2                                    amd64        Dynamips files for Eve-NG.

    ii  eve-ng-guacamole                     2.0.1-60                                   amd64        Guacamole for UNetLab/EVE-NG

    ii  eve-ng-qemu                          2.0.2-16                                   amd64        QEMU files for Eve-NG.

    ii  eve-ng-schema                        2.0.1-60                                   amd64        Database schema for UNetLab/EVE-NG

    ii  eve-ng-vpcs                          1.0-eve-ng                                 amd64        vpcs Eve-NG compatible

    ii  linux-headers-4.4.14-eve-ng-ukms+    4.4.14-eve-ng-ukms-brctl                   amd64        Header files related to Linux kernel,specifically,

    ii  linux-p_w_picpath-4.4.14-eve-ng-ukms+      4.4.14-eve-ng-ukms-brctl                   amd64        Linux kernel binary p_w_picpath for version4.4.14-eve-ng-ukms+

    root@eve-ng:~# 

     

    目前,最新版deb包列表如下:

     

    对比一下只有eve-ng有最新版,eve-ng_2.0.3-60

     

     

     

    二、将离线包上传到EVE

     

     

    三、SSH登录,查看当前版本

     

    root@eve-ng:~# dpkg -l eve-ng

    Desired=Unknown/Install/Remove/Purge/Hold

    |Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend

    |/Err?=(none)/Reinst-required (Status,Err: uppercase=bad)

    ||/ Name           Version      Architecture Description

    +++-==============-============-============-=================================

    ii  eve-ng        2.0.3-59     amd64        A new generation software for net

    root@eve-ng:~#

     

     

    四、更新

    root@eve-ng:~# ls   

    eve-ng_2.0.3-60_amd64.deb

    root@eve-ng:~# dpkg -i eve-ng_2.0.3-60_amd64.deb

    (Reading database... 92388 files and directories currently installed.)

    Preparing to unpackeve-ng_2.0.3-60_amd64.deb ...

    Checking MySQL... done

    Unpacking eve-ng(2.0.3-60) over (2.0.3-59) ...

    Setting up eve-ng(2.0.3-60) ...

    Processing triggersfor ureadahead (0.100.0-19) ...

    root@eve-ng:~#

     

     

     

    五、验证

     

    root@eve-ng:~# dpkg-l eve-ng

    Desired=Unknown/Install/Remove/Purge/Hold

    |Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend

    |/Err?=(none)/Reinst-required (Status,Err: uppercase=bad)

    ||/ Name           Version      Architecture Description

    +++-==============-============-============-=================================

    ii  eve-ng        2.0.3-60     amd64        A new generation software for net

    root@eve-ng:~#

     

     

     

     

    当然,想更新dynamips、vpcs等其他包,也可以用同样方法!这里不详细介绍了……

     

     

    ……其他更新包已经全部上传到QQ群中……

     



    EmulatedLab QQ群,期待您的加入!

    关注微信公众号EmulatedLab,及时获取更新文章和下载链接!


    本篇于2017-05-07在微信公众号EmulatedLab上发表

    Maosen | 森


    14.EVE-NG更新方便,不费劲儿!.docx

    将本文的Word文档下载到电脑

    推荐度:

    下载
    热门标签: 网络模拟器gns3