摘要: windows系统下启动redis命令 进入redis安装目录 cd redis 输入 redis-server.exe redis.windows.conf 启动redis命令,看是否成功 可能会启动失败,报[1696] 30 Jan 09:46:07.518 # Creating Server 阅读全文
posted @ 2024-04-23 17:51 zlf2000 阅读(1) 评论(0) 推荐(0) 编辑
摘要: strftime()函数的用法 strftime()函数可以把YYYY-MM-DD HH:MM:SS格式的日期字符串转换成其它形式的字符串。strftime()的语法是strftime(格式, 日期/时间, 修正符, 修正符, ...) 函数strftime()的操作有些类似于sprintf():识 阅读全文
posted @ 2024-01-27 14:17 zlf2000 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 本方法适用于fedora37(含)以上(使用GRUB2) 步骤如下: Step 1:系统菜单,在linux上按“e”键进行编辑 Step 2:使用上下键找到以字符串“linux”或“linux16”(16是fedora16)开始的行。(如果你使用UEFI系统,那么这行就是以“linuxefi”开始的 阅读全文
posted @ 2023-09-25 18:36 zlf2000 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 搭建宝塔8.0 面板会出现 连接丢失需要重新连接 碰见这个问题因为宝塔的8.0 镜像换了 需要重新执行一下宝塔镜像btpip install simple-websocket==0.10.0 && bt 1 执行完成之后出现这个就可以使用面板 阅读全文
posted @ 2023-07-06 17:01 zlf2000 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 1、 常用的git命令 Git 常用的六个命令是什么? ·“git clone”克隆代码; ·“git log”查看日志; ·“git tag”查看标签; ·“git branch”查看分支; ·“git branch -a”查看远程分支; ·“git pull”拉取。 2、 新建代码 在当前目录新 阅读全文
posted @ 2023-06-06 11:33 zlf2000 阅读(57) 评论(0) 推荐(0) 编辑
摘要: $map1[] = ["like_article.user_id", 'not in', function ($query) use ($user_id) { $query->name('like_community_report') ->where(['type' => 2, 'user_id' 阅读全文
posted @ 2023-05-27 10:09 zlf2000 阅读(16) 评论(0) 推荐(0) 编辑
摘要: vscode远程git或在linux环境使用git时,每次clone都要输入帐号密码,很不方便,可以使用下面一行命令,系统会记录你输入的下一次帐号密码。(明文记录,注意规避风险) # 执行 git config --global credential.helper store 3 重置密码 git 阅读全文
posted @ 2023-03-07 14:05 zlf2000 阅读(38) 评论(0) 推荐(0) 编辑
摘要: <?phpdeclare (strict_types=1);namespace app\command;use think\console\Command;use think\console\Input;use think\console\input\Argument;use think\conso 阅读全文
posted @ 2023-02-22 15:36 zlf2000 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 获取php下个月当前时间public static function fq_time($time = ""){ if (!$time) $time = time(); $arr = getdate($time); //判断月份 $year = $arr['year']; $month = $arr[ 阅读全文
posted @ 2023-02-17 17:30 zlf2000 阅读(521) 评论(0) 推荐(0) 编辑
摘要: 启动redis 打开cmd窗口,执行命令: redis-server redis.windows.conf 阅读全文
posted @ 2022-10-28 11:51 zlf2000 阅读(74) 评论(0) 推荐(0) 编辑