net use与shutdown配合使用,本机重启远程服务器
- font size decrease font size increase font size
- Print Email
通过shutdown命令远程重启服务器的方法。
仔细想了想,又在网上找了相关的资料。通过如下两条命令,解决此问题。
net use \\192.168.0.10 123456/user:administrator
shutdown -r -m \\192.168.0.10 –t 0
其中要先执行第一条命令,执行该命令后,我们便给服务器的administrator用户授予了远程重启的权限。
然后我们在执行第二条命令,就可以在本机重启远程的服务器了。
PS:一、我们在使用上述两条命令时,请注意中间的空格,否则在使用过程中系统会提示相关的错误信息
二、其实通过上述的命令我们还可以远程关机,只要我们把第二条命令稍微修改一下即可。关机命令如下:
shutdown -s -m \\192.168.0.10 –t 0
三、使用此命令中的第一条时,必须要知道服务器上管理员帐户和密码
Last modified onSaturday, 05 January 2013 13:07
( ! ) 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.0010 | 413544 | {main}( ) | .../index.php:0 |
2 | 0.0781 | 4263976 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.0781 | 4263976 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.3070 | 11455256 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.3076 | 11479952 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.3084 | 11535280 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.3087 | 11562680 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.3164 | 11962312 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.3164 | 11962312 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.3255 | 12613016 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.3255 | 12613016 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.3295 | 12984056 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.3323 | 13004424 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.4176 | 15832728 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.4176 | 15832728 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.4195 | 16005664 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |
- Published in Windows 7
- Read 3432 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.0010 | 413544 | {main}( ) | .../index.php:0 |
2 | 0.0781 | 4263976 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.0781 | 4263976 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.3070 | 11455256 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.3076 | 11479952 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.3084 | 11535280 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.3087 | 11562680 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.3164 | 11962312 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.3164 | 11962312 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.3255 | 12613016 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.3255 | 12613016 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.3295 | 12984056 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.3323 | 13004424 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.4176 | 15832728 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.4176 | 15832728 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.4195 | 16005664 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |