ras-shell使用手册
本文介绍ras-shell的详细用法。关于ras-shell的介绍,请参考 http://rashost.com/blog/ras-shell
登录ras-shell
ras-shell是通过SSH的方式登录的。登录ras-shell需要知道下列三项信息:
- 服务器地址
- ras-shell用户名
- 密码
以上三项信息都会通过邮件的形式发送给客户,请客户保存好这封邮件,登录ras-shell的时候需要用到。 知道以上三项信息之后,就可以使用Putty等软件登录ras-shell了
ras-shell的功能
登录ras-shell后,首先会出现ras-shell的说明信息和支持的命令列表
===============================================
ras-shell, Version 0.1 (ZongZi) 2009/05/28
Copyright @ 2009 RASHOST Inc.
===============================================
All Commands:
^^^^^^^^^^^^^
q Quit ras-shell
list List the VPS
console Enter the console of the Linux VPS
start Start the VPS
pause Pause the VPS
unpause Unpause the VPS
shutdown Shutdown the VPS
halt Power off the VPS
reboot Reboot the VPS
reset Reset the VPS
rebuild Rebuild the VPS with a clean OS
shpw Show the password
chpw Change the password
addkey Add public key
ras-shell(blog.s135.com.vm) >
下面逐项介绍这些命令
退出命令 (q)
q命令退出ras-shell
查看VPS状态 (list)
list命令用来查看VPS的状态,如果VPS没有运行,list命令将会显示错误信息,这时候可以运行start命令来启动VPS
Error: Domain 'blog.s135.com.vm' does not exist.
如果VPS已经在运行,list命令将会显示类似如下的信息:
Name ID Mem VCPUs State Time(s) blog.s135.com.vm 92 128 1 -b---- 21626.1
进入VPS Console (console)
当VPS网络不通等情况下,可以用console命令来操作到VPS的控制台(Console) console命令能进入Linux VPS的控制台(Console) 如果是Windows VPS,console命令会显示出如何连接到Windows VPS的控制台的方法
启动VPS (start)
start命令用来启动VPS,当VPS已经启动的时候,start命令将会报错
暂停VPS (pause)
pause命令用来暂停VPS的运行
让暂停的VPS重新运行 (unpause)
unpause命令可以让暂停的VPS重新运行
关闭VPS (shutdown)
shutdown命令用来关闭VPS。 对Linux VPS来说,shutdown命令就是正常的关机。大多数情况下,shutdown命令可以正常关闭Linux VPS,但是在少数异常情况(比如VPS特别繁忙或者内存不足时)下,shutdown并不能关闭LinuxVPS。 对Windows VPS来说,shutdown命令就像是切断电源,VPS将立刻关闭。没有一个ras-shell命令能让Windows VPS正常关闭(就像连接到Windows的远程桌面点击关机按钮那样)。所以我们建议尽量通过远程桌面的方式关闭Windows VPS。
强制关闭VPS (halt)
halt命令就像切断VPS的电源一样强制关闭VPS,
重启启动 (reboot)
reboot命令可以让Linux VPS正常重新启动,但是在少数异常情况(比如VPS特别繁忙或者内存不足时)下有可能重启失败。 reboot命令对于Windows VPS来说,就像切断电源然后再正常开机。
强制重新启动 (reset)
reset命令强制重启VPS,就像切断电源然后再正常开机。
重做操作系统 (rebuild)
查看密码 (shpw)
修改密码 (chpw)
添加public key (addkey)
- 博客文章分类:
