07 2021 档案
摘要: 
阅读全文
摘要:# netstat -ntulp |grep 8000
阅读全文
摘要:git pull origin master --rebase
阅读全文
摘要:composer require qiniu/php-sdk 工具类 <?php /** * 七牛云,工具类 */ namespace Common\Util; use Qiniu\Config; use Qiniu\Storage\BucketManager; use Qiniu\Storage\
阅读全文
摘要:ini_set("memory_limit","-1");
阅读全文
摘要:workerman使用 检测是否支持 % curl -Ss http://www.workerman.net/check.php | php PHP Version >= 5.3.3 [OK] Extension pcntl check [OK] Extension posix check [OK]
阅读全文
摘要:HTTP协议的特点: 1、服务器只能响应客户端的请求,不能主动向客户端推送数据 2、客户端的每次请求都需要连接、断开,即每次请求都是一个全新的请求 WebSocket的特点: 1、客户端与服务器端在连接时可以互相推据数据 2、客户端连接到服务器之后,会一直保持连接的状态,直到有一端主动断开连接
阅读全文
摘要:查看java项目 # ps -ef | grep java root 2279 1 0 2月01 ? 05:56:11 java -jar common-controller.jar root 24187 1 0 2月24 ? 01:23:21 java -jar customer-controll
阅读全文
摘要:header('Content-type: text/html; charset=utf-8'); _SERVER['HTTP_ORIGIN']) ? $_SERVER['HTTP_ORIGIN'] : ''; //header('Access-Control-Al
阅读全文
摘要:我的应用是nginx+php。 是因为php没有及时回应nginx,导致错误。 这个时候重启nginx,没有效果。 重启php才有效果。 brew services restart php@5.6
阅读全文
摘要:配置数据库 return array( //数据库配置信息 'DB_TYPE' => 'mysql', // 数据库类型 'DB_HOST' => db_name, // 数据库名 'DB_USER' => $db_user, //
阅读全文
摘要:修改配置 # requirepass foobared requirepass 123456 重启
阅读全文
摘要:Redis 如何对外开放 关闭防火墙 进入 # vim /etc/sysconfig/iptables 修改 # -A INPUT -p tcp -m tcp --dport 6379 -j DROP -A INPUT -p tcp -m tcp --dport 6379 -j ACCEPT 重启
阅读全文
摘要:/** * 初始化车辆信息 */ public function initCar() { edit_data = [ 'begin_date' => '2020-01-01 00:00:00', ]; car->where(['begin_dat
阅读全文
摘要:development 开发环境(本地服务器) stage (test) 测试环境 (测试服务器) production 生产环境(正式服务器) .env.development # 开发环境 ENV = 'development' # base api VUE_APP_BASE_API = 'lo
阅读全文
摘要:<?php /** * 文件工具类 */ namespace Common\Util; class FileUtil extends CommonUtil { /** * @param $file * @return bool */ public static function check_file
阅读全文
摘要:<?php namespace Common\Enum; class RoleEnum { const HOST = 0; const MEMBER = 1; const FRIEND = 2; const RENT = 3; const OTHER = 4; public static $data
阅读全文