[root@db1 ~]# service mysqld status
mysqld (pid 2965) is running…
[root@db1 ~]# service mysqld restart
Timeout error occurred trying to stop MySQL Daemon.
Stopping MySQL: [FAILED]
Timeout error occurred trying to start MySQL Daemon.
Starting MySQL: [FAILED]
每月存档 三月, 2009
一些MySQL的错误skip-name-resolve
酷Linux 专栏: Linux 和音乐潮流-1
喜欢看王小峰的博客,也喜欢听他博客上的歌,看到他博客上介绍这个可以下载他的歌曲就转了过来,原文不贴了
贴脚本
#!/usr/bin/python
# Download all the music recommended by wangxiaofeng.net
# Author: Eric You XU
# GPLv2
import os
import commands
os.popen("wget www.wangxiaofeng.net/mp3player.xml -O mp3player.xml")
str="""cat mp3player.xml|egrep -o path=[^3]+mp3|tr "\"" "\n"|grep http >wangxiaofeng.list"""
print str
os.popen(str)
f=open("wangxiaofeng.list")
for g in f.read().split('n'):
print g
a="wget ""+g+"""
os.popen(a)
用ssh-keygen来设置ssh无密码登录
在linux系统中,ssh是远程登录的默认工具,因为该工具的协议使用了RSA/DSA的加密算法.该工具做linux系统的远程管理是非常安全的。telnet,因为其不安全性,在linux系统中被搁置使用了。
ssh有一套很有用的工具,其中的ssh-keygen可以用来生成private和public密钥.将生成的public密钥拷贝到远程机器后,可以使ssh到另外一台机器的登陆不用密码.具体方法如下.
关于cacti监控不到网卡流量
请教过Mr.Ivory,他说是因为目标机器不让别的机器查看网卡信息
需要修改/etc/snmp/snmpd.conf
将
view systemview included .1.3.6.1.2.1.1
修改为
view systemview included .1
重启snmp服务,应该就可以了