配置
文章平均质量分 62
huithe
突突网络-我们只专注于影楼网站建设.致力于全国影楼网站建设 婚纱摄影网站建设,制作,设计,维护,管理,推广
展开
-
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 · 592 阅读 · 0 评论 -
squid 开启 ssl
1.生成测试用的证书: openssl req -new -keyout /etc/squid/key.pem -nodes -x509 -days 365 -out /etc/squid/cert.pem SSL配置: http_port 8080 transparent https_port 443 cert=/usr/local/etc/squid/cer原创 2012-02-29 17:18:23 · 7288 阅读 · 0 评论 -
pf 配置网关 和 重定向 squid cache
ext_if="re0" int_if="msk0" internal_net="192.168.10.0/24" nat on $ext_if from $internal_net to any ->($ext_if) rdr on $int_if inet proto原创 2011-09-27 17:29:46 · 790 阅读 · 0 评论 -
Freebsd 下的 rc.d 里的 脚本模版
#!/bin/sh if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\{1}quot;); then echo "$0: Cannot determine the PREFIX" >&2 exit原创 2011-09-15 14:17:48 · 957 阅读 · 0 评论 -
freebsd 自建服务脚本
#!/bin/sh PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin CMD_PATH=/usr/local/bin/python MAP_PID='/var/log/map.pid' MAP_原创 2011-07-09 17:31:09 · 1108 阅读 · 0 评论 -
自己写了个nagios 监控squid 的脚本。。
<br /><br />#!/usr/local/bin/php -q<br /><?php<br /> <br />function check_squid($url,$proxy){<br /> $http = curl_init();<br /> curl_setopt($http,CURLOPT_PROXY,$proxy);<br /> curl_setopt($http,CURLOPT_URL,$url);<br /> $result = c原创 2011-04-15 15:49:00 · 962 阅读 · 0 评论 -
生产线上的 sphinx 配置文件,主要针对pw
source threads { type = mysql sql_host = localhost sql_user = sphinx sql_pass = ee原创 2011-04-01 11:49:00 · 2082 阅读 · 0 评论 -
rc.firewall
<br />ipfw -q -f flush inif="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 · 743 阅读 · 0 评论 -
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 · 791 阅读 · 0 评论 -
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 · 611 阅读 · 0 评论 -
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.pid bind_vip1() { ifconfig $ifc $ha_vip1 netmask 255.255.255.0 alias echo 'xx' } remove_vip2() { ifconfig $if原创 2011-03-29 11:37:00 · 576 阅读 · 0 评论 -
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.pid bind_vip2() { ifconfig ${ifc}:ha2 $ha_vip2 netmask 255.255.255.0 up echo 'xx' } remove_vip1() { ifconfig原创 2011-03-29 11:37:00 · 717 阅读 · 0 评论 -
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 · 824 阅读 · 0 评论 -
squid.conf
<br />http_port 8080 transparent icp_port 3130 cache_peer 192.168.1.241 sibling 8080 3130 proxy-only dns_nameservers 202.103.224.68 202.103.225.68 visible_hostname beihai365_nat cache_dir ufs /var/spool/squid 2048 16 256 cache_mem 1000 MB cache_mgr原创 2011-03-29 11:32:00 · 580 阅读 · 0 评论 -
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 · 1324 阅读 · 0 评论 -
常用网址
https://developer.mozilla.org/en/JavaScript/Reference js php 好的验证码 http://code.google.com/p/cool-php-captcha/ nodejs module 第三方 : https://github.com/joyent/node/wiki/modules freebs原创 2011-08-06 11:53:05 · 618 阅读 · 0 评论