Skip to content

Monthly Archives: October 2010

国内CentOS5电信更新源!

25-Oct-10

使用root帐号登录CentOS5,进行如下操作: cd /etc/yum.repos.d mv CentOS-Base.repo CentOS-Base.repo.save wget http://centos.ustc.edu.cn/CentOS-Base.repo.5 mv CentOS-Base.repo.5 CentOS-Base.repo 如果您的是CentOS 4,请使用下面的操作: cd /etc/yum.repos.d mv CentOS-Base.repo  CentOS-Base.repo.save wget http://centos.ustc.edu.cn/CentOS-Base.repo Related items Get your Mr Right web hosting here centOS带宽实时流量查看工具 askie原创的wordpress插件集合包提供下载 国内免费图片空间,不限制流量,不限制外链,速度超快! 360的流氓和腾讯的无耻 var escFun = window.encodeURIComponent ? window.encodeURIComponent : escape; var relatedlinks_js = document.createElement(“script”); relatedlinks_js.setAttribute(“charset”, “utf-8″); relatedlinks_js.src = “http://relatedlinks.googlelabs.com/client/client.js?url=” + escFun(document.URL) + “&referrer=” + escFun(document.referrer) + “&relatedlinks_id=10098_5845376649736343543&title=” [...]

CentOS web服务 防火墙配置

23-Oct-10

下面是正确方法: #/sbin/iptables -I INPUT -p tcp –dport 80 -j ACCEPT #/sbin/iptables -I INPUT -p tcp –dport 22 -j ACCEPT 然后保存: #/etc/rc.d/init.d/iptables save 这样重启计算机后,防火墙默认已经开放了80和22端口 这里应该也可以不重启计算机: #/etc/init.d/iptables restart 防火墙的关闭,关闭其服务即可: 查看防火墙信息: #/etc/init.d/iptables status 关闭防火墙服务: #/etc/init.d/iptables stop 永久关闭?不知道怎么个永久法: #chkconfig –level 35 iptables off 再查看是否已经有了: [root@vcentos ~]# /etc/init.d/iptables status Table: filter Chain INPUT (policy ACCEPT) num  target     prot opt source               [...]