电路图:升级:sudo apt-get updatesudo apt-get
upgrade加载驱动:sudo modprobe w1-gpio sudo modprobe w1-therm查看:lsmod 查看w1模块是否载入cat
/sys/bus/w1/devices/28-*/w1_slav...
分类:
其他好文 时间:
2014-06-29 12:06:30
阅读次数:
217
yum配置与使用(很详细)yum的配置一般有两种方式,一种是直接配置/etc目录下的yum.conf文件,另外一种是在/etc/yum.repos.d目录下增加.repo文件。一、yum的配置文件$cat/etc/yum.conf[main]cachedir=/var/cache/yum#yum下载...
分类:
其他好文 时间:
2014-06-11 23:11:34
阅读次数:
376
Problems with mmm for mysqlposted inMySQLby
shlomi原文:http://code.openark.org/blog/mysql/problems-with-mmm-for-mysql出于兴趣和研究目的翻译了此文,最近也看了大众点评关于后台使用MMM来做...
分类:
数据库 时间:
2014-06-11 13:17:05
阅读次数:
319
Lesson 1Pumas are large, cat-like animals which
are found in America. When reports came into London Zoo that a wild puma had
been spotted forty-five m...
分类:
其他好文 时间:
2014-06-06 14:08:51
阅读次数:
210
1、几种快速清空文件内容的方法: $ : > filename #其中的 : 是一个占位符,
不产生任何输出. $ > filename $ echo “” > filename $ echo /dev/null > filename
$ echo > filename $ cat /d...
分类:
系统相关 时间:
2014-06-06 09:54:16
阅读次数:
393
1、sort将文件的每一行作为一个单位,相互比较,比较原则是从首字符向后,依次按ASCII码值进行比较,最后将他们按升序输出。[root@rusky
~]# cat seq.txt bananaapplepearorange[root@rusky ~]# sort seq.txt #默认升序a...
分类:
系统相关 时间:
2014-06-04 15:37:33
阅读次数:
397
cat /proc/$(pgrep helloworld)/status | grep Vm
分类:
其他好文 时间:
2014-06-03 15:00:14
阅读次数:
183
实例:、将文件file中出现的"abc"替换为"xyz"# cat file | tr
"abc" "xyz" >
new_file【注意】这里,凡是在file中出现的"a"字母,都替换成"x"字母,"b"字母替换为"y"字母,"c"字母替换为"z"字母。而不是将字符串"abc"替换为字符串"xyz...
分类:
其他好文 时间:
2014-06-02 11:41:01
阅读次数:
231
1、图形化最小安装debian7.5操作系统2、更改debian的apt源配置文件/etc/apt/sources.listroot@duan:~#cat/etc/apt/sources.list
debhttp://ftp.de.debian.org/debianwheezymaincontribnon-free
deb-srchttp://ftp.de.debian.org/debianwheezymaincontribnon-free3、更新apt,并..
分类:
其他好文 时间:
2014-06-02 10:35:03
阅读次数:
379
root@OpenstackIcehouse2:~# cat
/etc/nova/nova-compute.conf
[DEFAULT]compute_driver=libvirt.LibvirtDriver[libvirt]virt_type=qemulibvirt_inject_partitio...
分类:
其他好文 时间:
2014-06-02 10:23:16
阅读次数:
347