寻觅生命中的那一片浅草......

发布者 夜行人

恢复MySQL的root密码

# /usr/libexec/mysqld –skip-grant-tables

进去后

mysql > use mysql;

mysql > update user set password=password(“123456”) where user=’root’;

mysql > flush privileges;

关于航空母舰

专业配各种航空母舰钥匙,换火化塞,修理线路,打蜡,喷漆,通管道,打磨毛边,各种配件,高价回收旧舰母。

专业航空母舰打蜡,喷漆,通管道,各种配件,高价回收旧舰空母舰。专业办理各种航母驾驶执照。

好好笑!!

Linux: /var/log/btmp文件

/var/log/btmp这个文件记录错误的登录尝试.
/var/log/btmp这个文件不是安装的选项,可以用命令

touch /var/log/btmp

生成一个这样的文件,就可以了.

执行lastb命令就可以查看到最后一个不成功的登录尝试.

转载自:http://space.itpub.net/75231/viewspace-474761

phpize:Cannot find autoconf

今天在CentOS5.3上装memcache-2.2.5

键入命令

/usr/local/php/bin/phpize

提示

Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF
environment variable is set correctly and then rerun this script.

源代码目录下也没有生成configure

yum -y install autoconf

解决问题

以上命令共安装两个软件包

imake-1.0.2-3.i386.rpm

autoconf-2.59-12.noarch.rpm

iostat来对linux硬盘IO性能进行了解

以前一直不太会用这个参数。现在认真研究了一下iostat,因为刚好有台重要的服务器压力高,所以放上来分析一下.下面这台就是IO有压力过大的服务器

# iostat -x 1 10
Linux 2.6.18-92.el5xen    02/03/2009

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
1.10    0.00    4.82   39.54    0.07   54.46

Device:         rrqm/s   wrqm/s   r/s   w/s   rsec/s   wsec/s avgrq-sz avgqu-sz   await  svctm  %util
sda               0.00     3.50  0.40  2.50     5.60    48.00    18.48     0.00    0.97   0.97   0.28
sdb               0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
sdc               0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
sdd               0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
sde               0.00     0.10  0.30  0.20     2.40     2.40     9.60     0.00    1.60   1.60   0.08
sdf              17.40     0.50 102.00  0.20 12095.20     5.60   118.40     0.70    6.81   2.09  21.36
sdg             232.40     1.90 379.70  0.50 76451.20    19.20   201.13     4.94   13.78   2.45  93.16

阅读全文»

2026年三月
« 5月    
 1
2345678
9101112131415
16171819202122
23242526272829
3031