随笔分类 - 服务器
摘要:首先先下载个推官方的sdk 直接在根目录下 composer require getuilaboratory/getui-pushapi-php-client-v2 如果报错请用 composer require getuilaboratory/getui-pushapi-php-client-v2
阅读全文
摘要:在通过chrome浏览器来调用摄像头的时候发现getUserMedia报错,但是本地开发却没有问题,主要原因是https环境的问题。chrome 不允许在非https和非localhost下的非安全环境进行调用。 方法一(临时): 打开谷歌: chrome://flags/#unsafely-tre
阅读全文
摘要:1、在运行中输入msconfig 如图 msconfig 2.在选项卡中选择“引导”,删除其它系统保留一个系统即可 确定,重启后生效
阅读全文
摘要:新版win10 安装的时候会出现: 1.搜索powershell,右键以管理员身份运行 2.输入指令 set-ExecutionPolicy RemoteSigned 在输入A或者Y后,如果出现: 则执行后再输入A或者Y Set-ExecutionPolicy -Scope CurrentUser
阅读全文
摘要:yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh ed8484bec
阅读全文
摘要:本次错误,是因为composer版本更新,替换掉了一些东西,所以执行composer self-update 更新版本,然后再次composer update 更新文件,都执行成功后,再去安装新包
阅读全文
摘要:https://www.runoob.com/w3cnote/composer-install-and-usage.html
阅读全文
摘要:报错信息 php -r "copy('https://install.phpcomposer.com/installer', 'composer-setup.php');" PHP Warning: copy(): SSL operation failed with code 1. OpenSSL
阅读全文
摘要:git上传仓库时报错 解决方法共两步1、移除git remote rm origin2、再次连接git remote add origin ‘仓库地址’ 完成之后再次重新提交即可。
阅读全文
Warning: require(): open_basedir restriction in effect. File(/www/wwwroot/svnrepos/thinkphp/base.php
摘要:Warning: require(): open_basedir restriction in effect. File(/www/wwwroot/svnrepos/thinkphp/base.php) is not within the allowed path(s): (/www/wwwroot
阅读全文
摘要:1.如下图 其实很简单。不要盯着红色的看。黄色的也看一下 Do not run Composer as root/super user! See https://getcomposer.org/root for detailsWarning from https://mirrors.aliyun.c
阅读全文
摘要:Git遇到error: Unable to create 'E:/zyw/xm/ssrb_uni_oa_ht/.git/index.lock': File exists. 解决方案: 在 .git 同级目录中找到 index.lock ,删除即可; 或在 .git 同级目录执行 rm -f .git
阅读全文
摘要:看代码 //判断文件是否存在,存在则删除,不存在则。。。 public function ff(){ $list=Db::name('costpay_file')->where('url','like','/costpay_file/20220622/%')->select(); foreach (
阅读全文
摘要:若执行了git commit 想车祸,只需要执行命令 git reset --soft HEAD^ 若执行了git add 后想撤回 直接执行 git reset HEAD git reset HEAD 如果后面什么都不跟的话 就是上一次add 里面的全部撤销了 git reset HEAD XXX
阅读全文
摘要:执行指令 composer require qiniu/php-sdk:^7.2
阅读全文
摘要:1.服务器上先安装FFmpeg https://www.cnblogs.com/zhangyouwu/p/16312243.html 2.在php中使用FFmpeg截取视频封面图片(使用注意:如果php禁用了shell_exec函数,需要在php.ini中搜索"disable_functions"找
阅读全文
摘要:FFmpeg是一套可以用来记录、转换数字音频、视频,并能将其转化为流的开源计算机程序。 1.先安装gcc cc cl编译器 yum -y install gcc cc cl 2.安装yasm插件(安装ffmpeg需要先yasm插件) wget https://github.com/yasm/yasm
阅读全文
摘要:原因:可能是php未安装swoole拓展 php -m看看有没有swoole,没有就是没有安装swoole扩展的问题 解决办法:安装swoole拓展
阅读全文
摘要:遇到git提交时unpackage文件无法忽略的问题 执行命令 git rm -r --cached unpackage 删除该目录的缓存 重新提交文件,搞定! 同理:当其他文件被提交过,需要不再跟踪文件状态,不需要提交修改时,需要先清除git缓存,使文件不处于被跟踪状态,再在.gitignore文
阅读全文

浙公网安备 33010602011771号