導航:首頁 > IDC知識 > 怎麼看自己的vps

怎麼看自己的vps

發布時間:2021-03-29 23:26:13

1、怎麼查看自己的vps是否安裝了directadmin

咨詢你的vps運營商

2、如何查看當前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 drive

QEmu 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 03

otherwise, 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 KVM

on 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 drive

Xen (thanks, wardi and others)

# dmesg | grep -i xen Xen virtual console successfully installed as tty1

Virtuozzo

# dmesg (returns no output)   # cat /var/log/dmesg (returns no output)   # ls -al /proc/vz veinfo  veinfo_redir  veredir  vestat  vzaquota  vzdata

On 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 Platform

Microsoft VirtualPC:

# dmidecode | egrep -i 'manufacturer|proct'  Manufacturer: Microsoft Corporation  Proct Name: Virtual Machine

QEMU or KVM:

# dmidecode | egrep -i 'vendor'  Vendor: QEMU

Virtuozzo:

# dmidecode  /dev/mem: Permission denied

Xen:

# dmidecode | grep -i domU        Proct Name: HVM domU

You 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: 02

Microsoft VirtualPC:

# cat /proc/ide/hd*/model Virtual HD Virtual CD

QEMU, KVM, or Xen:

# cat /proc/ide/hd*/model QEMU HARDDISK QEMU DVD-ROM

Virtuozzo:

# ls -al /dev/vzfs b-----x--- 1 root root 0, 19 2009-04-06 15:04 /dev/vzfs

If you've got tips for other virtualized environments, let me know and I'll add them to the list.

3、VPS網速查詢,ping查詢方法,怎麼看自己的VPS是否掉線?

從你的截圖來看.現在VPS是不通的.除非你設置了禁PING.否則這個時候你是打不開網站的.出現網路不通的情況.大多是由於機房的網路故障或者是死機造成的.需要找你的服務商協助解決.
而網站平時訪問速度慢的原因就比較多了.比如說最常見的機房網路不穩定.網站程序出錯.網站首頁載入內容過多.網站訪問量大導致CPU或者帶寬跑滿.被攻擊等.建議你在IP可以PING通的情況下.找各個地區的朋友幫你做下測試.也可以藉助於卡卡測速網這樣的網站來測試全國各地.各種線路用戶訪問你網站的速度.並做下路由追蹤.看到在哪一個環節出現了問題. 4M是指的帶寬.帶寬主要是決定了你網站同一時間能承載的最多訪問量.假如你的網站目前只有很小的訪問量.那麼帶寬的大小並不會直接影響到你網站的訪問速度.你也可以登錄伺服器.然後在任務管理器中查看聯網.裡面會顯示帶寬的使用情況.

4、怎樣才能看出來自己使用的是獨立伺服器還是vps

VPS 在系統設備管理器里是看不到CPU 的而且VPS 的主伺服器一般都是性能很好的 志強CPU XEON 這樣的CPU 在 任務管理器里。顯示的 CPU表 最差也是 2個雙核志強。那就是4個表如果你看到的 只有1個。或者 CPU 是 雙核志強。但是任務管理器里只有2個表。那肯定就是VPS 了

5、怎麼看自己VPS是否是雙線的呢?

其實無法自己在系統里查看所用VPS線路的. 但可以用其他的一些方法.比如說用PING命令做下PING值測試.電信與網通互訪的速度比較慢.如果你是用的雙線的話.那麼無論你用電信PING還是用網通PING.結果都不會相差太多.另外也可以在百度上輸入你的IP搜索看下.如果是電信或者網通單線的話.一般會顯示機房所在地的名字.但如果是雙線的話.一般顯示的是機房運營商的名字.
希望以上回答對你有所幫助.大家有伺服器相關問題需要幫忙的可以找我

6、如何得到我的VPS信息

VPS購買成功 一般在管理查詢查詢VPS產品信息 

如IP 內存等等!

特網科技VPS管理版面


與怎麼看自己的vps相關的知識