ITeye博客

linux

共 2 篇文章

linux内存管理命令

vmstat -s 与free -m 是比较好的观测内存的命令 刚进入运行的系统 -bash-3.2$ vmstat -s 30897940 total memory 184408 used memory 78848 active memory 67432 inactive memory 30713532 free memory 6356 buffer memory 105176 swap cache 4192956 total swap 0 used swap 4192956 free swap 369 non-nice user cpu ticks 0 nice user cpu tic…

2012-10-16 16:04 · linux

CentOS 常用命令与高级应用

1. 查看发行版本号, rpm -q centos-release 2. 在linux下rpm包就很普及,但包关联关系就得用yum,yum可以加其它源,如epel,连nginx都会推出自己的源 [nginx] name=nginx repo baseurl=http://nginx.org/packages/OS/OSRELEASE/$basearch/ gpgcheck=0 enabled=1 Replace “ OS ” with “ rhel ” or “ centos ”, depending on the distribution used, and “ OSRELEASE ” w…

2012-10-06 15:02 · linux