Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有人知道如何使用 sysinfo 来获取交换内存、已用内存、可用内存、平均负载、总物理内存、总缓存内存等信息。我是 perl 的新手。
提前致谢。
sysinfo
use Linux::SysInfo qw/sysinfo/; my $si = sysinfo; print "$_: $si->{$_}\n" for keys %$si;