# /usr/libexec/mysqld –skip-grant-tables
进去后
mysql > use mysql;
mysql > update user set password=password(“123456”) where user=’root’;
mysql > flush privileges;
# /usr/libexec/mysqld –skip-grant-tables
进去后
mysql > use mysql;
mysql > update user set password=password(“123456”) where user=’root’;
mysql > flush privileges;
专业航空母舰打蜡,喷漆,通管道,各种配件,高价回收旧舰空母舰。专业办理各种航母驾驶执照。
好好笑!!
/var/log/btmp这个文件记录错误的登录尝试.
/var/log/btmp这个文件不是安装的选项,可以用命令
touch /var/log/btmp
生成一个这样的文件,就可以了.
执行lastb命令就可以查看到最后一个不成功的登录尝试.
今天在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,因为刚好有台重要的服务器压力高,所以放上来分析一下.下面这台就是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
| 一 | 二 | 三 | 四 | 五 | 六 | 日 |
|---|---|---|---|---|---|---|
| « 5月 | ||||||
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 | 31 | |||||