iis服务器助手广告广告
返回顶部
首页 > 资讯 > 数据库 >18.EVE-NG变身Learning Centre版本及重置Web账户密码
  • 704
分享到

18.EVE-NG变身Learning Centre版本及重置Web账户密码

2024-04-02 19:04:59 704人浏览 八月长安
摘要

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


文章列表(关注微信公众号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增添监控服务器镜像,再上新高度!

18、EVE-NG变身Learning Centre版本及重置Web用户密码

19、EVE-NG优化非官方支持镜像的接口显示名称

20、......

点击查看配套视频教程



18.EVE-NG变身Learning Centre版本及重置Web账户密码



EVE-NG变身Learning Centre版本】

 

 

  看过EVE-NG官网的朋友应该都知道,Learning Center版本对于学校,培训机构来说非常实用,其中有几个极其重要的Feature。

1、多用户同时登录进行实验,与其他用户互不影响。

2、每个用户只能管理自己的实验台。

目前可以通过修改CommUnity版本,简单操作即可变身Learning Centre粗糙版。

 

注意:请一步一步跟着我做,如有步骤遗漏,可能导致失败。在做之前请做好快照!

 

 

一、登录Web界面,创建用户及拓扑

 

1、用admin账户登录,创建student1和student2用户


18.EVE-NG变身Learning Centre版本及重置Web账户密码


2、创建student1和student2用户的拓扑

 

拓扑目录结构:

student(folder)

      --- student1.unl(UNL)

      --- student2.unl(UNL)

 

18.EVE-NG变身Learning Centre版本及重置Web账户密码


18.EVE-NG变身Learning Centre版本及重置Web账户密码


3、退出admin账户并关闭所有EVE-NG的Web连接



二、上传脚本并执行,切换到Learning Center版本

 

在微信公众号中回复Plus,获取脚本


18.EVE-NG变身Learning Centre版本及重置Web账户密码


root@eve-ng:~# ls

convert_edition.sh

root@eve-ng:~# source convert_edition.sh

Current Edition: CommunityEdition

Do you want tochange mode ? [Y/N] y

Successfully!!!

Current Edition: LearninGCentre Edition

 

root@eve-ng:~#


18.EVE-NG变身Learning Centre版本及重置Web账户密码



三、修改用户默认登录路径

 

root@eve-ng:~# Mysql -ueve-ng -peve-ng

mysql: [Warning]Using a passWord on the command line interface can be insecure.

Welcome to the Mysqlmonitor.  Commands end with ; or \g.

Your MySQLconnection id is 88

Server version:5.7.18-0ubuntu0.16.04.1 (Ubuntu)

 

Copyright (c) 2000,2017, oracle and/or its affiliates. All rights reserved.

 

Oracle is areGIStered trademark of Oracle Corporation and/or its

affiliates. Othernames may be trademarks of their respective

owners.

 

Type 'help;' or '\h'for help. Type '\c' to clear the current input statement.

 

mysql> use eve_ng_db;

Reading tableinfORMation for completion of table and column names

You can turn offthis feature to get a quicker startup with -A

 

Database changed

mysql>

 

格式:update pods set lab_id='/folder/topology.unl' where username='username';

修改相应内容,本文创建的folder是student,student1的拓扑是student1,那么更改后的命令为

updatepods set lab_id='/student/student1.unl' where username='student1';

 

如下操作:

mysql> update pods set lab_id='/student/student1.unl' whereusername='student1';

Query OK, 1 rowaffected (0.01 sec)

Rows matched: 1  Changed: 1 Warnings: 0

 

mysql> update pods set lab_id='/student/student2.unl' whereusername='student2';

Query OK, 1 rowaffected (0.01 sec)

Rows matched: 1  Changed: 1 Warnings: 0

 

mysql> quit

root@eve-ng:~#

 

 

四、用student1和student2登录测试

 

1、用student1用户登录

18.EVE-NG变身Learning Centre版本及重置Web账户密码

 

直接跳转到拓扑界面,随便加几台设备

18.EVE-NG变身Learning Centre版本及重置Web账户密码


并且Close Lab是被禁用的,点击无任何反映

18.EVE-NG变身Learning Centre版本及重置Web账户密码

 

那么该用户就只能操作student1的拓扑

 

LoGout退出

18.EVE-NG变身Learning Centre版本及重置Web账户密码

 

 

2、用student2登录

18.EVE-NG变身Learning Centre版本及重置Web账户密码


 

student2的拓扑上什么都没有

18.EVE-NG变身Learning Centre版本及重置Web账户密码


Logout退出

 

3、再次切换到student1用户

18.EVE-NG变身Learning Centre版本及重置Web账户密码


 

两个用户互不影响

 

Logout退出student1用户

 


五、切换回Community版本

 

当需要管理所有用户的拓扑时,需要切换回Community版本。

 

再次运行脚本切换版本。

root@eve-ng:~# ls

convert_edition.sh

root@eve-ng:~# source convert_edition.sh

Current Edition: LearningCentre Edition

Do you want tochange mode ? [Y/N] y

Successfully!!!

Current Edition: CommunityEdition

 

root@eve-ng:~#


18.EVE-NG变身Learning Centre版本及重置Web账户密码


注意:在切换到Community版本后,千万不要用student用户登录并Close Lab,这样做会刷新student用户登录的默认路径。如果路径被刷新,那只能重新操作第三步,再次修改。

在每次切换版本后,F5刷新一下WEB

 

这时候就可以用admin账户登录,管理所有拓扑了。

18.EVE-NG变身Learning Centre版本及重置Web账户密码


为了求快,shell脚本略显粗糙,请见谅!

 

 


EVE-NG重置Web账户密码】

 

有的朋友可能会忘记Web密码,这就告诉大家如何重置

 

重置后的密码为:eve

 

root@eve-ng:~# mysql -ueve-ng -peve-ng

mysql: [Warning]Using a password on the command line interface can be insecure.

Welcome to the MySQLmonitor.  Commands end with ; or \g.

Your MySQLconnection id is 885

Server version:5.7.18-0ubuntu0.16.04.1 (Ubuntu)

 

Copyright (c) 2000,2017, Oracle and/or its affiliates. All rights reserved.

 

Oracle is aregistered trademark of Oracle Corporation and/or its

affiliates. Othernames may be trademarks of their respective

owners.

 

Type 'help;' or '\h'for help. Type '\c' to clear the current input statement.

 

mysql> use eve_ng_db;

Reading tableinformation for completion of table and column names

You can turn offthis feature to get a quicker startup with -A

 

Database changed

mysql> update users setpassword='85262adf74518bbb70c7cb94cd6159d91669e5a81edf1efebd543eadbda9fa2b'where username='admin';  

Query OK, 0 rowsaffected (0.01 sec)

Rows matched: 1  Changed: 0 Warnings: 0

 

mysql>

 

在EVE-NG中,mysql查看的密码是经过sha256哈希计算过的,所以重置密码时要填hash值。这样做不麻烦,可以在Internet网站上在线计算sha256哈希值。当然,也可以不填hash值,这是mysql的内容,就不在这儿介绍了!




本篇于2017-06-04在微信公众号EmulatedLab上发表

Maosen | 森



您可能感兴趣的文档:

--结束END--

本文标题: 18.EVE-NG变身Learning Centre版本及重置Web账户密码

本文链接: https://www.lsjlt.com/news/44079.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
  • mysql拒绝访问怎么办
    mysql 出现拒绝访问的原因和解决方法:权限问题:授予用户适当的数据库或表访问权限。防火墙或安全组:允许对 mysql 端口(3306)的入站连接。密码错误:重置 mysql 密码或使...
    99+
    2024-05-16
    mysql
  • mysql怎么比较日期大小
    mysql 中比较日期大小的方法包括:直接比较两个日期,使用 、= 运算符。使用 date_format() 函数将日期转换为字符串,然后比较字符串大小。使用 str_to_date()...
    99+
    2024-05-16
    mysql
  • mysql怎么加锁
    mysql中加锁是一种确保数据并发访问一致性的机制。加锁方式有:表级锁(对整个表加锁)和行级锁(对特定行加锁)。加锁类型有共享锁(允许读取但禁止修改)、排他锁(禁止读取和修改)和意向锁(...
    99+
    2024-05-16
    mysql 并发访问
  • mysql误删数据怎么恢复
    mysql误删数据可通过以下步骤恢复:停止数据库服务,防止数据覆盖。若开启binlog日志,可从中提取删除语句,再重新执行后将数据恢复。使用恢复工具修复表文件或恢复事务。从备份中恢复数据...
    99+
    2024-05-16
    mysql
  • 怎么判断mysql安装成功
    成功安装 mysql 的方法:检查命令行界面版本号;连接到 mysql 服务器,输入 "mysql -u root -p";创建数据库,输入 "create database test;...
    99+
    2024-05-16
    mysql linux macos 防火墙配置
  • mysql怎么修改表名
    如何修改 mysql 表名:检查当前表名:show tables;运行 rename table 语句:rename table 旧表名 to 新表名;验证更改:show tables;...
    99+
    2024-05-16
    mysql
  • mysql删除的表怎么恢复
    mysql 中已删除表的恢复方法主要涉及以下步骤:检查 binlog 日志以获取删除事务信息;使用数据恢复工具扫描数据库文件;从备份还原表数据;或联系 mysql 支持寻求帮助。 My...
    99+
    2024-05-16
    mysql 数据丢失
  • mysql复合主键怎么写
    在 mysql 中编写复合主键:在 create table 语句中使用 primary key 约束并列出字段名称。复合主键的好处包括提高查询效率、保证数据完整性和强制数据顺序。注意选...
    99+
    2024-05-16
    mysql
  • 怎么查看mysql数据库版本
    如何查看 mysql 数据库版本?连接到数据库并执行查询:select version();检查命令行或 mysql workbench 中的服务器属性。 如何查看 MySQL 数据库...
    99+
    2024-05-16
    mysql linux
  • 怎么检测mysql安装成功
    要验证 mysql 安装是否成功,请执行以下步骤:检查系统服务是否正在运行。使用 mysql 命令行工具连接到服务器。创建一个测试数据库并使用它。在数据库中创建一个测试表。插入测试数据并...
    99+
    2024-05-16
    mysql linux
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作