PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : با چه دستوری از مقدار رم و هارد و cpu واقعی سرور لینوکسی مطلع شویم؟



Amin007
February 15th, 2015, 11:09
سلام.

از طریق ssh با چه دستوری میشه از مقدار رم و هارد و cpu واقعی سرور لینوکسی مطلع شویم؟

MahanDev
February 15th, 2015, 11:21
با دستور top میتوانید رم سرور را مشاهده نمایید
و با دستور df -h میزان هارد سرور را
باتشکر

Yas-Host
February 15th, 2015, 11:25
رم : free -m
سی پی یو : cat /proc/cpuinfo
هارد دیسک : fdisk -l

Rozhin Karimi
February 15th, 2015, 11:25
همونطوری که دوستمون بالا گفت با اون دو دستور میشه منابع رو دید
میتونید برای اطلاعات بیشتر به لینک زیر برید :
System Resources (http://www.tldp.org/LDP/sag/html/system-resources.html)
http://www.tecmint.com/command-line-tools-to-monitor-linux-performance/

vps2015
April 30th, 2015, 12:18
هارد دیسک : fdisk -l

من دستور بالا رو زدم این نوشته ها اومد:

Disk /dev/sda: 107.4 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0007c4bb


Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 10444 83373056 8e Linux LVM


Disk /dev/mapper/VolGroup-lv_root: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000




Disk /dev/mapper/VolGroup-lv_swap: 4227 MB, 4227858432 bytes
255 heads, 63 sectors/track, 514 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000




Disk /dev/mapper/VolGroup-lv_home: 27.5 GB, 27455913984 bytes
255 heads, 63 sectors/track, 3337 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


یعنی هارد سرورم چقدر هست؟

با دستور
df -h این اومد:



Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
50G 8.1G 39G 18% /
tmpfs 1.9G 24K 1.9G 1% /dev/shm
/dev/sda1 477M 25M 427M 6% /boot
/dev/mapper/VolGroup-lv_home
26G 19G 5.6G 77% /home