最新文章 更多»

yum 安装mongodb和扩展

centos7 yum安装mongodb;1:创建仓库vi/etc/yum.repos.d/mongodb-org-3.4.repo2:把下面的内容复制到文件中 保存退出[mong

mongodb

Memcache缓存的使用

先说一下之前的需求;由于之前是一直用的直接读取数据库;每到周六周日服务器就会挂掉,英文访问量很大;对sql各种优化效果也不是很好;后来就采用了Memcache缓存,缓存之存储用户的

redis模拟抢购

在thinkphp5.0框架使用redis,redis支持五种数据类型 string hash list set zset<?php namespaceapp\index\

redis

phpmailer发送excell

使用phpmailer结合PHPexcell完成定时发送邮件和excell的功能;ini_set("magic_quotes_runtime",0); req

正则验证固话和手机号

固话和手机号的验证,正则表达式验证functioncheckTel(value){ varisPhone=/(^(0\d{2})-(\d{8})$)|(^(0\d{3})-(\