上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页
摘要: /* Mysql基础操作(优化) @auther: luowen @time: 2013-07-26 1.mysql复制表机构和表数据 create table t1 like t2; insert into t1 select * from t2; 2.mysql创建索引 method 1: increate [unique] [index] [primary key] indexName on t1(name); show... 阅读全文
posted @ 2013-07-26 17:58 arvim 阅读(297) 评论(0) 推荐(0) 编辑
摘要: /** *mysql 数据分区实验 *@auther:luowen *@time:2013-07-26 */ // 1.创建分区表 /* 分区类型 1.range分区(按照一段区间分区) 2.list分区(按照在那个集合里面分区) 3.hash分区(随机按一定大小分区) 4.listhash分区 */ create table part value( id int primary... 阅读全文
posted @ 2013-07-26 16:07 arvim 阅读(295) 评论(0) 推荐(0) 编辑
摘要: /* @author:luowen @time:20113-07-24 给从服务器设置权限该用户 grant all on *.* to user@192.168.16.88 identified by 'passwd'; grant replication slave on *.* user@192.168.16.87 identifiend by 'pass' 在mysql 配置文件中打开bin-log日志选择项 查看最后一个bin-log 日志 show master stat... 阅读全文
posted @ 2013-07-24 17:50 arvim 阅读(261) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2013-07-21 02:15 arvim 阅读(1) 评论(0) 推荐(0) 编辑
摘要: /*1:squid 普通代理a:条件squid 服务器用于两块网卡eth0 192.168.1.1eth1 200.168.10.1局域网pceth0 192.168.1.2b:配置squid 服务器安装squid软件后在 /etc/squid/squid.conf 写入http_port 192.168.1.1:3128 -->代理服务器的ip地址以及端口visiable_hostname 192.168.1.1 --> 代理服务器名称必须写cache_dir ufs /var/spool/squid/ 10 16 256 --> squid 缓存目录acl acc_net 阅读全文
posted @ 2013-07-20 11:15 arvim 阅读(282) 评论(0) 推荐(0) 编辑
摘要: linux lvs net model1: Lvs-server eth0 192.168.10.1(内网ip) mask 255.255.255.0 getway 192.168.10.1 eth1 8.8.8.8(外网ip) mask 255.255.255.0关闭 iptables selinux打开lvs功能 echo '1' >> /proc/sys/net/ipv4/ip_forward配置轮询模式 ipvsadm -At 8.8.8.8:80 -s rr //清除所有的ipvsadm规则 ipvsadm -C //轮询到real-server-one 阅读全文
posted @ 2013-07-18 14:24 arvim 阅读(299) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2013-06-16 00:40 arvim 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2013-06-05 21:24 arvim 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2013-05-13 21:55 arvim 阅读(1) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2013-05-11 01:11 arvim 阅读(0) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页