摘要: 第一步 vi /etc/udev/rules.d/70-persistent-net.rules 将之前的eth0注释掉, 将eth1改为eth0 并复制mac地址 第二部 vi /etc/sysconfig/network-script/ifcfg-eth0 将第一步的 mac地址 写上DEVIC 阅读全文
posted @ 2016-02-27 11:42 诗兄 阅读(205) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset="> <title>te 阅读全文
posted @ 2016-02-20 12:24 诗兄 阅读(418) 评论(0) 推荐(0) 编辑
摘要: myisam 引擎表的索引损坏,解决方法 找到mysql的安装目录的/usr/local/mysql/bin/myisamchk工具,在命令行中输入: myisamchk -c -r /data/db/my/sc_blt/hd_online.MYI (表的路径) 然后myisamchk 工具会帮助你 阅读全文
posted @ 2016-02-15 19:02 诗兄 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 修改的用户都以root为列。一、拥有原来的myql的root的密码;方法一:在mysql系统外,使用mysqladmin#mysqladmin -u root -p password "test123"Enter password: 【输入原来的密码】方法二:通过登录mysql系统,#mysql -... 阅读全文
posted @ 2015-12-27 20:52 诗兄 阅读(165) 评论(0) 推荐(0) 编辑
摘要: /** * @desc 在线时长缓存 * @var string * @access public */ const KEY_ONLINE_CACHE = 'hd:online:cache'; /** * @desc 插入 hd_online_data表 * @access pub... 阅读全文
posted @ 2015-12-25 17:38 诗兄 阅读(267) 评论(0) 推荐(0) 编辑
摘要: MYSQL my.conf# The following options will be passed to all MySQL clients[client]#password = your_passwordport = 3306socket = /tmp/mysql.sock# Here fol 阅读全文
posted @ 2015-12-25 12:02 诗兄 阅读(648) 评论(0) 推荐(0) 编辑
摘要: # uname -a # 查看内核/操作系统/CPU信息 # head -n 1 /etc/issue # 查看操作系统版本 # cat /proc/cpuinfo # 查看CPU信息 # hostname # 查看计算机名 # lspci -tv # 列出所有PCI设备 # lsus... 阅读全文
posted @ 2015-12-25 11:36 诗兄 阅读(185) 评论(0) 推荐(0) 编辑
摘要: this.onmessage = function(e){ this.lasttime = this.getTime(); if (e.data == "!@#") { return false; } if (e.data == this.lastmsg) { return false; } thi 阅读全文
posted @ 2015-12-22 11:52 诗兄 阅读(154) 评论(0) 推荐(0) 编辑
摘要: [root@localhost ~]# mysql -uroot -p123456 -S /data/mysql/mysql.sockWelcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 阅读全文
posted @ 2015-12-05 16:29 诗兄 阅读(890) 评论(0) 推荐(0) 编辑
摘要: string(10) "script.php" [1]=> string(4) "arg1" [2]=> string(4) "arg2" [3]=> string(4) "arg3"}当使用命令行执行时:php script.php arg1 arg2 arg3 var_dum... 阅读全文
posted @ 2015-11-22 11:24 诗兄 阅读(249) 评论(0) 推荐(0) 编辑