1. 将redis配置好环境变量2. 将redis设置为系统服务在解压的 Redis 文件目录下新建命令行运行下述命令。rvice-install redis.windows.conf --loglevel verbose如果执行命令的时候出现下图的错误,说明之前已经配置过redis服务。需要将已经配置的服务卸载,然后再进行执行上述命令。卸载服务代码redis-server --service-uninstall启停:启动服务:redis-server --service-start停止服务:redis-server --service-stop
UNIX时间戳:指的是从1970年01月01日起到当前时间所经过的秒数。一、获取当前时间time()获取当前时间UNIX的时间戳<?php echo time();//1582595180二、strtotime(string time, [int now])可以使用某个自然语言创建某个时刻的时间戳。time:必需。规定日期/时间字符串。int now:规定用来计算返回值的时间戳,默认是当前时间的时间戳。<?php $NowTime=date("Y-m-d H:i:s"); echo strtotime("$NowTime,now...