django1.x和3.x版本中user_permissions语法区别
点击数:31 django1.x写法 user = User.objects.get(id=data.get(‘uid’)) user.user_permissions = request.POST.getlist(‘perm_list[]…Read more »
zimbra排错
点击数:151 1.报错: (/opt/zimbra/.ssh/zimbra_identity) does not exist 解决: su – zimbra zmsshkeygen zmupdateauthkeys 2.无法发送邮…Read more »
journalctl 日志查看方法
点击数:24 1 概述 日志管理工具journalctl是centos7上专有的日志管理工具,该工具是从message这个文件里读取信息。Systemd统一管理所有Unit的启动日志。带来的好处就是,可以只用journalctl一个命令,…Read more »
“write same failed manually zeroing”错误
点击数:7 #! /bin/sh # Disable SCSI WRITE_SAME, which is not supported by underlying disk # emulation. Run on boot from, eg,…Read more »