( ! ) 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.0008415896{main}( ).../index.php:0
20.10424721264Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.492717177800Joomla\CMS\Application\SiteApplication->render( ).../CMSApplication.php:202
40.492817177856Joomla\CMS\Application\SiteApplication->render( ).../SiteApplication.php:778
50.492817178232Joomla\CMS\Document\HtmlDocument->parse( ).../CMSApplication.php:1030
60.492817178232Joomla\CMS\Document\HtmlDocument->_fetchTemplate( ).../HtmlDocument.php:545
70.492917178328Joomla\CMS\Document\HtmlDocument->_loadTemplate( ).../HtmlDocument.php:730
80.493217218248require( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/component.php' ).../HtmlDocument.php:668
90.496917515520GKTemplate->__construct( ).../component.php:31
100.502417699904GKTemplateMenu->getMenuType( ).../gk.framework.php:84
110.502917744760require_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.0008415896{main}( ).../index.php:0
20.10424721264Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.492717177800Joomla\CMS\Application\SiteApplication->render( ).../CMSApplication.php:202
40.492817177856Joomla\CMS\Application\SiteApplication->render( ).../SiteApplication.php:778
50.492817178232Joomla\CMS\Document\HtmlDocument->parse( ).../CMSApplication.php:1030
60.492817178232Joomla\CMS\Document\HtmlDocument->_fetchTemplate( ).../HtmlDocument.php:545
70.492917178328Joomla\CMS\Document\HtmlDocument->_loadTemplate( ).../HtmlDocument.php:730
80.493217218248require( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/component.php' ).../HtmlDocument.php:668
90.496917515520GKTemplate->__construct( ).../component.php:31
100.504417873088GKTemplateMenu->getMenuType( ).../gk.framework.php:85
CentOS中设置系统级代理
Logo
Print this page

CentOS中设置系统级代理

YUM代理设置
 
编辑/etc/yum.conf,在最后加入
# Proxy
proxy=http://username:password@proxy_ip:port/
 
也可以使用proxy_username和proxy_password来配置代理的用户名和密码
 
这样的配置完成后,所有的用户在使用yum时,都会使用代理,可以说是全局代理。
 
如果需要为单独的用户配置代理,可以在用户的~/.bash_profile中设置。
 
Wget的代理设置
 
编辑/etc/wgetrc,在最后加入
# Proxy
http_proxy=http://username:password@proxy_ip:port/
ftp_proxy=http://username:password@proxy_ip:port/
 
系统全局代理
 
如果需要为某个用户设置一个系统级的代理,可以在~/.bash_profile中设置:
 
http_proxy="http://username:password@proxy_ip:port"
export_http_proxy
 
上面的设置只对某个用户生效,如果要对所有系统用户生效,写在/etc/profile中就可以了。

( ! ) 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.0008415896{main}( ).../index.php:0
20.10424721264Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.10424721264Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.360812449608Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.362012474128Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.363312529456Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.363612558280require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.373512993688K2ControllerItem->execute( ).../k2.php:64
90.373612993688K2ControllerItem->display( ).../BaseController.php:710
100.384813718888K2ControllerItem->display( ).../item.php:78
110.384813718888K2ControllerItem->display( ).../controller.php:19
120.390614115256Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.393914135624K2ViewItem->display( ).../ViewController.php:102
140.484617082032K2ViewItem->display( ).../view.html.php:742
150.484617082032K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.488117262232include( '/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.0008415896{main}( ).../index.php:0
20.10424721264Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.10424721264Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.360812449608Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.362012474128Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.363312529456Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.363612558280require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.373512993688K2ControllerItem->execute( ).../k2.php:64
90.373612993688K2ControllerItem->display( ).../BaseController.php:710
100.384813718888K2ControllerItem->display( ).../item.php:78
110.384813718888K2ControllerItem->display( ).../controller.php:19
120.390614115256Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.393914135624K2ViewItem->display( ).../ViewController.php:102
140.484617082032K2ViewItem->display( ).../view.html.php:742
150.484617082032K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.488117262232include( '/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.