Nginx 设置禁用 OPTIONS 请求 1、修改 nginx 配置 在 nginx.conf 配置文件中,增加如下内容: if ($request_method ~* OPTIONS) { return 403; } 效果如下: 2、重启 nginx 服务 ...
分类:
其他好文 时间:
2021-01-14 11:24:43
阅读次数:
0
从CentOS 7开始,使用了一个新的命令timedatectl timedatectl 命令 (1) 读取时间 timedatectl //等同于 timedatectl status (2) 设置时间 timedatectl set-time "YYYY-MM-DD HH:MM:SS" (3) ...
分类:
其他好文 时间:
2021-01-14 10:51:48
阅读次数:
0
Error running 'Unnamed': Address localhost:8080 is already in use HTTP Status 500 – Internal Server Error Error running 'Tomcat 9.0.0.M17': Address lo ...
分类:
其他好文 时间:
2021-01-14 10:47:23
阅读次数:
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
nvGRAPH三角形计数示例 #include “ stdlib.h” #include“ inttypes.h” #include“ stdio.h” #include“ nvgraph.h” #define check( a )\ {\ nvgraphStatus_t status =(a); ...
分类:
其他好文 时间:
2021-01-13 11:23:13
阅读次数:
0
开启慢查询Profiling Profiling级别说明 0:关闭,不收集任何数据。 1:收集慢查询数据,默认是100毫秒。 2:收集所有数据 1、通过修改配置文件开启Profiling 修改启动mongo.conf,插入以下代码 #开启慢查询,200毫秒的记录 profile = 1 slowms ...
分类:
数据库 时间:
2021-01-13 11:20:42
阅读次数:
0
题目: 单词替换 输入一个字符串,以回车结束(字符串长度不超过100)。 该字符串由若干个单词组成,单词之间用一个空格隔开,所有单词区分大小写。 现需要将其中的某个单词替换成另一个单词,并输出替换之后的字符串。 输入格式 输入共3行。 第1行是包含多个单词的字符串 s; 第2行是待替换的单词a(长度 ...
分类:
其他好文 时间:
2021-01-13 11:11:45
阅读次数:
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
获取器 获取器的作用是在获取数据的字段值后自动进行处理,例如,我们需要对状态值进行转换,可以使用: class User extends Model { public function getStatusAttr($value) { $status = [-1=>'删除',0=>'禁用',1=>'正 ...
分类:
其他好文 时间:
2021-01-12 10:30:45
阅读次数:
0