上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页

2017年8月24日

python常用模块

摘要: 【os模块 】 当前路径下的所有目录 [x for x in os.listdir(".") if os.path.isdir(x)] 【json】 import json dic = {"name":"jinkang","age":23} d = json.dumps(dic) print typ 阅读全文

posted @ 2017-08-24 14:01 思此狂 阅读(248) 评论(0) 推荐(0)

2017年8月21日

python笔记

摘要: 字符串的格式化 print "hello %s your age %d" %("zhangsan",18) print "hello %s your age" % "zhangsan" 参数一个时 可以不要括号 print "hello {0} your age {1}".format("zhang 阅读全文

posted @ 2017-08-21 01:14 思此狂 阅读(192) 评论(0) 推荐(0)

2017年8月19日

node.js exports module.exports

摘要: var show = require("./make").show;show("jinkang"); 输出 WELCOME jinkang var show = require("./make").show;show("jinkang"); 输出 WELCOME jinkang var show = 阅读全文

posted @ 2017-08-19 10:43 思此狂 阅读(98) 评论(0) 推荐(0)

2017年8月16日

自动化运维工具 SaltStack

摘要: SaltStack 允许主机对多个服务器& 操作系统实现统一的管理和配置 SaltStack 是一种基于 C/S 架构的服务器基础架构集中化管理平台,管理端称为 Master,客户端称为 Minion。SaltStack 具备配置管理、远程执行、 监控等功能,一般可以理解为是简化版的 Puppet 阅读全文

posted @ 2017-08-16 17:08 思此狂 阅读(177) 评论(0) 推荐(0)

2017年8月15日

Node.js事件

摘要: const EventEmitter = require('events'); class MyEmitter extends EventEmitter {} const myev = new MyEmitter(); myev.on('event',function(a,b){ console.log(a,b,this); }) myev.emit('event',"hello",... 阅读全文

posted @ 2017-08-15 23:45 思此狂 阅读(92) 评论(0) 推荐(0)

2017年8月10日

关于redis

摘要: redis 的配置文件 redis.conf 设置密码 requirepass zhssapp 监听IP bind 0.0.0.0 启动 ./redis-server redis.conf 客户端连接 ./redis-cli -h 127.0.0.1 -p 6379 -a zhssapp 或者直接 阅读全文

posted @ 2017-08-10 16:14 思此狂 阅读(132) 评论(0) 推荐(0)

2017年8月7日

inotifywait 目录或文件的监控

摘要: 当目录或者文件有变化的时候执行 相应操作 src=/home/wwwroot/sssm/Api/upload inotifywait -mrq --timefmt '%d/%m/%y %H:%M' --format '%T %w%f' -e close_write,delete,create,att 阅读全文

posted @ 2017-08-07 10:16 思此狂 阅读(241) 评论(0) 推荐(0)

2017年8月3日

postfix/dovecot邮件服务器

摘要: 安装配置参考链接 http://www.cnblogs.com/hgj123/p/6186400.html 关于POP协议,SMTP协议,IMAP协议的一些介绍请参考http://help.163.com/09/1223/14/5R7P6CJ600753VB8.html 一个邮件服务器 的搭建 一些 阅读全文

posted @ 2017-08-03 15:39 思此狂 阅读(579) 评论(0) 推荐(0)

2017年7月31日

Git 命令及git服务器

摘要: Linux 服务器上安装git yum -y install git git config --global user.name "name" git config --global user.email "email" globa 参数表示这台机器上所有仓库都会使用这个配置,当然也可以对指定仓库使 阅读全文

posted @ 2017-07-31 10:03 思此狂 阅读(242) 评论(0) 推荐(0)

2017年7月27日

一个分页功能的实现

摘要: 依赖layui 链接: http://www.layui.com/demo/laypage.html 阅读全文

posted @ 2017-07-27 14:44 思此狂 阅读(167) 评论(0) 推荐(0)

上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页

导航