redis介绍

2017-10-13

Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs and geospatial indexes with radius queries. Redis has built-in replication, Lua scripting, LRU eviction, transactions and different levels of on-disk persistence, and provides high availability via Redis Sentinel and automatic partitioning with Redis Cluster.  阅读全文...

pwd显示ln的源路经

2017-10-11

ln -s /opt/help /help,执行pwd只能显示/help。为了知道确切的路径,需要用pwd -P。  阅读全文...

Bash的24个陷阱分析

2017-09-30

bash编程常见错误。  阅读全文...

linux安装xfsprogs

2017-09-29

XFS是SGI公司开发的文件系统,相比于其他的文件系统有很多的优势,比如扩展性(支持最大的文件和分区)、性能、快速恢复、日志型的有效结构等。  阅读全文...

linux查找文件中含有某个字符串

2017-09-26

我们经常需要在某个目录查找某个文件,但是只记的某个字符串。  阅读全文...

CentOS 5.11 yum通过iso镜像安装软件

2017-09-23

CentOS 5.11已经EOL,不在被支持,为了安装软件,我们可以访问vault.centos.org或archive.kernel.org/centos-vault或准备iso镜像文件。  阅读全文...

Python报错AttributeError: ‘module’ object has no attribute’xxx’

2017-09-22

Python脚本完全正常没问题,但执行总报错"AttributeError: 'module' object has no attribute 'xxx'"。这其实是.pyc文件存在问题。  阅读全文...

python 编码问题 u'汉字'

2017-09-21

python内部使用的是unicode编码,  阅读全文...

[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)

2017-09-21

python2.7.14或3.6.2配置nagios发送微信报错:[SSL: CERTIFICATE_VERIFY_FAILED]   阅读全文...

id_rsa和id_rsa.pub是否匹配

2017-09-21

ssh-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-21

CentOS 5.11默认python 2.4,不支持except urllib2.URLError as e:,需要升级python2.7  阅读全文...

Linux下Python基础调试

2017-09-21

python -m pdb myscript.py  阅读全文...

linux如何关闭“You have new mail in /var/spool/mail/root”提示

2017-09-21

linux每次进行一个操作,都会产生mail记录。  阅读全文...

discuz修改附件上传限制

2017-09-21

Discuz! X3.2 论坛上传文件时,总提示文件尺寸小于2M。  阅读全文...

linux安装Python 3.6.2 SSL

2017-09-20

Python 3.6安装过程。  阅读全文...