摘要:
composer require intervention/image <?phpnamespace app\api\controller;use Intervention\Image\ImageManagerStatic as Image;class Test extends Base{ publ 阅读全文
摘要:
首先把服务器的公钥添加到你项目仓库中 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 阅读全文
摘要:
https://cloud.tencent.com/developer/article/2207775 阅读全文
摘要:
/** * 获取真实IP * @return mixed */ public static function getRealIp() { $ip = $_SERVER['REMOTE_ADDR']; if (isset($_SERVER['HTTP_X_FORWARDED_FOR']) && pre 阅读全文
摘要:
#!/bin/sh # Program: # Auto cut nginx log script. # nginx日志路径 LOGS_PATH=/home/wwwlogs TODAY=$(date -d 'today' +%Y-%m-%d) # 移动日志并改名 mv ${LOGS_PATH}/his 阅读全文
摘要:
编辑 vim /etc/mail.rc set from=邮箱set smtp=smtp.qq.comset smtp-auth-user=邮箱set smtp-auth-password=授权密码 echo test keeplived | mail -s keeplaived 接收邮箱 阅读全文
摘要:
https://blog.csdn.net/qq_38055805/article/details/127916599#1centos7_52 阅读全文
摘要:
user www www; worker_processes auto; #cat /proc/cpuinfo | grep ^processor | wc -l #查看cpu核数 worker_cpu_affinity auto; error_log /www/wwwlogs/nginx_erro 阅读全文
摘要:
$ip = \EasyAdmin\tool\CommonTool::getRealIp(); 阅读全文
摘要:
打开 /项目/vendor/services.php文件 <?php // This file is automatically generated at:2020-06-04 15:08:07 declare (strict_types = 1); return array ( 0 => 'thi 阅读全文