rc.local

/etc/rc.d/rc.local似乎是很多linux系统管理员的偏爱,因为凡是需要随系统自动启动的服务、程序等,只要系统没有提供Sys V风格的启动脚本,就把这些需求都塞到/etc/rc.d/rc.local。

当然,绝大部分情况下,你会发现这一切都工作得很正常,看上去也很美好。不过,当你遇到了一些诡异的问题的时候,也许你应该好好的去看看/etc/rc.d/rc.local里都写了什么了?

虽然/etc/rc.d/rc.local 的描述是你可以把你需要的自动启动的程序放到这里,不过那仅仅只是限于没有别的地方可以放置了,或者说系统也没有提供其他办法了,我们才这么干,然而实际 上,我碰到的很多/etc/rc.d/rc.local里放置的内容,其实系统提供了更好的处理方式

Last modified onSaturday, 05 January 2013 13:22

( ! ) 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.0009412392{main}( ).../index.php:0
20.09904262248Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.09904262248Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.361911453096Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.362911477360Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.364011532688Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.364411560088require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.375511959720K2ControllerItem->execute( ).../k2.php:64
90.375511959720K2ControllerItem->display( ).../BaseController.php:710
100.389112610424K2ControllerItem->display( ).../item.php:78
110.389112610424K2ControllerItem->display( ).../controller.php:19
120.395212981464Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.397613001832K2ViewItem->display( ).../ViewController.php:102
140.479015802880K2ViewItem->display( ).../view.html.php:742
150.479015802880K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.481215975816include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
  • Published in 主机
  • Read 3036 times
More in this category: « linux 查找目录 webmin »

( ! ) 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.0009412392{main}( ).../index.php:0
20.09904262248Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.09904262248Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.361911453096Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.362911477360Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.364011532688Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.364411560088require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.375511959720K2ControllerItem->execute( ).../k2.php:64
90.375511959720K2ControllerItem->display( ).../BaseController.php:710
100.389112610424K2ControllerItem->display( ).../item.php:78
110.389112610424K2ControllerItem->display( ).../controller.php:19
120.395212981464Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.397613001832K2ViewItem->display( ).../ViewController.php:102
140.479015802880K2ViewItem->display( ).../view.html.php:742
150.479015802880K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.481215975816include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
back to top