(25)
(25)
发布时间: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
发布时间: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 =.........