摘要:
一、安装mongodb 二、安装mongob扩展 问题解决:(1)解决libc.so.6: version `GLIBC_2.14' not found问题 (2)解决/var/VMdisks/glibc-2.14/build/elf/ldconfig: Can't open configurati 阅读全文
摘要:
//$startdate是开始时间,$enddate是结束时间 "; $hour=floor((strtotime($enddate)-strtotime($startdate))%86400/3600); echo "相差小时数:".$hour."小时"; $minute=floor((strtotime($enddate)-strtotime($startdate))%86400/6... 阅读全文
摘要:
/* *desc:计算两个日期相隔多少年,多少月,多少天 *param string $date1[格式如:2011-11-5] *param string $date2[格式如:2012-12-01] *return array array('年','月','日'); */ public function diffDate($date1,$... 阅读全文
摘要:
更改apache和mysql端口 可以使用/opt/zbox/zbox -h命令来获取关于zbox命令的帮助。 其中 -ap参数 可以修改Apache的端口,-mp参数 可以修改Mysql的端口。 例如(apache端口改为8080,mysql端口改为3307): /opt/zbox/zbox st 阅读全文
摘要:
(8)从box列表移除 参考博文:Vagrant 知识澄清与杂症诊治 阅读全文