判断vps主机是否正常使用的两大方法
方法一、通过域名访问来判断vps主机是否正常
1、如果域名无法访问,但可以ping通,也可以远程,说明vps是运行状态,请查看域名解析是否正常,ping该域名,看ping后的ip是否是vps的ip地址。
2、如果域名一直可以访问、可以ping通、可以远程,突然无法访问,ping不通,也无法远程vps服务器,说明vps已被停止。
3、如果域名解析正常,但无法访问或访问提示错误,说明是vps服务器配置问题,具体相关配置可以找vps供应商问清楚或者去美国主机侦探查找相关资料。
方法二、使用ping命令
1、在本地计算机,点击开始–运行–cmd 然后在弹出来的命令提示符窗口输入ping 你的IP地址,如果能够ping通,说明vps是运行状态,没有关机;反之,如果ping不通,也不能说明您的vps主机是关机状态,可能是因为开了防火墙,禁ping了香港机柜租用。
2、可以通过远程桌面判断
在本地计算机,点击开始–运行–mstsc 然后在弹出来的窗口中输入 ip地址(默认端口3389),如果可以远程控制,说明vps主机正在运行。
2、怎么可以测试网站是用的vps主机还是服务器
测试是服务器还是vps 最简单的方法就是放一个探针
asp有asp的探针 php也有php的探针
探针你自己放上去或者让卖个你空间的人放上去
你就看他的内存 一般服务器的内存都是很大的 2G以上
vps就很少了 256 512 而且如果别人卖你512内存的vps的话 价格都是几千/年了
你看我的探针 http://www.whjjjskfq.com/tz.php 能看到内存了吧?这就是个vps
如果是服务器 那么内存要比这个大很多 国外的服务器都是4G 8G起步的
3、一键检测VPS是Openvz还是KVM还是Xen
1、通过系统上的相关目录或文件判断
执行:ls /proc/ ,一般Xen的VPS,/proc目录下面会有xen的目录,openvz的会有vz目录。
2、执行:free -m 看内存,openvz的没有swap,当然也有xen的没有swap,但是xen的是可以加的,openvz不行。
3、执行:uname -a 有些xen的VPS里面会显示有xen。
4、执行:ifconfig 查看网卡,openvz的一般都是venet0:* ,xen的一般都是eth*。
5、通过VPS控制面板查看,像SolusVM、vePortal控制面板上都显示虚拟技术。
6、使用专门的软件:virt-what ,virt-what是一个判断当前环境所使用的虚拟技术的脚本,常见的虚拟技术基本上都能正常识别出来。
4、如何检测VPS的虚拟化技术
<
5、如何查看vps是否开启了bbr
1、打开vps的控制台,使用vps的“root”账号登录vps,然后输入vps的密码,需要注意的是如果需要粘贴密码,需要用鼠标右击控制台光标处,这时面会被自动粘贴上去:
2、在控制台中输入“lsmod | grep bbr”,然后按下键盘上的回车键:
3、按下回车键后查看结果进程中是否有bbr,如果有则表示开启了bbr,否则表示没有开启bbr:
6、如何测试得到VPS的数据包路线
电脑运行cmd
ping 你要测试的IP -t
返回数值越低说明速度越快
国内一般是28-70毫秒左右正常
国外200-280毫秒正常
可以路由器跟踪
使用WinMTR工具来测试
7、如何查看当前vps的虚拟化技术
|Update: You may be interested in [[the perl mole|perl-mole-for-virtualization-detection]] implementing these tricks.
Frequently, our customers want to install our software in a virtual machine. This can be OK, but frequently they hit a CPU, memory, or IO limit caused by running in a constrained virtual environment. When this happens, we really like to know if they're running under virtualization when we try to support them. Here's some tricks to detect, from a shell, if the system is virtualized.
The first thing to check is dmesg. On a recently-booted system, checking the 'dmesg' command output may be sufficient. Otherwise, try "cat /var/log/dmesg" instead of "dmesg"
VMWare:
# dmesg | grep -i virtual VMware vmxnet virtual NIC driver Vendor: VMware Model: Virtual disk Rev: 1.0 hda: VMware Virtual IDE CDROM Drive, ATAPI CD/DVD-ROM driveQEmu or KVM:
If the "-cpu host" option has not been used, QEmu and KVM will identify themselves as:
# dmesg | grep -i virtual CPU: AMD QEMU Virtual CPU version 0.9.1 stepping 03otherwise, the host's CPU information will be used both in dmesg, or in /proc/cpuinfo.
However, you should see something like:
$ dmesg | grep -i virtual [ 0.000000] Booting paravirtualized kernel on KVMon newer kernels that understand that they're running under paravirtualization. (Thanks to René Pfeiffer for pointing this out)
Microsoft VirtualPC:
# dmesg | grep -i virtual hda: Virtual HD, ATA DISK drive hdc: Virtual CD, ATAPI CD/DVD-ROM driveXen (thanks, wardi and others)
# dmesg | grep -i xen Xen virtual console successfully installed as tty1Virtuozzo
# dmesg (returns no output) # cat /var/log/dmesg (returns no output) # ls -al /proc/vz veinfo veinfo_redir veredir vestat vzaquota vzdataOn longer-running systems, you may need to grep /var/log/dmesg instead.
If that doesn't proce anything useful, try using dmidecode to look at the BIOS information. Frequently, there will be at least one component identifying itself as virtualized:
VMWare:
# dmidecode | egrep -i 'manufacturer|proct' Manufacturer: VMware, Inc. Proct Name: VMware Virtual PlatformMicrosoft VirtualPC:
# dmidecode | egrep -i 'manufacturer|proct' Manufacturer: Microsoft Corporation Proct Name: Virtual MachineQEMU or KVM:
# dmidecode | egrep -i 'vendor' Vendor: QEMUVirtuozzo:
# dmidecode /dev/mem: Permission deniedXen:
# dmidecode | grep -i domU Proct Name: HVM domUYou should just examine the output of dmidecode directly rather than trying to grep as above, in case the output changes. QEMU, for example, doesn't report the vendor in all versions.
Next, check disk devices for identification as virtualized:
VMWare:
# cat /proc/ide/hd*/model VMware Virtual IDE CDROM Drive # cat /proc/scsi/scsiAttached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: VMware Model: Virtual disk Rev: 1.0 Type: Direct-Access ANSI SCSI revision: 02Microsoft VirtualPC:
# cat /proc/ide/hd*/model Virtual HD Virtual CDQEMU, KVM, or Xen:
# cat /proc/ide/hd*/model QEMU HARDDISK QEMU DVD-ROMVirtuozzo:
# ls -al /dev/vzfs b-----x--- 1 root root 0, 19 2009-04-06 15:04 /dev/vzfsIf you've got tips for other virtualized environments, let me know and I'll add them to the list.
8、如何查看你的VPS是什么虚拟化架构
这个可以使用virt-what来查看自己服务器的虚拟技术。
Centos 安装virt-what : yun install virt-what
Debian/ubuntu 安装virt-what : apt-get install virt-what
装好后使用命令virt-what 即可查看Linux下VPS的架构了。
这个工具可以检查到以下虚拟化创建的VPS:
VMware、Hyper-V、VirtualPC、VirtualBox、OpenVZ / Virtuozzo、Linux-VServer、UML、IBM PowerVM Lx86 Linux/x86 emulator、Hitachi Virtualization Manager (HVM) Virtage logical 、partitioning、IBM SystemZ、Parallels、Xen、QEMU/KVM