从相册中选择图片上传function uploadFromAlbum(type) { var dirtype = ""; if ("pick_store_license" == type || "pick_id_pic" == type) { dirtype = "auth...
分类:
Web程序 时间:
2015-07-27 20:49:02
阅读次数:
136
配置说明down:当前的IPserver暂时不参与负载,不进行反向代理weight:默认为1,weight越大,负载的权重越大max_fails: 允许请求失败的次数默认为1,当超过最大次数时,返回proxy_next_upstream模块定义的错误fail_timeout: max_fai...
分类:
其他好文 时间:
2015-07-27 13:02:39
阅读次数:
127
2015-07-26 23:49:05,594 ERROR [main] security.UserGroupInformation (UserGroupInformation.java:doAs(1494)) - PriviledgedActionException as:cau (auth:SIMPLE) cause:org.apache.hadoop.mapreduce.lib.input.InvalidInputException: Input path does not exist: file:/...
分类:
系统相关 时间:
2015-07-27 00:21:44
阅读次数:
335
讲解一下DOS下telnet命令发送邮件
步骤,以我的163邮箱为例
1、开始-->cmd 进入到dos里面
2、输入telnet smtp.163.com 25
回车后返回220
3、输入 EHLO smtp.163.com
回车后返回250
4、输入 AUTH LOGIN 回车返回334
5、输入对应163邮...
分类:
其他好文 时间:
2015-07-26 00:33:44
阅读次数:
216
Mongodb安全认证在单实例和副本集两种情况下不太一样,单实例相对简单,只要在启动时加上 --auth参数即可,但副本集则需要keyfile。一、单实例1.启动服务(先不要加auth参数)2.登陆后切换到admin库并添加管理员账号 2.1 创建系统管理员用户默认条件下,超级管理员只能用于帐号管理...
分类:
数据库 时间:
2015-07-25 19:55:03
阅读次数:
642
用中文简述一下http auth的过程:客户端发送http请求服务器发现配置了http auth,于是检查request里面有没有"Authorization"的http header如果有,则判断Authorization里面的内容是否在用户列表里面,Authorization header的典型...
分类:
Web程序 时间:
2015-07-24 18:04:29
阅读次数:
134
Shell script fails: Syntax error: “(” unexpectedgoogle 一下。http://unix.stackexchange.com/questions/45781/shell-script-fails-syntax-error-unexpectedThe ...
分类:
系统相关 时间:
2015-07-22 18:08:36
阅读次数:
148
login_required无效用django的restful写成的请求处理,使用auth模块中装饰器进行访问限制,出现request无user属性的错误.from django.views.generic import View
from django.contrib.auth.decorators import login_requiredclass TaskQueue(View):
'...
分类:
其他好文 时间:
2015-07-22 16:10:15
阅读次数:
152
参考1:http://wiki2.dovecot.org/HowTo/CRAM-MD5参考2:http://susam.in/blog/auth-cram-md5/在/etc/dovecot/conf.d/10-auth.cof中,修改auth_mechanisms=cram-md5;再去掉!includeauth-passwdfile.conf.ext之前的注释#/etc/dovecot/conf.d/auth-passwdfile.conf.ext中,修改..
分类:
其他好文 时间:
2015-07-21 19:07:19
阅读次数:
127
使用session方法###
importwinrm
s=winrm.Session(‘http://10.10.60.14:5985/wsman‘,auth=(‘administrator‘,‘password‘))
r=s.run_ps(‘dir‘)
r=s.run_cmd(‘cd/dd:&test.bat‘)
printr.std_out
printr.std_err使用Protocol方法###
importwinrm
conn=winrm.Protocol(endpoint=..
分类:
编程语言 时间:
2015-07-21 18:59:37
阅读次数:
419