摘要: 相信做过web前端开发的都曾遇到过跨域问题。何谓之“跨域”?跨域问题就是一个域的脚本不能访问和操作另外一个域的绝大部分属性和方法。但为什么要这样做了,主要是为了保证数据的安全,防止一些XSS。以下我就列举一些我实际工作中使用的方案。JSONPJSONP (JSON with Padding)是一个简单高效的跨域方式,貌似也有人称其为script tag。HTML中的script标签可以加载并执行其他域的javascript,于是我们可以通过script标记来动态加载其他域的资源。说白了,就是动态请求javascript脚本,将回调方法的调用返回,同时将请求的数据作为该方法的参数一并返回。这样脚 阅读全文
posted @ 2011-09-25 17:49 rongtou 阅读(231) 评论(0) 推荐(0)
摘要: RequirementPerl >= 5.x without additional modulesRRDtool >= 1.x, better 1.2 but not compulsoryAttention: installing RRDtool without a packet manager might lead to missing dejavu fonts. If you see graphs without text then this may be the cause.PHP >= 5.1.6 for the Webfrontend based onKohanaN 阅读全文
posted @ 2011-09-25 17:46 rongtou 阅读(1519) 评论(0) 推荐(0)
摘要: 安装步骤A为远程被控端创建用户sudo -suseradd nagiospasswd nagios下载软件包(~/downloads下)wget http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.15.tar.gzwget http://prdownloads.sourceforge.net/sourceforge/nagios/nrpe-2.12.tar.gz安装nagios-pluginsudo -star xzfnagios-plugins-1.4.15.tar.gzcdnagios- 阅读全文
posted @ 2011-09-25 17:43 rongtou 阅读(413) 评论(0) 推荐(0)