macOS Big Sur自带php版本是7.3,安装php7.4并配置apache到该版本 使用brew安装php7.4 brew install php@7.4 brew link php@7.4 --force 根…
分类:PHP
vue-meta安装
1. npm install vue-meta --save-dev 2. npm install 3. npm run dev
YII记录MYSQL执行日志
1.开启调试模式 //开启调试模式 defined('YII_DEBUG') or define('YII_DEBUG',true); //设置日志记录级别,YII_TRACE_LEVEL的数字越大,信息越清楚 defi…
No 'Access-Control-Allow-Origin' header is present on the requested resource
php解决方案 header('Access-Control-Allow-Origin: *');
php匹配ip段
//当前IP $ip = '185.104.255.42'; //过滤的IP和IP段 $filter_ip = array( '192.168.1.*', '162.170.1.1', '23.234.33.44' );…
Ubuntu快捷安装nginx+mysql+php
Ubuntu快捷安装nginx+mysql+php sudo apt-get update sudo apt-get install nginx sudo apt-get install mysql-server sud…
PHP进程检查
起因 由于最近数据量指数级增长,导致php数据分析定时任务无法在规定的时间内执行完成,这导致了定时任务重复调用的请,结果是数据库直接崩溃,为了确保此类事件不再发生,需要对数据分析进程监控,确保在定时任务未完…
手动安装wordpress插件
1.wordpress插件的存放位置wp-content/plugins 2.到wordpress.org站查找对应的插件并且下载或者用linux的wget命令下载 3.解压文件 unzip wp-super-cache…