
开发笔记
文章平均质量分 55
沙漠中海
言忠信,行笃敬。
展开
-
mysql实现主从复制,php日常笔记
php也好、java也罢,那种语言操作mysql都离不开主从复制、读写分离、分库分表的节点。今天我们就写一下主从复制的配置。主要是把命令存下来,方便直接复制粘贴运行。原创 2022-04-25 18:07:59 · 701 阅读 · 0 评论 -
PHP elasticsearch 条件过滤、排序、高亮实现
php在做搜索引擎时,进程要对结果进行筛选,所以我们这里记录一下elasticsearch 条件过滤、排序、高亮实现。原创 2022-04-18 14:10:22 · 2171 阅读 · 0 评论 -
jenkins参数化构建
jenkins安装请参考:创建frestyle请参考:这里继续说jenkins的参数化构建查找参数化构建,并勾选点击【添加参数】,如果没有找到git参数,说明没有安装git参数化构建的插件,所以先安装插件:安装后回到 项目流程,【添加参数】选择【git参数】【参数类型】选择【标签】,名称自定义,后面需要使用该名称 如:tag,后面则用$tag;填入默认构建的git tag标签添加构建后shell脚本...原创 2021-11-15 11:03:02 · 1228 阅读 · 0 评论 -
php音频文件处理两个库记录
1. phpclasses/mp3MP3 Class: Manipulate MP3 audio files - PHP Classescomposer.json引入"require": { "phpclasses/mp3": ">=0.1.2" },"repositories": [ { "type": "composer", "url": "https:\/\/www.phpclasses.org\/" },..原创 2021-07-31 14:30:30 · 287 阅读 · 0 评论 -
Mac自带php环境,如何切换php默认版本?
我自己下载php7.4.6,并编译安装成功此时php -v还是php7.3原创 2021-05-30 10:11:36 · 701 阅读 · 0 评论 -
Protocol “https“ not supported or disabled in libcurl
Composer update 报错:Protocol “https“ not supported or disabled in libcurlphp代码运行也报错:Protocol “https“ not supported or disabled in libcurl排查问题:1.openssl,如果没有安装openssl请百度安装openssl version -a2.curl$ curl -Vcurl 7.77.0 (x86_64-apple-darwin19.6...原创 2021-05-30 02:15:55 · 1068 阅读 · 0 评论 -
uniapp开发h5解决跨域问题的方法
一、使用Hbuilder右上角的预览,Hbuilder内置浏览器调试跨域忽略掉跨域问题二、修改vue.config.js配置文件1.在devServer{}内加入代理devServer: { proxy: { //配置跨域 '/host': { target: 'https://xxx.xxx.com', //这里后台的地址模拟的;应该填写你们真实的后台接口 changOrigin: true, //允许跨域 pathRe原创 2021-05-07 13:57:54 · 1261 阅读 · 0 评论 -
Namespace declaration statement has to be the very first statement in the script
今天把php项目部署到win32服务器上,出现这个报错:Namespace declaration statement has to be the very first statement in the script我在远程桌面上用记事本打开修改后无效。于是安装了notepad++,打开文件后没有做修改,便用浏览器访问,报错没有了。百度了一下,有高手建议“用notepad++把页面原创 2016-08-21 17:40:24 · 356 阅读 · 0 评论