全面转向CentOS
这周把两台服务器都换成了CentOS 5.5,CentOS最大的好处就是稳定,打算一直不重启看看服务器能跑多久。
虽然说追求稳定的话最好是用source里面的rpm,不过由于本人对于stable release有着很深的执念,每当看到有stable的时候就想更新,确实不算好的Administrator啊……
附上CentOS官网上的原话:
CentOS is not your everyday Linux. It’s a server distribution, meant to be used in production environment where users do not care about what applications they have installed. It’s a distro that you will most likely run without any GUI, reboot once every other year or so, if that, and upgrade only when you really must, since the inclusion of even simplest binaries could be dreadfully risky for your setup.
虽然对于这个reboot once every other year的说法很怀疑。这样比FreeBSD都强了。
话说回来从tarball安装确实很不习惯,光路径就大不一样,而且写init script也挺让人头大,FreeRADIUS的那个愣是用回了2.1.6的init,还不算编译过程中的各种devel pack,这点来说ubuntu确实强多了,一个apt-get build-dep就搞定了。
给FreeRadius写了个限制用户流量的code,发现完全没想象中的复杂……居然一个if就搞定了,枉自研究了半天rlm_sql_counter和perl啊……在此感谢radiusplugin的作者提供思路。
下一步想办法编译ipp2p,这东西iptables和内核版本高了不行,centos上面的iptable倒是1.3.8的,但是内核是2.6.26-2的,不知道能过不,反正之前用2.6.26-2+iptables 1.4.1.1打死都通过不了。Xen又不能重新编译内核,不然就用l7filter了。