摘要: php5.3.8 ./configure没有任何问题,make时出现如下问题,具体原因不明,在网上找到如下方法解决,mark一下make: *** [ext/mysqli/mysqli.lo] Error 1]# mkdir /xxx/mysql/include/mysql# ln -s /xxx/mysql/include/* /xxx/mysql/include/mysql //xxx表示mysql安装目录# make && make install 阅读全文
posted @ 2012-10-19 20:56 枯木-Linux 阅读(1355) 评论(0) 推荐(0) 编辑
摘要: drop_cachesWriting to this will cause thekernel to drop clean caches, dentries andinodes from memory, causing thatmemory to become free.To free pagecache: echo1 > /proc/sys/vm/drop_cachesTo free dentries and inodes: echo2 > /proc/sys/vm/drop_cachesTo free pagecache, dentries andinodes: echo3 & 阅读全文
posted @ 2012-10-19 20:48 枯木-Linux 阅读(537) 评论(0) 推荐(0) 编辑
摘要: 有文件file,内容为1234567898453613025(n个数字),编写程序实现每隔4个数字就换行。脚本编写如下:${string::N}提取前N个字符,${string:N}提取N个之后的字符# cat ./test.sh#!/bin/bash test=1234567898453613025 num_test=`echo ${#test}` num=$[num_test/4 + 1 ] for i in `seq $num` do echo -ne "${test::4}" test=`echo ${test:4}` echo done# ./test.s... 阅读全文
posted @ 2012-10-19 15:04 枯木-Linux 阅读(239) 评论(0) 推荐(0) 编辑