存档
空路由或者说黑洞路由是一个没有最终目的地的路由。匹配的包将被删除或者抛弃而不是转发。这种空路由的行为也被称做黑洞过滤。简单说空路由就是不路由。 创建空路由主要用于保护你的系统,使其不发送任何响应数据给远程系统。
http://www.balsamiq.com NGEN eJzzzU/OLi0odswsqvFzd/WrsUQCNc41hmBRAO9oC9s=
private String convertToValidBase64Encode(String cookieParam) { switch(cookieParam.length()%4) { case 3: cookieParam=cookieParam+”=”; break; case 2: cookieParam=cookieParam+”==”; break; case 1: cookieParam=cookieParam+”===”; break; default: System.out.println(“Default: the cookieParam value is–”+cookieParam); } return cookieParam; }
PHP 5.3.2 开始建了个集成FPM的分支了。 正常下载PHP源代码 解压 cd 解压目录 下载fpm svn co http://svn.php.net/repository/php/php-src/trunk/sapi/fpm sapi/fpm confiruge make make install 一路下来没什么问题。 启动php-fpm时提示 [pool www] start_servers(20) must not be less than min_spare_servers(35) and not greater than max_spare_servers(35) min_spare_servers在php-fpm.conf里设置的是5这里变成了35,明显有问题。 在源代码sapi/fpm/fpm/里找了下发现提示在fpm_conf.c 在460行,细看发现else if判断有问题 将 459 行的 config->pm_start_servers < config->pm_max_spare_servers 改成 config->pm_start_servers < config->pm_min_spare_servers 460行的 config->pm_max_spare_servers 改成 config->pm_min_spare_servers 重新 make && make install [...]
有台旧机器安的是Debian 5.0.3(升级到unstable),内核2.6.32-trunk-686。在xp下通过xmanager过去一直XDMCP连接失败。 /etc/gdm/gdm.conf [xdmcp] Enable=1 Port=177 已经xdmcp支持已经开启。 nestat -nalp 看到177端口也已经开了。就是连不上。。。 netstat -nalp | grep gdm udp6 0 0 :::177 :::* 1500/gdm 发现gdm监听的居然是udp6 也就是IPV6的177口,没监听udp的177。 将 /etc/sysctl.d/bindv6only.conf 文件 net.ipv6.bindv6only = 1 改成 net.ipv6.bindv6only = 0 重启搞定。 备注:Debian最新的unstable很奇怪,试了几种方法想把IPV6关掉都关不掉。 lsmod | grep ipv6又没有显示。