自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

逆雪寒的天坑

Mysql DBA

  • 博客(20)
  • 资源 (3)
  • 收藏
  • 关注

原创 dns_ma

<br />#! /bin/sh/usr/local/bin/rsync -avzP --password-file=/usr/local/etc/rsyncd.secrets /etc/namedb/dnsarea/ 192.168.1.241::dnsrndc -s 192.168.1.241 reload

2011-03-29 11:47:00 508

原创 rc.firewall

<br />ipfw -q -f flushinif="rl0"outif="rl1"ipfw="ipfw -q add"ks="keep-state"#$ipfw deny all from 192.168.1.120 to any in via $inif$ipfw allow all from any to 192.168.1.243 in via $inif$ipfw allow all from 192.168.1.243 to any out via $inif

2011-03-29 11:38:00 755

原创 centos_nginx_ha

<br />#! /bin/sh# local ip : 192.168.1.239[ -e nginx_ha.pid ] && kill -9 $(cat nginx_ha.pid)echo $$ > nginx_ha.pidbind_vip2() { ifconfig ${ifc}:ha2 $ha_vip2 netmask 255.255.255.0 up echo 'xx'}remove_vip1() { ifconfig

2011-03-29 11:37:00 726

原创 fb_nginx_ha

<br />#! /bin/sh# local ip : 192.168.1.237[ -e nginx_ha.pid ] && kill -9 $(cat nginx_ha.pid)echo $$ > nginx_ha.pidbind_vip1() { ifconfig $ifc $ha_vip1 netmask 255.255.255.0 alias echo 'xx'}remove_vip2() { ifconfig $if

2011-03-29 11:37:00 586

原创 rc.conf

<br /># -- sysinstall generated deltas -- # Tue Mar 1 09:25:29 2011# Created: Tue Mar 1 09:21:52 2011# Enable network daemons for user convenience.# Please make all changes to this file, not to /etc/defaults/rc.conf.# This file now contains just

2011-03-29 11:36:00 600

原创 nginx.conf

<br />#user nobody;worker_processes 1;error_log /var/log/nginx/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;pid /var/log/nginx/nginx.pid;events { worker_connections 1024;}http { incl

2011-03-29 11:35:00 801

原创 dhcpd.conf

<br /># dhcpd.conf## Sample configuration file for ISC dhcpd## option definitions common to all supported networks...option domain-name-servers 192.168.1.243,192.168.1.241;option routers 192.168.1.243;option broadcast-address 192.168.1.255;

2011-03-29 11:34:00 833

原创 squid.conf

<br />http_port 8080 transparenticp_port 3130cache_peer 192.168.1.241 sibling 8080 3130 proxy-onlydns_nameservers 202.103.224.68 202.103.225.68visible_hostname beihai365_natcache_dir ufs /var/spool/squid 2048 16 256cache_mem 1000 MBcache_mgr

2011-03-29 11:32:00 586

原创 snmpd.conf

<br />################################################################################# EXAMPLE.conf:# An example configuration file for configuring the Net-SNMP agent ('snmpd')# See the 'snmpd.conf(5)' man page for details## Some entries

2011-03-29 11:31:00 1333

原创 samba

<br /># This is the main Samba configuration file. You should read the# smb.conf(5) manual page in order to understand the options listed# here. Samba has a huge number of configurable options (perhaps too# many!) most of which are not shown in this

2011-03-29 11:29:00 622

原创 rsync 的安装

<br /> <br />进入 /usr/ports/net/rsync<br /> <br />make install clean<br /> <br />两边服务器都安装上<br /> <br /> <br />创建密码文件:<br /> <br />/usr/local/etc/rsyncd.secrets   内容:<br /> <br />bind:12345678<br /> <br />// bind  是 本机的DNS 帐号,因为我这个应用主要针对 DNS同步。  密码随便写<br /> 

2011-03-28 18:02:00 638

原创 rndc 远程 reload 记事

<br />通过  rsync 传递了 zone 文件以后。  需要直接 rndc 从DNS  这样。。。我可以写脚本一次完成。方便嘛<br /> <br />要远程 rndc  dns 有几个条件<br /> <br />第一:  在 要被rndc 控制的 服务器上的  name.conf 里必须要这样写:<br /> <br />controls {<br />      inet 192.168.1.241 port 953<br />              allow { 127.0.0

2011-03-28 17:26:00 1071

原创 发现 FB 系统在非法关机的时候特别容易 出现 磁盘 CLEAN OR NOT CLEAN 问题

<br />今天 因为需要 非法关机了。。谁知道  出现了 共享无法访问。 <br /> <br />然后我 mount 看了下 发现  没加载上  gmirror RAID1 的分区 。 我尝试手动 mount 也不行出现: Operation not permitted<br /> <br /> <br />然后查看日志 发现:<br /> <br /> <br /> <br />Mar 25 18:07:55 files kernel: R/W mount of /data denied.  File

2011-03-25 18:36:00 1447

原创 透明代理 集群

<br />服务器: 243 配置<br /> <br />http_port 80 transparenticp_port 3130cache_peer 192.168.1.241 sibling 80 3130 proxy-onlydns_nameservers 202.103.224.68 202.103.225.68visible_hostname beihai365_natcache_dir ufs /var/spool/squid 2048 16 256cache_mem

2011-03-16 16:10:00 1812

原创 利用squid给公司内网加速..

公司里的编辑 和 监控人员的工作就是天天再刷帖~~ 一个帖里面又有很多图片罗。  导致公司内部网络 有点牛车。。所以很需要我在公司内部的服务器上做一个 内部CDN 。针对公司的网站进行前端CACHE。 这样的话~~ 哇咔咔 公司内部网速就快罗 还是进行简单的安装吧。Feebsd 系统#/usr/ports/www/squid# make install clean# echo  "squid_user=root" >> /etc/rc.conf     因为要启动 80端口 1024口以

2011-03-12 16:53:00 2579

原创 bind 9 安装 配置 master slave .. 不是很难,但其中也遇到些问题。。耗费了点时间解决

打算在公司内部 安装一个 dns 来使用。因为公司内部开发服务器也挺多的。现在都是用IP 。 但我想有个域名好记一点。打算在网关和一台开发服务器上做 master 和 slaveip分别为:网关: 192.168.1.243开发服务器:  192.168.1.241我系统是 FreeBsd 的。  那当然是用  ports 安装啦。。哇咔咔我们先做 master: #  cd /usr/ports/dns/bind94#  make install clean装完了 记得 修改  /etc/rc.conf

2011-03-09 10:19:00 2663

原创 用ipfw 在 nat 环境下捕获了一个 dns 的流程。以便分析NAT 下 规则怎么写

用ipfw  在 nat 环境下捕获了一个 dns 的流程。以便分析NAT 下 规则怎么写

2011-03-07 14:32:00 681

原创 snmp 和 mrtg 安装

<br />杯具。竟然发现网络上没有一篇 新文章关于  snmp 和  mrtg 的。 按照网上都是无法安装成功的。 所以还是自己记录一下吧。。<br /> <br /> <br />系统: freebsd 7<br /> <br />通过 ports 安装<br /> <br />snmp :  net-snmp-5.5<br /> <br />mrtg : mrtg-2.17.1 <br /> <br />算是比较新的版<br /> <br /> <br />第一步: 安装 snmp <br /> <b

2011-03-05 15:12:00 1263

原创 添加一个硬盘记录(网上抄的)

<br /> <br /> 我们一样假设要新增的硬盘为 ad1,并且将整个硬盘切成一个扇区给 FreeBSD 使用。第一步要做的就是先使用 dd 这个指令来清除硬盘上旧的设定:<br /> <br /> # dd if=/dev/zero of=/dev/ad1 bs=1k count=1<br /><br /> 上述指令的意思是从 /dev/zero 这个装置读出数据写到 /dev/ad1 中,每次写入的 block size (bs) 为 1KB,做一次写入的动作即可 (cou

2011-03-02 16:12:00 547

原创 公司网关简单防火墙...

<br />ipfw -q -f flushinif="ale0"outif="ale0"ipfw="ipfw -q add"ks="keep-state"$ipfw allow all from any to any via $inif$ipfw allow all from any to any via lo0$ipfw divert natd all from any to any via $outif$ipfw check-state$ipfw allow all

2011-03-02 14:54:00 873

单纯的php测试脚本

单纯的php测试脚本,主要是用来比较 单纯的php测试脚本,主要是用来比较单纯的php测试脚本,主要是用来比较

2010-01-30

使用angel proxy 的 客户端脚本(目前只支持php)

使用angel proxy 的 客户端脚本(目前只支持php)

2010-01-30

python 开发的mysql proxy : angel proxy

实现mysql读写分离。 forking socket模型。

2010-01-30

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除