摘要: vscode远程git或在linux环境使用git时,每次clone都要输入帐号密码,很不方便,可以使用下面一行命令,系统会记录你输入的下一次帐号密码。(明文记录,注意规避风险) # 执行 git config --global credential.helper store git reset - 阅读全文
posted @ 2023-03-07 14:05 zlf2000 阅读(74) 评论(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 阅读(38) 评论(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 阅读(616) 评论(0) 推荐(0)
摘要: 启动redis 打开cmd窗口,执行命令: redis-server redis.windows.conf 阅读全文
posted @ 2022-10-28 11:50 zlf2000 阅读(130) 评论(0) 推荐(0)
摘要: 本篇内容主要讲解“mysql如何替换部分字符串”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“mysql如何替换部分字符串”吧! mysql替换部分字符串的方法:1、使用REPLACE()函数,语法“REPLACE(字符串,查找值,替换值)”;2、使用IN 阅读全文
posted @ 2022-09-29 15:45 zlf2000 阅读(43383) 评论(0) 推荐(0)
摘要: CentOS 7采用新的firewalld,CentOS 6及以前版本采用iptables,不过firewalld底层仍然调用的是iptables 1、查看已经开放的端口 firewall-cmd --list-ports 2、放行端口 firewall-cmd --zone=public --ad 阅读全文
posted @ 2022-09-07 17:59 zlf2000 阅读(3208) 评论(0) 推荐(0)
摘要: $('#code').change(function(){ console.log($(this).val()) localStorage.setItem("code",JSON.stringify({"sn":$(this).val(),"gs":$("#select").val()}));}); 阅读全文
posted @ 2022-08-31 20:32 zlf2000 阅读(115) 评论(0) 推荐(0)
摘要: $j = date("t"); //获取当前月份天数$start_time = strtotime(date('Y-m-01')); //获取本月第一天时间戳$array = array();for ($i = 0; $i < $j; $i++) { $array[] = date('Y-m-d', 阅读全文
posted @ 2022-08-20 11:32 zlf2000 阅读(145) 评论(0) 推荐(0)
摘要: public function dream($keyword) { $host = "https://jisudream.market.alicloudapi.com"; $path = "/dream/search"; $method = "GET"; $appcode = self::$drea 阅读全文
posted @ 2022-08-12 09:36 zlf2000 阅读(48) 评论(0) 推荐(0)
摘要: 购买完云服务器ECS后,对于新手而言如何搭建Web环境是比较棘手的,分享一款简单易用的主机面板:宝塔面板,分享阿里云服务器安装宝塔面板图文教程:本文以:Linux云服务器,CentOS8.0以下 64位系统为例。一:开放安全组端口什么是安全组?是阿里云ECS云服务器特有的虚拟防火墙,是一种安全机制, 阅读全文
posted @ 2022-07-15 10:30 zlf2000 阅读(707) 评论(0) 推荐(0)