摘要: 1.利用chrome浏览器 环境要求:需要PHP 7.4~8.2和Chrome/Chrmium 65+ (Linux服务器安装Chrmium) 2.安装 composer require chrome-php/chrome 3.使用 use HeadlessChromium\BrowserFacto 阅读全文
posted @ 2023-10-30 14:37 COCO歧 阅读(230) 评论(0) 推荐(0) 编辑
摘要: <?php/** * redis 分布式锁 */class RedisLock{ private $config; private $redis; public function __construct($config = []){ $this->config = $config ? $config 阅读全文
posted @ 2023-02-10 17:09 COCO歧 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 使用1.composer安装 composer require barryvdh/laravel-dompdf2.发布配置文件,生成的配置文件config/dompdf.php,也可选择忽略此步骤 php artisan vendor:publish --provider="Barryvdh\Dom 阅读全文
posted @ 2023-01-03 14:37 COCO歧 阅读(719) 评论(0) 推荐(0) 编辑
摘要: use GuzzleHttp\Client; //打包下载function downLoadPackage($fileData,$filePackage='document',$zipFileName='file'){ //存到 域名指向的public 目录 //1.先把远程文件下载到本地文件夹中 阅读全文
posted @ 2022-07-20 14:32 COCO歧 阅读(1020) 评论(0) 推荐(0) 编辑
摘要: 1.查看提交版本记录日志 git log 2.找到指定的记录版本 git reset --hard 版本ID 例如:git reset --hard 4c9b1ac2aa9cf103278be0ab57721299abae2c4f 3. 强行推送我们的代码 到指定分支 git push -f -u 阅读全文
posted @ 2022-01-25 15:05 COCO歧 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 利用file_put_contents 下载文件 httpcopy("远程文件地址","本地下载得目录和文件名"); function httpcopy($url, $file="", $timeout=60) { $file = empty($file) ? pathinfo($url,PATHI 阅读全文
posted @ 2021-09-24 18:06 COCO歧 阅读(1082) 评论(0) 推荐(0) 编辑
摘要: 1.查看是否已经安装过 rpm -qa subversion2. 安装 yum install subversion 查看是否安装成功 svnserve --version 3.创建目录 mkdir -p /opt/svn/repo4.创建版本库 svnadmin create /opt/svn/r 阅读全文
posted @ 2020-06-12 16:15 COCO歧 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 一、检查系统是否安装老版本,有的话干掉 #yum list installed | grep mysqlmysql57-community-release.noarch el7-11 @/mysql57-community-release-el7-11.noarch #yum -y remove m 阅读全文
posted @ 2020-05-30 14:57 COCO歧 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 1.更新源 yum update2.安装nginx yum install nginx3.启动nginx service nginx start4.访问http://你的ip 如果想配置域名,见最下面。 5.安装mysql: 安装mysql源 yum localinstall http://dev. 阅读全文
posted @ 2020-03-22 16:03 COCO歧 阅读(1703) 评论(0) 推荐(0) 编辑
摘要: 在配置文件 config\ueditor.php 中添加一行 // 是否使用 md5 格式文件名 'hash_filename' => true, 和disk,route,同级就行 'disk' => 'admin', 'route' => [], 'hash_filename' => true, 阅读全文
posted @ 2020-03-16 11:08 COCO歧 阅读(549) 评论(0) 推荐(0) 编辑