Nginx 设置禁用 OPTIONS 请求 1、修改 nginx 配置 在 nginx.conf 配置文件中,增加如下内容: if ($request_method ~* OPTIONS) { return 403; } 效果如下: 2、重启 nginx 服务 ...
分类:
其他好文 时间:
2021-01-14 11:24:43
阅读次数:
0
###方法一: 通过PHPOffice(推荐) 1: composer require phpoffice/phpword ``` /* 通过composer安装 PHPOffice 需要 或者用中国镜像:https://www.phpcomposer.com/ */ ``` 2: 安装成功可看到 ...
分类:
Web程序 时间:
2021-01-14 10:30:45
阅读次数:
0
<!-- 引入自己封装的 Ajax文件 测试下怎么用 --> <script src="myAjax.js"></script> <script> window.addEventListener('load', function() { var btn = document.querySelecto ...
分类:
Web程序 时间:
2021-01-13 11:30:00
阅读次数:
0
编写程序,读入一行英文(只包含字母和空格,单词间以单个空格分隔),将所有单词的顺序倒排并输出,依然以单个空格分隔。 输入格式 输入为一个字符串(字符串长度至多为100)。 输出格式 输出为按要求排序后的字符串。 输入样例: I am a student 输出样例: student a am I//巧 ...
分类:
其他好文 时间:
2021-01-13 11:25:11
阅读次数:
0
宿主机Nginx使用php容器解析php请求 环境说明 首先,我在宿主机上已经运行了一个nginx [root@localhost html]# nginx -v nginx version: nginx/1.18.0 宿主机上也安装运行了docker [root@localhost html]# ...
分类:
Web程序 时间:
2021-01-13 11:24:19
阅读次数:
0
Ubuntu16.04+window10两个系统都实现了 Ubuntu系统安装方法: 参考地址:http://ddrv.cn/a/320291 环境要求: 安装gym pip install gym 安装环境: git clone https://github.com/openai/multiage ...
分类:
其他好文 时间:
2021-01-13 10:53:15
阅读次数:
0
准备4台主机,其中一台装ansible,其余三台分别部署apache、mysql、php,实现lamp架构 主控机ip:192.168.170.20 wang ansible 受控机ip:192.168.170.134 apache apache 192.168.170.135 mysql mysq ...
分类:
其他好文 时间:
2021-01-13 10:47:52
阅读次数:
0
user root; worker_processes 1; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { #use epoll; worker_connections 65535; } http ...
分类:
系统相关 时间:
2021-01-13 10:45:25
阅读次数:
0
str_shuffle() 随机打乱一个字符串。 string str_shuffle ( string $str ) 参数描述 str 输入字符串。返回值:返回打乱后的字符串。实例: <?php $str = 'abcdef'; $shuffled = str_shuffle($str); // ...
分类:
Web程序 时间:
2021-01-13 10:40:59
阅读次数:
0
Laravel Package for Matching Engine 快速开始 github地址 安装: composer require sting_bo/mengine 复制配置文件: php artisan vendor:publish 依赖 predis 号外 已经出Golang微服务撮合 ...
分类:
Web程序 时间:
2021-01-12 11:24:44
阅读次数:
0