发布时间:2013-04-22 17:18:18
1. 调整内核参数kernel.sysrq = 1fs.file-max = 101365kernel.shmmax = 500000000kernel.shmall = 4000000000kernel.msgmni = 2048kernel.sem = 250 512000 100 2048kernel.shmmni = 4096net.core.netdev_max_backlog = 10000net.core.rmem_default = 1048576net.core.rmem_max = 1048576net.core.wmem_default.........【阅读全文】
发布时间:2013-04-22 17:13:49
通过mysql enterprise backup 备份mysql数据库1. 情景备份innodb,myisam类型表,备份innodb会备份ibdata,即使在innodb_file_per_table情况下,所以尽可能让ibdata小,原有放在ibdata的表使用alter table engine=innodb独立成单个文件myisam备份会琐表备份分为复制文件和应用日志,这样数据就一致,可以直接覆盖回来.........【阅读全文】
发布时间:2013-04-22 17:06:05
#include <stdio.h>#include <stdlib.h>#include <errno.h>#include <assert.h>#include <string.h>#include <inttypes.h>#include <limits.h>#include <sys/time.h>#include <sys/resource.h>#include <hiredis/hiredis.h>struct args{ char filename[BUFSIZ]; char fi.........【阅读全文】
发布时间:2013-04-22 17:00:16
import java.util.*;import redis.clients.jedis.Jedis;import redis.clients.jedis.JedisPool;import redis.clients.jedis.JedisPoolConfig;public class JedisPoolClient { private static JedisPoolConfig config = null; private static JedisPool pool = null; .........【阅读全文】
发布时间:2013-04-22 16:48:19
#!/usr/bin/perl -wuse Cache::Memcached;use DBI;use Digest::MD5 qw(md5 md5_hex);my $dbh = DBI->connect("DBI:mysql:database=test;host=localhost", "test", "test", {'RaiseError' => 1}); $dbh->do("set names utf8"); my $sth = $dbh->prepare($ARGV[0]);$memd =.........【阅读全文】