Python报错AttributeError: ‘module’ object has no attribute’xxx’
2017-09-22Python脚本完全正常没问题,但执行总报错"AttributeError: 'module' object has no attribute 'xxx'"。这其实是.pyc文件存在问题。 阅读全文...
python 编码问题 u'汉字'
2017-09-21python内部使用的是unicode编码, 阅读全文...
[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)
2017-09-21python2.7.14或3.6.2配置nagios发送微信报错:[SSL: CERTIFICATE_VERIFY_FAILED] 阅读全文...
id_rsa和id_rsa.pub是否匹配
2017-09-21ssh-keygen -y -f id_rsa > id_rsa.pub2
diff id_rsa.pub2 id_rsa.pub 阅读全文...
CentOS 5.11 except urllib2.URLError, e: ^ SyntaxError: invalid syntax
2017-09-21CentOS 5.11默认python 2.4,不支持except urllib2.URLError as e:,需要升级python2.7 阅读全文...
Linux下Python基础调试
2017-09-21python -m pdb myscript.py 阅读全文...
linux如何关闭“You have new mail in /var/spool/mail/root”提示
2017-09-21linux每次进行一个操作,都会产生mail记录。 阅读全文...
discuz修改附件上传限制
2017-09-21Discuz! X3.2 论坛上传文件时,总提示文件尺寸小于2M。 阅读全文...
linux安装Python 3.6.2 SSL
2017-09-20Python 3.6安装过程。 阅读全文...
CentOS 7修改主机名hostname
2017-09-16CentOS7之前的版本修改主机名/etc/sysconfig/network,7.0修改主机名/etc/hostname. 阅读全文...
awk实例
2017-09-15awk是一个强大的文本分析工具,简单来说awk就是把文件逐行的读入,以空格为默认分隔符将每行切片,切开的部分再进行各种分析处理。结合grep和sed,能快捷的处理文本。有专门介绍awk的书。 阅读全文...
linux普通用户之间的ssh无密码访问
2017-09-11普通用户test(两台服务器都有这个用户),在/home/test/.ssh下配置ssh无密码访问,运行scp命令,仍要求我输入密码。 阅读全文...
linux tracert
2017-09-09tracert/traceroute/mtr 阅读全文...
fping
2017-09-07fping is a program like ping which uses the Internet Control Message Protocol (ICMP) echo request to determine
if a target host is responding. fping differs from ping in that you can specify any number of targets on the
command line, or specify a file containing the lists of targets to ping. 阅读全文...
linux安装rar和unrar
2017-09-05WinRAR is a powerful archive manager. 阅读全文...