上一页 1 2 3 4 5 6 ··· 24 下一页
摘要: 1、查看nginx进程 ps -ef | grep nginx 2、yum erase nginx 3、yum install -y epel-release 4、再次安装 yum install -y nginx 5、nginx -v 6、systemctl enable nginx.servic 阅读全文
posted @ 2022-03-16 15:43 pengcx 阅读(113) 评论(0) 推荐(0)
摘要: location = / { return 404; } 阅读全文
posted @ 2022-03-09 16:59 pengcx 阅读(41) 评论(0) 推荐(0)
摘要: 只需在nginx的配置文件中的http配置项中加上 add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Headers X-Requested-With; add_header Access-Contro 阅读全文
posted @ 2022-03-02 09:53 pengcx 阅读(407) 评论(0) 推荐(0)
摘要: 例如node的项目,可以在location中做一个验证,然后使用 porxy_pass 反向代理模块实现。 location模块的匹配介绍 1.”=”前缀指令匹配,如果匹配成功,则停止其他匹配。 2.普通字符串指令匹配,顺序是从长到短,匹配成功的location如果使用^~,则停止其他匹配(正则匹配 阅读全文
posted @ 2022-02-24 16:19 pengcx 阅读(1098) 评论(0) 推荐(0)
摘要: 对于同一控件同时设置bindtap和bindlongtap,会发现长按时先出现bindlongtap的事件,然后触发点击事件。 通过测试,我们发现,小程序中事件执行的顺序是 点击:touchstart → touchend → tap 长按 touchstart → longtap → touche 阅读全文
posted @ 2022-01-26 16:36 pengcx 阅读(1044) 评论(0) 推荐(0)
摘要: 来源:https://developers.weixin.qq.com/community/pay/doc/000c663ae888489e75caed93551800 阅读全文
posted @ 2022-01-05 15:02 pengcx 阅读(410) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-12-08 17:37 pengcx 阅读(170) 评论(0) 推荐(0)
摘要: $arr = ["6","10"]; $newArr = json_decode('[' . join(',', $arr) . ']', true); var_dump($newArr); 阅读全文
posted @ 2021-12-08 16:01 pengcx 阅读(525) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-12-08 15:53 pengcx 阅读(327) 评论(0) 推荐(0)
摘要: centos7 yum安装php7.2 清除历史版本 安装源 安装扩展包 安装完成以后,启动服务 清除历史版本为了防止centos上面发生php冲突,先清除历史版 yum -y remove php* 安装源安装php72w,是需要配置额外的yum源地址的,否则会报错不能找到相关软件包。php高版本 阅读全文
posted @ 2021-11-18 11:26 pengcx 阅读(190) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 24 下一页