debian 下通过shell获取网卡的ip地址和mac地址
- font size decrease font size increase font size
- Print Email
ip=`ifconfig eth0 | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'`
mac=`ifconfig | grep HWaddr | awk -F" " '{print $5}'`
Last modified onSunday, 14 October 2012 04:07
( ! ) 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.0011 | 403560 | {main}( ) | .../index.php:0 |
2 | 0.0577 | 1321536 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.0577 | 1321536 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.2137 | 2979904 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.2143 | 3004616 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.2150 | 3059944 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.2151 | 3077000 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.2209 | 3221088 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.2209 | 3221088 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.2264 | 3490168 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.2264 | 3490168 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.2274 | 3508688 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.2285 | 3529104 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.2718 | 4001632 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.2718 | 4001632 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.2740 | 4176352 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |
- Published in Debian
- Read 3424 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.0011 | 403560 | {main}( ) | .../index.php:0 |
2 | 0.0577 | 1321536 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.0577 | 1321536 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.2137 | 2979904 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.2143 | 3004616 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.2150 | 3059944 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.2151 | 3077000 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.2209 | 3221088 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.2209 | 3221088 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.2264 | 3490168 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.2264 | 3490168 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.2274 | 3508688 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.2285 | 3529104 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.2718 | 4001632 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.2718 | 4001632 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.2740 | 4176352 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |