文章分类 -  web nginx php

跨平台的fswatch+rsync同步备份
摘要:https://segmentfault.com/a/1190000018024251 rsync是非常好用,但是只是极好的cp而已。如果要监控本地某些文件变化,自动上传,还需要配合其它监控工具。一般都叫watch, notify什么的。最有名的是inotify。但是inotify是linux内核的 阅读全文

posted @ 2022-07-18 19:32 ZhYQ_note 阅读(225) 评论(0) 推荐(0) 编辑

NGINX 502 Bad Gateway: PHP-FPM
摘要:NGINX 502 Bad Gateway: PHP-FPM Editor’s note: php-fpm uses the term “master” to describe its primary process. Datadog does not use this term. Within t 阅读全文

posted @ 2021-09-23 14:31 ZhYQ_note 阅读(81) 评论(0) 推荐(0) 编辑

最完美 ThinkPHP(tp) 的 Nginx 配置文件
摘要:https://www.seasidecrab.com/tp/487.html 请注意,本文编写于 700 天前,最后修改于 362 天前,其中某些信息可能已经过时。 前言 作为一个成熟的框架,对于多种服务器环境,应该提供虚拟主机标准配置样例的,但 ThinkPHP(以下统称为 tp) 并没有这样做 阅读全文

posted @ 2021-09-22 18:43 ZhYQ_note 阅读(2044) 评论(0) 推荐(1) 编辑

【干货】Chrome插件(扩展)开发全攻略
摘要:【干货】Chrome插件(扩展)开发全攻略 https://www.ituring.com.cn/book/miniarticle/73949 阅读全文

posted @ 2021-01-06 11:53 ZhYQ_note 阅读(60) 评论(0) 推荐(0) 编辑

Upgrade the PHP CLI to 7.4 on Mac
摘要:原文地址:https://chasingcode.dev/blog/upgrade-php-74-cli-mac/ Upgrade the PHP CLI to 7.4 on Mac December 8, 2019 On Mac, PHP can be easily upgraded to 7.4 阅读全文

posted @ 2021-01-05 15:32 ZhYQ_note 阅读(87) 评论(0) 推荐(0) 编辑

为什么HTTPS中证书链不完整,有的客户端访问正常,有的会报错?
摘要:为什么HTTPS中证书链不完整,有的客户端访问正常,有的会报错? 背景 某客户接入高防节点,他们通过java客户端发POST请求,传参到源站正常,经过防御节点失败。用浏览器经过节点访问网站,也是正常的。 排查过程 curl -k 请求源站,正常;请求节点,正常 (-k 不验证证书) curl 请求源 阅读全文

posted @ 2020-12-29 19:35 ZhYQ_note 阅读(1233) 评论(0) 推荐(0) 编辑

一个因CA根证书过期引起的故障
摘要:一个因CA根证书过期引起的故障 @ALIASMEE · JUN 1, 2020 · 3 MIN READ 服务器上的应用服务对外发送的一些https请求都失败了,真相竟然是。。。 问题 今天是儿童节,祝各位大盆友小盆友节日快乐haha。 10点左右,同事反馈咨询线上的Sentry服务器现在是否正常。 阅读全文

posted @ 2020-12-29 19:34 ZhYQ_note 阅读(556) 评论(0) 推荐(0) 编辑

curl https 访问ssl失败
摘要:* Trying 106.14.340.252... * TCP_NODELAY set * Connected to log.xx.com (106.14.340.252) port 443 (#0) * ALPN, offering h2 * ALPN, offering http/1.1 * 阅读全文

posted @ 2020-12-29 19:31 ZhYQ_note 阅读(936) 评论(1) 推荐(0) 编辑

php rsa 非对称加解密类
摘要:php rsa 非对称加解密类 <?php header("Content-Type: text/html;charset=utf-8"); /* 生成公钥、私钥对,私钥加密的内容能通过公钥解密(反过来亦可以) 下载开源RSA密钥生成工具openssl(通常Linux系统都自带该程序),解压缩至独立 阅读全文

posted @ 2020-12-28 11:59 ZhYQ_note 阅读(77) 评论(0) 推荐(0) 编辑

Java & PHP & Javascript 通用 RSA 加密 解密 (长字符串)
摘要:Java & PHP & Javascript 通用 RSA 加密 解密 (长字符串) 阅读全文

posted @ 2020-12-28 11:58 ZhYQ_note 阅读(83) 评论(0) 推荐(0) 编辑

php中openssl_pkey_get_private()函数遇到false的问题 解决办法
摘要:php中openssl_pkey_get_private()函数遇到false的问题 解决办法 今天用openssl_pkey_get_private()函数遇到了一个大坑: 如果你的私钥文件(private_key.pem)是 BEGIN PRIVATE KEY 字符串字符串 END PRIVAT 阅读全文

posted @ 2020-12-28 11:36 ZhYQ_note 阅读(1197) 评论(0) 推荐(0) 编辑

php curl https请求ssl版本问题
摘要:https://stackoverflow.com/questions/14078182/openssl-file-get-contents-failed-to-enable-crypto Ok I have found a solution. The problem is that the sit 阅读全文

posted @ 2020-12-25 14:19 ZhYQ_note 阅读(1128) 评论(0) 推荐(0) 编辑

PHP函数file_get_contents()使用 https 协议时报错:SSL operation failed
摘要:PHP函数file_get_contents()使用 https 协议时报错:SSL operation failed 场景: file_get_contents() 函数是用于将文件的内容读入到一个字符串中,是读取文件内容常用的函数之一。 但是有时在服务器上使用file_get_contents( 阅读全文

posted @ 2020-12-25 14:11 ZhYQ_note 阅读(278) 评论(0) 推荐(0) 编辑

axios post 请求参数传递
摘要:axios.post('/user', { //直接使用官网的方式,发现post参数,在php那边接受不到 firstName: 'Fred', lastName: 'Flintstone' }) .then(function (response) { console.log(response); 阅读全文

posted @ 2020-12-25 14:07 ZhYQ_note 阅读(2927) 评论(0) 推荐(0) 编辑

在 Chrome 中调试javascript
摘要:https://zh.javascript.info/debugging-chrome#duan-dian-breakpoints https://github.com/CompileYouth/front-end-study/blob/master/tool/devtools/Sources.md 阅读全文

posted @ 2020-12-21 11:34 ZhYQ_note 阅读(49) 评论(0) 推荐(0) 编辑

vue更新数组时触发视图更新的方法
摘要:1、更新整个数组 vue.js更新整个数组的最佳方法 更新整个观察数组并在vue.js中触发重新渲染的最佳方法是什么,而不必迭代推送所有项目? 我在这里阅读了文档: https://vuejs.org/v2/guide/list.html#Replacing-an-Array 但是我不得不过滤,连接 阅读全文

posted @ 2020-12-21 11:00 ZhYQ_note 阅读(696) 评论(0) 推荐(0) 编辑

[vue.js]如何在 v-for 列表中动态添加 ref 并获取对应元素dom
摘要:[vue.js]如何在 v-for 列表中动态添加 ref 并获取对应元素dom [vue.js]如何在 v-for 列表中动态添加 ref 并获取对应元素dom vue.js 发布于 2019-10-21 使用场景:在 vue 中,我们需要直接操作DOM的时候,可以使用ref 及$ref 来实现 阅读全文

posted @ 2020-12-18 17:29 ZhYQ_note 阅读(955) 评论(0) 推荐(0) 编辑

vue点击事件时父、子、兄弟元素获取与操作(DOM 元素对象)
摘要:vue点击事件时父、子、兄弟元素获取与操作(DOM 元素对象) 在vue的点击事件中,有许多东西需要使用javascript的语句来进行操作,例如html节点信息的获取,以及相关节点的操作等 <button @click=f_click($event)> 测试点击 </button> HTML Co 阅读全文

posted @ 2020-12-18 14:35 ZhYQ_note 阅读(1246) 评论(0) 推荐(0) 编辑

Vue methods 用箭头函数取不到 this
摘要:https://segmentfault.com/q/1010000007225390 Vue methods 用箭头函数取不到 this vue.js const App = new Vue({ el: 'body', methods: { foo: () => { console.log(thi 阅读全文

posted @ 2020-12-18 13:57 ZhYQ_note 阅读(1280) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示