摘要: composer require intervention/image <?phpnamespace app\api\controller;use Intervention\Image\ImageManagerStatic as Image;class Test extends Base{ publ 阅读全文
posted @ 2023-06-08 15:09 Abner3721 阅读(45) 评论(0) 推荐(0) 编辑
摘要: 首先把服务器的公钥添加到你项目仓库中 1、首先生成公钥: sudo -u www ssh-keygen -t rsa -C "xxxxx@qq.com" 2、把公钥添加到gitee中 3、克隆远程仓库 sudo -u www git clone git@gitee.com:Abner3721/abn 阅读全文
posted @ 2023-05-26 17:27 Abner3721 阅读(854) 评论(0) 推荐(0) 编辑
摘要: https://cloud.tencent.com/developer/article/2207775 阅读全文
posted @ 2023-05-26 14:50 Abner3721 阅读(55) 评论(0) 推荐(0) 编辑
摘要: /** * 获取真实IP * @return mixed */ public static function getRealIp() { $ip = $_SERVER['REMOTE_ADDR']; if (isset($_SERVER['HTTP_X_FORWARDED_FOR']) && pre 阅读全文
posted @ 2023-05-09 11:17 Abner3721 阅读(13) 评论(0) 推荐(0) 编辑
摘要: #!/bin/sh # Program: # Auto cut nginx log script. # nginx日志路径 LOGS_PATH=/home/wwwlogs TODAY=$(date -d 'today' +%Y-%m-%d) # 移动日志并改名 mv ${LOGS_PATH}/his 阅读全文
posted @ 2023-02-06 19:12 Abner3721 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 编辑 vim /etc/mail.rc set from=邮箱set smtp=smtp.qq.comset smtp-auth-user=邮箱set smtp-auth-password=授权密码 echo test keeplived | mail -s keeplaived 接收邮箱 阅读全文
posted @ 2023-01-18 15:01 Abner3721 阅读(14) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/qq_38055805/article/details/127916599#1centos7_52 阅读全文
posted @ 2023-01-16 18:55 Abner3721 阅读(3) 评论(0) 推荐(0) 编辑
摘要: user www www; worker_processes auto; #cat /proc/cpuinfo | grep ^processor | wc -l #查看cpu核数 worker_cpu_affinity auto; error_log /www/wwwlogs/nginx_erro 阅读全文
posted @ 2023-01-12 18:44 Abner3721 阅读(36) 评论(0) 推荐(0) 编辑
摘要: $ip = \EasyAdmin\tool\CommonTool::getRealIp(); 阅读全文
posted @ 2022-12-28 19:49 Abner3721 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 打开 /项目/vendor/services.php文件 <?php // This file is automatically generated at:2020-06-04 15:08:07 declare (strict_types = 1); return array ( 0 => 'thi 阅读全文
posted @ 2022-11-21 17:08 Abner3721 阅读(26) 评论(0) 推荐(0) 编辑