判斷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