c/php/javascript/java/python/bash linux/freebsd

  •        和一些做NAT的老师接触,谈起NAT的问题,大多数都是自己用Linux使用iptables来搞定的,在具体谈到地址池的时候,发现很多老师都习惯将1个C网络NAT到一个单独的IP地址上,如果有N个C类地址,那就需要写N条iptables规则,当然这样做的好处是用户的源地址永远不会变,便于事件的追查等,当问到为什么非要把1个C映射到一个IP地址上时,大家的回答都是:怕一个地址的端口数量
    1 发起了话题 category: 程序员 2013-10-04 19:00:10
  • # Protect files and directories from prying eyes. <FilesMatch "(\.(inc|cfg.php|pre.php|inc.php|tpl.php|class.php|info|po|sh|sql)|Entries.*|Repository|Root|Tag|Template)$"> Order allow,deny </FilesMatch>
    1 发起了话题 category: apache 2013-09-11 11:20:15
  • Nginx Rewrite 规则指令if , rewrite , set break rewrite ^/xlxz/(.*)\.html /xlxz.php?php=$1 break; if ( !~f $request_filename ) { rewrite ^/xlxz_img/(.*)$ /site_php/$host/images/$1 last; }1, Nginx Rewrite break
    1 发起了话题 category: nginx 2013-09-10 00:00:09
  • 1.system configuration-disks partion layout and sizes partition size Minimum Maximum swap RAM / 8 2 * RAM / 256MB 512MB /tmp 128MB 512MB
    1 发起了话题 category: Freebsd 2013-09-08 09:58:46
  • <body style="margin:0;height:100%;width:100%;background-color:transparent;overflow:hidden"> <script src="\http:\//tag.contextweb.com/TagPublish/getjs.aspx?action=VIEWAD&cwrun=200&cwadformat=728X90&c
    1 发起了话题 category: 程序员 2013-09-06 21:01:48
  • win 7 无线网络共享  单无线网卡1. 开启 虚拟无线AP “开始”---在搜索栏输入“cmd”----右键以“管理员身份运行”运行命令:netsh wlan set hostednetwork mode=allow ssid=q_lala key=xlxz.org.xlxz.org # mode:是否启用虚拟WiFi网卡,改为disallow则为禁用。 #
    1 发起了话题 category: 程序员 2013-09-02 21:38:46
  • Showing 1-6 of 6 items.