摘要: 方法1:https://www.yiichina.com/tutorial/1944 方法2: https://www.77xunshan.com/article_details/5 https://blog.csdn.net/buyueliuying/article/details/1196769 阅读全文
posted @ 2022-01-13 16:18 蓝晓焰 阅读(115) 评论(0) 推荐(0) 编辑
摘要: php 生成12位不重复(理论来讲)随机数,可以用来做订单号,标识等 date('md') . str_shuffle(substr(microtime(), 2, 6)) . sprintf('%02d', rand(0, 99)); 以月日开头 4位, 将毫秒进行随记 6位,使重复率降低,添加两 阅读全文
posted @ 2021-12-22 18:23 蓝晓焰 阅读(589) 评论(0) 推荐(0) 编辑
摘要: 示例: curl -X POST 'http://192.168.1.201:8848/nacos/v1/ns/instance?serviceName=GROP@@goods-service-01&ip=192.168.1.201&port=8081&healthy=true&ephemeral= 阅读全文
posted @ 2021-12-15 15:56 蓝晓焰 阅读(535) 评论(0) 推荐(0) 编辑
摘要: 例如 wget baidu.com 报 403 Forbidden 错误,可能是配置代理造成的,或 opensslenv | grep -i proxy 查看代理unset ftp_proxy 清除代理 阅读全文
posted @ 2021-12-15 15:53 蓝晓焰 阅读(601) 评论(0) 推荐(0) 编辑
摘要: $arr1 = [['a', 'b']];$arr = [];$arr = array_merge(array_reduce($arr1, 'array_merge', []), $arr);参考:https://blog.csdn.net/eddy23513/article/details/809 阅读全文
posted @ 2021-12-08 17:54 蓝晓焰 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 明天02:56与今天22:45相差多少小时,多少分钟 echo $time = strtotime("+ 1day", strtotime('02:56')) - strtotime('22:45'); echo "\r\n"; echo floor($time / 3600).':'.($time 阅读全文
posted @ 2021-08-19 11:44 蓝晓焰 阅读(69) 评论(0) 推荐(0) 编辑
摘要: nginx 配置 修改 nginx.conf client_max_body_size 1024M; 上传文件大小限制 sendfile on; 设置为on表示启动高效传输文件的模式 keepalive_timeout 180; 保持连接的时间,默认65s php 配置 修改 php.ini upl 阅读全文
posted @ 2021-08-06 20:33 蓝晓焰 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 进入nginx配置文件夹 cd /usr/local/etc/nginx/ 指定用户名 echo -n "user:" > passwd.conf 指定密码 openssl passwd password >> passwd.conf nginx 中添加 以下两个配置项 auth_basic "Pl 阅读全文
posted @ 2021-08-06 20:23 蓝晓焰 阅读(774) 评论(0) 推荐(0) 编辑
摘要: Windows远程连接todesk https://www.todesk.com/ Windows屏幕共享Spacedesk https://spacedesk.net/ Windows终端Cmder https://blog.csdn.net/fageweiketang/article/detai 阅读全文
posted @ 2021-07-08 09:04 蓝晓焰 阅读(39) 评论(0) 推荐(0) 编辑
摘要: Mac Mysql 密码更改 其他系统可参考 关闭数据库 brew services stop mysql@5.7 安全模式启动 /bin/sh /usr/local/opt/mysql@5.7/bin/mysqld_safe --skip-grant-tables 登陆mysql(不需密码) my 阅读全文
posted @ 2021-06-26 15:23 蓝晓焰 阅读(53) 评论(0) 推荐(0) 编辑