Board logo

标题: linux下的一些重要内容 03 [打印本页]

作者: samwalton    时间: 2013-5-9 08:51     标题: linux下的一些重要内容 03

查看所有rpm安装的包


rpm –qa


rpm –qa | grep mysql

input/output bus error

linux bus error magic reboot echo 1 > /proc/sys/kernel/sysrq
echo b > /proc/sysrq-triggerThe first line is for enabling SysRq, and the second one is for rebooting.
See emergency reboot or shutdown with magic commands for more details.


Centos 5.4~5.5

CentOS5.4 升级到 5.5
1、先修改更新源为国内的更新源
# cd /etc/yum.repos.d
# mv CentOS-Base.repo CentOS-Base.repo.save
# wget
http://centos.ustc.edu.cn/CentOS-Base.repo
2
清理残留文件然后更新标准库,再升级
# yum clean all # yum update glibc\* # yum update yum\* rpm\* python\* # yum clean all # yum update # reboot


Yum命令强制结束:
结束yum rm -f /var/run/yum.pid


  /usr/local/webserver/php/sbin/php-fpm

  /usr/local/webserver/nginx/sbin/nginx -s reload

  /server/mysql/3306/mysql start /restart  /stop


修复mysql
cd /usr/local/webserver/mysql/bin
./myisamchk -c -r /server/mysql/3306/data/xx/xxx.MYI

1../myisamchk -c -r 数据库表MYI文件的路径(例如:/home/mysql/var/crawlerfeedsky/aaaa.MYI)

1.
如果还不行,就-f 强制修复




欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) Powered by Discuz! 7.0.0