rc.local
- font size decrease font size increase font size
/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 | ||||
# | Time | Memory | Function | Location |
1 | 0.0008 | 413752 | {main}( ) | .../index.php:0 |
2 | 0.0788 | 4264144 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.0788 | 4264144 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.3099 | 11455160 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.3109 | 11479424 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.3121 | 11534752 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.3125 | 11562152 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.3242 | 11961784 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.3242 | 11961784 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.3381 | 12612488 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.3381 | 12612488 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.3448 | 12983528 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.3470 | 13003896 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.4345 | 15805488 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.4345 | 15805488 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.4369 | 15978424 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |
- Published in 主机
- Read 3035 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.0008 | 413752 | {main}( ) | .../index.php:0 |
2 | 0.0788 | 4264144 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.0788 | 4264144 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.3099 | 11455160 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.3109 | 11479424 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.3121 | 11534752 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.3125 | 11562152 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.3242 | 11961784 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.3242 | 11961784 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.3381 | 12612488 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.3381 | 12612488 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.3448 | 12983528 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.3470 | 13003896 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.4345 | 15805488 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.4345 | 15805488 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.4369 | 15978424 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |