Windows 7怎样开启telnet命令

Posted by zuzhihui in Windows技术 on 2011/01/13 with No Comments

当VPS上面的网站不能访问的时候,可以telnet VPS的80端口看看是什么问题。Windows 7下默认没有开启telnet命令。需要进入控制面板,然后选择“程序”→“打开或关闭Windows功能”,在打开的窗口中勾选Telnet客户端即可。

x116 dom0 重启

Posted by zuzhihui in 最新消息 on 2011/01/13 with No Comments

x116 dom0连续运行171天,现在机器感觉已经慢了,今天下午重启。

[root@x116 xen]# uptime
08:53:01 up 171 days, 21:12, 2 users, load average: 1.47, 0.99, 0.70
[root@x116 xen]# dmesg
ata2: spurious interrupt (irq_stat 0×8 active_tag -84148995 sactive 0xc003)
ata2: spurious interrupt (irq_stat 0×8 active_tag -84148995 sactive 0×0)
ata2: spurious interrupt (irq_stat 0×8 active_tag -84148995 sactive 0x7f)
ata2: spurious interrupt (irq_stat 0×8 active_tag -84148995 sactive 0x77b7eff)
ata2: spurious interrupt (irq_stat 0×8 active_tag -84148995 sactive 0xe7f3fff)
ata2: spurious interrupt (irq_stat 0×8 active_tag -84148995 sactive 0x77ffffe)
ata2: spurious interrupt (irq_stat 0×8 active_tag -84148995 sactive 0x79fffeeb)
ata2: spurious interrupt (irq_stat 0×8 active_tag -84148995 sactive 0x7fffff8)
ata2: spurious interrupt (irq_stat 0×8 active_tag -84148995 sactive 0×0)
ata2: spurious interrupt (irq_stat 0×8 active_tag -84148995 sactive 0xce)
eth0: port 6(tap276.0) entering disabled state
device tap276.0 left promiscuous mode
eth0: port 6(tap276.0) entering disabled state
eth0: port 33(tap230.0) entering disabled state
device tap230.0 left promiscuous mode
eth0: port 33(tap230.0) entering disabled state
PM: Removing info for xen-backend:vfb-276-0
PM: Removing info for xen-backend:console-276-0
PM: Removing info for xen-backend:vbd-276-768
PM: Removing info for xen-backend:vbd-276-832
eth0: port 7(x221.227) entering disabled state

在CentOS下监控内存和负载情况

Posted by yar999 in Linux技术 on 2011/01/11 with No Comments

ssh登录之后,执行下面的命令下载并安装监控脚本的安装脚本


wget dl.rashost.com/jk/setup.sh
sh setup.sh

如果您没有安装任何邮件服务器软件,您可以执行下面的命令安装postfix

yum install postfix -y
chkconfig postfix on
/etc/init.d/postfix restart

默认情况下,监控内存低于20m负载高于或等于10的时候给您设定的邮箱发送邮件

您可以修改
/ras/jk/jk.sh中的

mt=your@domain.com
为您的邮箱地址.比如:
mt=ystest@intel.com

您可以根据实际需要修改需要监控当内存少于40m的时候发邮件提示您
例如:
修改
jm=20

jm=40

您可以根据实际需要修改需要监控当负载高于5的时候发邮件提示您
例如:
修改
jl=10

jl=5

centos下使用rrdtool统计vps的负载情况

Posted by yar999 in vps技术 on 2011/01/09 with No Comments

ssh登录vps之后,执行下面的命令安装rrdtool相关的软件包:

mkdir -p /tmp/load
yum install -y libart_lgpl.i386 freetype.i386 libpng perl
wget http://packages.sw.be/rrdtool/perl-rrdtool-1.2.23-1.el5.rf.i386.rpm
wget http://packages.sw.be/rrdtool/rrdtool-1.2.23-1.el5.rf.i386.rpm
rpm -ivh *.rpm
wget http://dl.rashost.com/loadsetup/setup.sh
sh setup.sh

默认情况下会将生成的统计图片和数据库存放在

/var/www/html/load

目录下。
您可以修改load统计脚本(/ras/load/load)中存放的路径

basedir=/var/www/html/load

改为

basedir=/your/website/doucmentroot

例如,您的网站根目录是
/home/www
您可以在/home/www/目录下新建一个load的目录
然后修改/ras/load/load中的

basedir=/var/www/html/load



basedir=/home/www/load

这样您就可以通过访问

http://yourdomain.com/load

来查看您的vps负载统计情况了

x108 dom0 重启

Posted by zuzhihui in 最新消息 on 2011/01/07 with No Comments

x108 IO大,负载大。连续运行时间157天。

[root@x108 ~]# w
18:36:38 up 157 days, 21:39, 2 users, load average: 6.03, 6.43, 6.61

sdb3状态是F,dom0今天重启。

x103 dom0 重启

Posted by zuzhihui in 最新消息 on 2011/01/07 with No Comments

x103 dom0由于IO大,导致VPS缓慢。连续运行时间209天。日志报错:

ata1: spurious interrupt (irq_stat 0x8 active_tag -84148995 sactive 0x7fff1fff)

于2011年1月7日重启,重启后把sda3重新加入raid:


mdadm /dev/md2 --add /dev/sda3

VPS死机后怎么重启?

Posted by zuzhihui in vps技术 on 2011/01/01 with No Comments

VPS死机后,或者VPS内存耗尽后,客户可以自己动手重启VPS。只要在ras-shell里面运行reset命令即可。

关于怎么进入ras-shell,参考 ras-shell使用手册

ras-shell不但可以重启VPS,还可以重装VPS,重装VPS参见 怎样给VPS重装系统(Rebuild VPS)

Back to Top

2007-2017 © 北京瑞豪开源科技有限公司 京ICP备13004995号-2