摘要: 1,reload 方法,该方法强迫浏览器刷新当前页面。语法:location.reload([bForceGet]) 参数: bForceGet, 可选参数, 默认为 false,从客户端缓存里取当前页。true, 则以 GET 方式,从服务端取最新的页面, 相当于客户端点击 F5("刷新")2,r... 阅读全文
posted @ 2014-07-03 11:49 fendou999 阅读(188) 评论(0) 推荐(0)
摘要: 1 val = 9 2 def test(flag): 3 if flag: 4 val = 1 5 else: 6 print("test") 7 return val 8 9 if __name__ == '__m... 阅读全文
posted @ 2014-07-03 11:34 fendou999 阅读(39644) 评论(0) 推荐(0)
摘要: 1 class FaultyInfoHandler(tornado.web.RequestHandler): 2 def get(self): 3 import xmlrpc.client 4 s = xmlrpc.client.ServerProxy(Lo... 阅读全文
posted @ 2014-07-02 20:34 fendou999 阅读(248) 评论(0) 推荐(0)
摘要: 定义链接样式 CSS为一些特殊效果准备了特定的工具,我们称之为“伪类”。其中有几项是我们经常用到的,下面我们就详细介绍一下经常用于定义链接样式的四个伪类,它们分别是: :link :visited :hover :active 因为我们要定义链接样式,所以其中必不可少的就... 阅读全文
posted @ 2014-07-02 16:36 fendou999 阅读(15549) 评论(0) 推荐(1)
摘要: 在apache的配置文件中找到ErrorLoglogs/error_logCustomLoglogs/access_log commonLinux系统配置方法:将其改为ErrorLog “| /usr/local/apache/bin/rotatelogs /home/logs/www/%Y_%m_... 阅读全文
posted @ 2014-07-01 15:59 fendou999 阅读(1167) 评论(0) 推荐(0)
摘要: /bin,/sbin,/usr/bin,/usr/sbin区别/ : this is root directory root 用户根目录/bin : commands in this dir are all system installed user commands 系统的一些指令/sbin: c... 阅读全文
posted @ 2014-07-01 15:19 fendou999 阅读(243) 评论(0) 推荐(0)
摘要: cron 是一个可以用来根据时间、日期、月份、星期的组合来调度对重复任务的执行的守护进程。cron 假定系统持续运行。如果当某任务被调度时系统不在运行,该任务就不会被执行。要使用 cron 服务,你必须安装了vixie-cronRPM 软件包,而且必须在运行crond服务。要判定该软件包是否已安装,... 阅读全文
posted @ 2014-07-01 15:05 fendou999 阅读(763) 评论(0) 推荐(0)
摘要: 1 22 23 24 25 26 27 故障信息28 {% module Uptime() %}29 30 31 32 33 {% if lists != [] %}34 35 {% end %}36 37 {% for d in lists %... 阅读全文
posted @ 2014-06-27 14:13 fendou999 阅读(248) 评论(0) 推荐(0)
摘要: def check_fmd_service(): try: output = subprocess.check_output('svcs -H -o state fmd',shell=True) state = output.decode('UTF-8').stri... 阅读全文
posted @ 2014-06-27 13:58 fendou999 阅读(247) 评论(0) 推荐(0)
摘要: 制作方法:1.wgethttp://192.168.2.5/surefiler-installer/2011-12-09/devel-2011.12.9.tgz2.cd/roottarxfdevel-2011.12.9.tgz3.pkgset-publisher-P-Ofile:///root/ip... 阅读全文
posted @ 2014-06-26 17:54 fendou999 阅读(793) 评论(0) 推荐(0)