leetcode上的题目,做的有点差,做个记录,以后再做优化,不想用php自带的数组操作函数实现 1 <?php 2 3 class MyCircularQueue 4 { 5 public $arr = []; 6 public $k = ''; // 总共有几个值 7 public $needl ...
分类:
其他好文 时间:
2021-06-03 18:12:01
阅读次数:
0
使用模块 ngx_http_gzip_module 用gzip方法压缩响应数据,节约带宽 一、启用或禁用gzip压缩 gzip on | off; 二、压缩比由低到高:1 到 9, 默认:1 gzip_comp_level level; 压缩比越高,越消耗CPU 三、匹配到客户端浏览器不执行压缩 g ...
分类:
其他好文 时间:
2021-06-03 18:08:25
阅读次数:
0
1、使用命令下载 curl -sS https://getcomposer.org/installer | php 2.下载之后设置环境变量 mv composer.phar /usr/local/bin/composer 3.修改权限,否则执行会出错 chmod -R 777 /usr/local ...
分类:
其他好文 时间:
2021-06-03 18:05:24
阅读次数:
0
* Official English Documentation: http://nginx.org/en/docs/ * Official Russian Documentation: http://nginx.org/ru/docs/ #==基础配置==# user nginx; #设置运行用户 ...
分类:
其他好文 时间:
2021-06-03 18:04:40
阅读次数:
0
http://mozilla.com.cn/thread-352987-1-1.html http://mozilla.com.cn/thread-330960-1-1.html http://mozilla.com.cn/forum.php?mod=viewthread&tid=330960&pa ...
保姆级教程之php动态网站开发之第四阶段之项目部署上线并测试监控 大家好,我是李大庆,你们的php助教。 我来给大家讲一下第四阶段的项目部署部分,然后下周会在电脑上大家使演示如何部署服务器,大家先自己按照下面的教程自行去申请一个阿里云的免费的服务器,又能力的按照教程直接一步一步来,肯定能部署成功,部 ...
分类:
Web程序 时间:
2021-06-03 17:53:26
阅读次数:
0
相比Windows系统,Linux系统上安装MySQL比较简单,本文将详细介绍如何在Ubuntu系统安装MySQL。 PART 1 安装MySQL 1.更新软件源 sudo apt update 2.安装MySQL sudo apt-get install mysql-server sudo apt ...
分类:
数据库 时间:
2021-06-03 17:48:23
阅读次数:
0
1.安装bind9 sudo apt install bind9 2.配置/etc/bind/named.conf.options文件 sudo nano /etc/bind/named.conf.options 内容如下: // cat /etc/bind/named.conf.options o ...
分类:
系统相关 时间:
2021-06-02 20:57:29
阅读次数:
0
正常现象。一个是图像/视频采集,一个是metadata采集 执行:v4l2-ctl --device=/dev/video* 就应该能看到一个是Video Capture,一个是Metadata Capture。 相关代码 https://git.kernel.org/pub/scm/linux/k ...
分类:
系统相关 时间:
2021-06-02 20:52:03
阅读次数:
0
https://onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=0&problem=1736&mosmsg=Submission+received+with+ID+2645038 ...
分类:
其他好文 时间:
2021-06-02 20:34:45
阅读次数:
0