virtual pc : Microsoft Loopback Adapter
- font size decrease font size increase font size
- Print Email
一直使用VPC进行本机测试环境的搭建,经常会用虚拟机作为服务器来进行配置,而真实的机器也经常会作为客户端来访问服务器,有些时候在本机要单独组网。 在Win7以前的系统都是添加Loopback Adapter,方法参见【添加方法参考】。但是在Win7的“添加硬件”那里等了半天也没有出现可以手动选择的地方(不知道是不是Win7版本的问题, 正式版不知道会不会没有这个问题),在网上找了半天也没有,曾经一度放弃,很影响做测试。于是找了半天试了一些方法终于找到添加的办法,共享出来供大家参 考。
1.我的Win7版本
7600中文旗舰版
2.添加方法
用管理员身份打开“设备管理器”右键单击设备管理器窗口的计算机名->添加过时硬件->安装我手动从列表选择的硬件->选择“网络 适配器”->选择Microsoft公司下的Microsoft Loopback Adapter,就完成了添加。之后就可以配置这个内部网卡了
第一步
第二步
第三步
第四步
第五步
安装完成之后可以在网络适配器里看到刚添加的设备
【添加方法参考】
1. 在实体机安装环回适配器。
控制面板->添加硬件->手动->网络适配器->选择Microsoft公司下的Microsoft环回适配器(Vista 为中文,XP下面为Loopback Adapter)。
2. 配置环回适配器的IP地址
这是隔离内外网用的。右键点击任务栏上的网络图标->网络和共享中心->左边的“管理网络连接”->双击打开环回适配器对应的本地 连接->在TCP/IP设置中填入IP地址和子网掩码。(根据自己的需要进行配置IP)
3. 关闭防火墙
其实不需要完全关闭,只需要把环回适配器从Windows 防火墙中取消掉就可以了。
4. 配置虚拟机的网络
不需要关闭虚拟机上的操作系统,在运行的时候也可以改。Edit->Settings->左边选Networking,然后把右边相应的 Adapter选择为Microsoft 环回适配器,这样,就相当于在虚拟机和实体机之间连接了一根网线。确定后再配置虚拟机的IP,使之与实体机在同一个网段即可。记得ping一下以确定操作 正确。
( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 169 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0018 | 412696 | {main}( ) | .../index.php:0 |
2 | 0.1094 | 4262648 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.1094 | 4262648 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.3420 | 11453624 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.3428 | 11477952 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.3435 | 11533280 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.3438 | 11560680 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.3528 | 11960312 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.3528 | 11960312 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.3637 | 12611016 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.3637 | 12611016 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.3677 | 12982056 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.3698 | 13002424 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.4844 | 15819768 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.4844 | 15819768 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.4883 | 15992704 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |
- Published in Windows 7
- Read 3043 times
( ! ) Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0018 | 412696 | {main}( ) | .../index.php:0 |
2 | 0.1094 | 4262648 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.1094 | 4262648 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.3420 | 11453624 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.3428 | 11477952 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.3435 | 11533280 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.3438 | 11560680 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.3528 | 11960312 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.3528 | 11960312 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.3637 | 12611016 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.3637 | 12611016 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.3677 | 12982056 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.3698 | 13002424 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.4844 | 15819768 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.4844 | 15819768 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.4883 | 15992704 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |