rc.local
- font size decrease font size increase font size
- Print Email
/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.0009 | 412392 | {main}( ) | .../index.php:0 |
2 | 0.0990 | 4262248 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.0990 | 4262248 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.3619 | 11453096 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.3629 | 11477360 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.3640 | 11532688 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.3644 | 11560088 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.3755 | 11959720 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.3755 | 11959720 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.3891 | 12610424 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.3891 | 12610424 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.3952 | 12981464 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.3976 | 13001832 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.4790 | 15802880 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.4790 | 15802880 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.4812 | 15975816 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |
- Published in 主机
- Read 3036 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.0009 | 412392 | {main}( ) | .../index.php:0 |
2 | 0.0990 | 4262248 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.0990 | 4262248 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.3619 | 11453096 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.3629 | 11477360 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.3640 | 11532688 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.3644 | 11560088 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.3755 | 11959720 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.3755 | 11959720 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.3891 | 12610424 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.3891 | 12610424 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.3952 | 12981464 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.3976 | 13001832 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.4790 | 15802880 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.4790 | 15802880 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.4812 | 15975816 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |