10 2013 档案

摘要:1548-Cannot load from mysql.proc. The table is probably corruptedhttp://bugs.mysql.com/bug.php?id=50183原因是mysql.proc升级时有个字段没有升级成功。在5.1中mysql.proc表的comment字段是varchar(64):`comment` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',但在5.5中应该是text:`comment` text CHARACTER SET utf8 阅读全文
posted @ 2013-10-29 21:05 jackluo 阅读(14289) 评论(0) 推荐(1) 编辑
摘要:利用Shell邮件通知echo "邮件内容" |mail -s 邮件主题 收件人地址echo "This is Test mail."|mail -s "test" net.webjoy@gmail.com特别主意主机的stmp服务启用才能发送service postfix start最后查看cat /var/log/maillogct 28 10:34:30 Master postfix/smtp[4087]: 8582526010C: to=, relay=gmail-smtp-in.l.google.com[74.125.129 阅读全文
posted @ 2013-10-28 23:03 jackluo 阅读(542) 评论(0) 推荐(0) 编辑
摘要:报了几个错wgethttp://archive.apache.org/dist/apr/apr-1.4.5.tar.gz wgethttp://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gz wgethttp://jaist.dl.sourceforge.net/project/pcre/pcre/8.10/pcre-8.10.zip --with-apr=/usr/local/apr \--with-apr-util=/usr/local/apr-util/ \--with-pcre=/usr/local/pcre这样就没有错误了 阅读全文
posted @ 2013-10-28 14:26 jackluo 阅读(175) 评论(0) 推荐(0) 编辑
摘要:安装官方有很详细的文档转自http://www.enjoyphp.com/2010/eaccelerator-manual/配置选项eaccelerator.shm_size指定 eAccelerator 能够使用的共享内存数量,单位: MB. “0″ 代表操作系统默认。默认值为 “0″。eaccelerator.cache_dir用户磁盘缓存的目录。eAccelerator 在该目录中存储预编译代码,session 数据,内容等. 相同的数据也可以存储于共享内存中(以获得更快的存取速度)。默认值为 “/tmp/eaccelerator”eaccelerator.enable开启或关闭 eAc 阅读全文
posted @ 2013-10-24 15:36 jackluo 阅读(464) 评论(0) 推荐(0) 编辑
摘要:var chartData = [ { "online": '2013-10-23', "new": 0.00, "login": 0.00, "active": 0.00 }, { "online": '2013-10-22', ... 阅读全文
posted @ 2013-10-24 13:37 jackluo 阅读(573) 评论(0) 推荐(0) 编辑
摘要:-b 参数 指定使用cookie文件-c是往cookie文件中写cookie-d 是指定此次登录所需的参数,通过httpfox查看-L 指定页面自动跳转#curl -c ck.txt --user-agent Mozilla/4.0 -d "username=****&password=*****&server_id=1&submit=true" 登陆的url #curl -c ck.txt -b ck.txt --user-agent Mozilla/4.0 请求的url#! /bin/Bash########################### 阅读全文
posted @ 2013-10-23 19:48 jackluo 阅读(11892) 评论(0) 推荐(0) 编辑
摘要:http://yaksayoo.blog.51cto.com/510938/162062Linux计划任务工具cron用法详解 linux下大名鼎鼎的计划任务工具crontab的使用介绍baidu、google上多得让人眼花缭乱,本着“天下文章一大抄”的觉悟,加上本人日常工作中总结的使用经验,索性推出这篇笔记式文章,以供遗忘时翻阅之用。 cron是linux系统下一个自动执行指定任务的程序,即包含“时间”、“路径”、“自动执行脚本”等要素,例如我想通过自动执行脚本“newcopy.sh”在凌晨4点整将/usr/local/下的“new”目录复制到/home下的“superman”目录。 cro 阅读全文
posted @ 2013-10-23 19:41 jackluo 阅读(1614) 评论(0) 推荐(0) 编辑
摘要:$where = ''; $localogLogin = $this->gamedb_model->query_onerow("select `datetime` from logLogin order by id desc"); $posdatetime = $localogLogin['datetime']; if(empty()){ $where = "where datetime'$posdatetime'"; } $remountlist... 阅读全文
posted @ 2013-10-22 21:01 jackluo 阅读(543) 评论(0) 推荐(0) 编辑
摘要:最近做后台统计的工具,统计肯定是一个需要运算好久的数据容许一个用户在一个时间内进行操作,这个时候就需要用到锁了,将这个操作过程锁起来。在用了cache的时候,cache失效可能导致瞬间的多数并发请求穿透到数据库此时也可以得需要用锁在同一并发的过程中将这个操作锁定你也可以改用XCache 来写eAccelerator = function_exists("eaccelerator_lock"); if(!$this->eAccelerator) { $this->path = $path.($this->_mycrc32($name) % $th... 阅读全文
posted @ 2013-10-22 11:21 jackluo 阅读(791) 评论(0) 推荐(0) 编辑
摘要:curl -R -O http://www.lua.org/ftp/lua-5.2.2.tar.gztar zxf lua-5.2.2.tar.gzcd lua-5.2.2make linux test报错cd src && make linuxmake[1]: Entering directory `/home/jackluo/Downloads/lua-5.2.2/src'make all SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl -lreadline"make[2]: 阅读全文
posted @ 2013-10-17 18:30 jackluo 阅读(4743) 评论(0) 推荐(1) 编辑
摘要:awk语言的最基本功能是在文件或字符串中基于指定规则浏览和抽取信息,awk抽取信息后,才能进行其他文本操作,完整的awk脚本通常用来格式化文本文件中的信息调用awk:第一种,命令行方式,如:awk[-F field-separator]'commands'input-file(s) 这里commands是真正的awk命令,[-F域分隔符]是可选的,awk默认使用空格分隔,因此如果要浏览域间有空格的文本,不必指定这个选项,但如果浏览如passwd文件,此文件各域使用冒号作为分隔符,则必须使用-F选项: awk -F : 'commands' input-file 阅读全文
posted @ 2013-10-13 19:27 jackluo 阅读(725) 评论(0) 推荐(0) 编辑
摘要:我一个统计程序估计要跑1分多钟以上查看了一个php-fpm 配置文件[13-Oct-2013 12:06:07] WARNING: [pool www] child 7458, script '/home/wwwroot/admin/index.php' (request: "GET /index.php") execution timed out (101.515909 sec), terminating[13-Oct-2013 12:06:07] WARNING: [pool www] child 7458 exited on signal 15 (SI 阅读全文
posted @ 2013-10-13 13:43 jackluo 阅读(39074) 评论(0) 推荐(1) 编辑
摘要:查看:tail -f /tmp/jack.txt一:tee方法一、配置文件在服务器上的/etc/my.cnf中的[client]加入tee =/tmp/client_mysql.log即可.方法二、命令行1.mysql -uroot --tee=/tmp/client_mysql.log2.这个类似于sqlplus的spool功能,可以将命令行中的结果保存到外部文件中。如果指定已经存在的文件,则结果会附加到文件中。mysql> tee client_mysql.logLogging to file 'client_mysql.log '或者mysql> \T cli 阅读全文
posted @ 2013-10-12 13:39 jackluo 阅读(4086) 评论(0) 推荐(0) 编辑
摘要:1.在 /etc/my.cnf 下面设置开启bin-log 编辑 vim /etc/my.cnf [mysqld] binlog_format = MIXED //binlog日志格式 log_bin =目录/mysql-bin.log //binlog日志名 expire_logs_days = 7 //binlog过期清理时间 #max_binlog_size 100m //binlog每个日志文件大小 最大值和默认是1个G binlog-do-db=game #需要备份的数据库名,如果备份多个数据库,重复设置这个选项即可 binlog-do-db=platform # #binlog-i 阅读全文
posted @ 2013-10-04 10:41 jackluo 阅读(23814) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示