( ! ) Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKBase.class.php on line 114
Call Stack
#TimeMemoryFunctionLocation
10.0008415688{main}( ).../index.php:0
20.20084721312Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.864217195736Joomla\CMS\Application\SiteApplication->render( ).../CMSApplication.php:202
40.864417195792Joomla\CMS\Application\SiteApplication->render( ).../SiteApplication.php:778
50.864517196168Joomla\CMS\Document\HtmlDocument->parse( ).../CMSApplication.php:1030
60.864517196168Joomla\CMS\Document\HtmlDocument->_fetchTemplate( ).../HtmlDocument.php:545
70.864617196264Joomla\CMS\Document\HtmlDocument->_loadTemplate( ).../HtmlDocument.php:730
80.865117236184require( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/component.php' ).../HtmlDocument.php:668
90.870917533456GKTemplate->__construct( ).../component.php:31
100.879917717840GKTemplateMenu->getMenuType( ).../gk.framework.php:84
110.880717762696require_once( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKMenu.php' ).../helper.menu.php:19

( ! ) Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKHandheld.php on line 76
Call Stack
#TimeMemoryFunctionLocation
10.0008415688{main}( ).../index.php:0
20.20084721312Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.864217195736Joomla\CMS\Application\SiteApplication->render( ).../CMSApplication.php:202
40.864417195792Joomla\CMS\Application\SiteApplication->render( ).../SiteApplication.php:778
50.864517196168Joomla\CMS\Document\HtmlDocument->parse( ).../CMSApplication.php:1030
60.864517196168Joomla\CMS\Document\HtmlDocument->_fetchTemplate( ).../HtmlDocument.php:545
70.864617196264Joomla\CMS\Document\HtmlDocument->_loadTemplate( ).../HtmlDocument.php:730
80.865117236184require( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/component.php' ).../HtmlDocument.php:668
90.870917533456GKTemplate->__construct( ).../component.php:31
100.896217891024GKTemplateMenu->getMenuType( ).../gk.framework.php:85
Linux中重启的两个命令:reboot和init 6之间的区别
Logo
Print this page

Linux中重启的两个命令:reboot和init 6之间的区别

init命令用于改变操作系统的运行级别。
Init 6是重新启动机器。
reboot也是重新启动机器。
那么这两个命令到底有什么区别呢?
对这两个操作使用man命令看到的内容如下:
"init 6" 基于一系列/etc/inittab文件,并且每个应用都会有一个相应shutdown脚本。
'init 6' 调用一系列shutdown脚本(/etc/rc0.d/K*)来使系统优雅关机;
'reboot'并不执行这些过程,reboot更是一个kernel级别的命令,不对应用使用shutdown脚本。 .
我们应该在通常情况下使用 init 6.
reboot - reboot performs a sync(1M) operation on the disks, and then a
multi- user reboot is initiated. See init(1M) for details.
init 6 Stop the operating system and reboot to the
state defined by the initdefault entry in
/etc/inittab.
在出问题的状况下或强制重启时使用reboot.


( ! ) 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
#TimeMemoryFunctionLocation
10.0008415688{main}( ).../index.php:0
20.20084721312Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.20084721312Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.567712449816Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.568812474592Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.570212529920Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.570612558744require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.593812994152K2ControllerItem->execute( ).../k2.php:64
90.593812994152K2ControllerItem->display( ).../BaseController.php:710
100.651413719352K2ControllerItem->display( ).../item.php:78
110.651413719352K2ControllerItem->display( ).../controller.php:19
120.658114115720Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.679614136088K2ViewItem->display( ).../ViewController.php:102
140.840517102288K2ViewItem->display( ).../view.html.php:742
150.840517102288K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.842917282488include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701

( ! ) 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
#TimeMemoryFunctionLocation
10.0008415688{main}( ).../index.php:0
20.20084721312Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.20084721312Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.567712449816Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.568812474592Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.570212529920Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.570612558744require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.593812994152K2ControllerItem->execute( ).../k2.php:64
90.593812994152K2ControllerItem->display( ).../BaseController.php:710
100.651413719352K2ControllerItem->display( ).../item.php:78
110.651413719352K2ControllerItem->display( ).../controller.php:19
120.658114115720Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.679614136088K2ViewItem->display( ).../ViewController.php:102
140.840517102288K2ViewItem->display( ).../view.html.php:742
150.840517102288K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.842917282488include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
Template Design © Joomla Templates | GavickPro. All rights reserved.