
centos
meigesir
share life and tech
展开
-
Unable to set localhost. This prevents creation of a GUID
linux启动项目的时候报这个相关的错误, ERROR [main] Cache.<clinit>(202) | Unable to set localhost. This prevents creation of a GUID. Cause was: centos: centosjava.net.UnknownHostException: centos: cento...原创 2014-04-30 12:08:19 · 795 阅读 · 0 评论 -
搭建Git服务器
摘自:http://lvwzhen.gitbooks.io/git-tutorial/content/chapter-9/9-3.html原创 2015-03-28 00:28:56 · 205 阅读 · 0 评论 -
linux awk命令详解
原文地址:http://www.cnblogs.com/ggjucheng/archive/2013/01/13/2858470.html 例如查看系统内存使用率:free -m |awk 'NR==2{rate=$3/$2;print rate*100"%”}’原创 2014-04-21 23:22:48 · 80 阅读 · 0 评论 -
Linux下的CPU利用率计算原理及实现
总的Cpu使用率计算计算方法:1、 采样两个足够短的时间间隔的Cpu快照,分别记作t1,t2,其中t1、t2的结构均为:(user、nice、system、idle、iowait、irq、softirq、stealstolen、guest)的9元组;2、 计算总的Cpu时间片totalCpuTimea) 把第一次的所有cpu使用情况求和,得到s1;b) ...原创 2014-04-22 15:04:46 · 284 阅读 · 0 评论