在亚马逊AWS中重新启动远程计算机
我想重新启动亚马逊 AWS 上的一台服务器。 我开始编写一个应用程序来执行此操作。 但在尝试连接到远程服务器时实际上受到了打击。
尝试 { ProcessStartInfo startinfo = new ProcessStartInfo("shutdown.exe", "-r /m\IP 地址"); 进程.Start(startinfo); 这
正在努力重新启动正在运行的本地计算机。
我是否缺少一些与 IPAddress 一起传递的参数?
任何帮助将不胜感激。
谢谢
I want to restart one of my servers on the amazon AWS.
I started to write an app that does this.
but practically struck when attempting to connect to the remote server.
try
{
ProcessStartInfo startinfo = new ProcessStartInfo("shutdown.exe", "-r /m\IP Address");
Process.Start(startinfo);
}
this is working to restart the local computer it is running on.
am i missing some parameters to pass along with IPAddress here?
any help would be greatly appreciated.
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看看这个...
http://docs.amazonwebservices.com/AWSEC2/latest/ CommandLineReference/
基本上,从远程系统发出 ec2-reboot-instances 命令来重新启动您的实例。
Take a look at this...
http://docs.amazonwebservices.com/AWSEC2/latest/CommandLineReference/
Basically, from a remote system issue an ec2-reboot-instances command to restart your instance.
我想做的就是发出一个 Reboot-Instance 命令,并实际创建一个 EC2 实例对象。
做得正确,它就开始工作了。
All i was trying to do is to issue a Reboot-Instance command with actually creating an EC2 instance object created.
Did that correctly and it started working.