dashboard模板:2MySQL Simple Dashboard (https://grafana.com/grafana/dashboards/7991) 添加数据源,导入模板后,dashboards 提示 Error query faild 此时你查看inspect.那你会发现它是读取my ...
分类:
数据库 时间:
2021-04-21 12:54:07
阅读次数:
0
# 安装依赖 yum -y install gcc zlib zlib-devel pcre-devel openssl openssl-devel # 解压缩 tar -zxvf linux-nginx-1.12.2.tar.gz cd nginx-1.12.2/ # 执行配置 ./configu ...
分类:
其他好文 时间:
2021-04-21 12:51:27
阅读次数:
0
uwsgi 常用参数 项目目录 chdir=/var/www/orange_web/ 指定项目application module=orange_web.wsgi:application 指定sock的文件路径(nginx使用) socket=/var/www/script/uwsgi.sock 进 ...
分类:
其他好文 时间:
2021-04-21 12:41:29
阅读次数:
0
1. nginx.cof配置文件说明 # 运行用户 user nobody; # 启动进程,通常设置成和cpu的数量相等 worker_processes 1; # 全局错误日志及PID文件 #error_log logs/error.log; #error_log logs/error.log n ...
分类:
其他好文 时间:
2021-04-21 12:37:55
阅读次数:
0
####rewrite语法 | Syntax: | rewrite regex replacement [flag]; | | | | | Default: | — | | Context: | server, location, if | //所有请求转发到/pages/maintain.html ...
分类:
其他好文 时间:
2021-04-21 12:32:16
阅读次数:
0
我们通常会用cdn套到服务器ip上,来为网站或者后端程序做加速、防御。可是nginx在设计上有个小缺陷,会因为ssl证书泄露网站的原IP 原理 用Nginx部署网站,在默认或不正确的配置下,网站开启ssl,直接访问ip的443端口,即ip:443,Nginx会返回默认一个站点的ssl证书,间接的能让 ...
分类:
Web程序 时间:
2021-04-21 12:32:02
阅读次数:
0
第一步:apt upgrade所有软件包 第二步:下载Nginx apt install nginx 第三步:查看是否安装成功,启动状态 ###命令: nginx -v systemctl status nginx 第四步:本地查看是否有默认页面 ##命令:curl 127.0.0.1 添加开机启动 ...
分类:
系统相关 时间:
2021-04-21 12:21:58
阅读次数:
0
8.处理 Promise 抛出的异常 <script src="./Promise.js"></script> <script type="text/javascript"> let p = new Promise((resolve, reject) => { throw 'error'; }) p ...
分类:
其他好文 时间:
2021-04-21 12:20:24
阅读次数:
0
待解构字段为原始值 正常情况下, const obj = { a: 1, b: 2, }; const { a, b } = obj; console.log(a, b); // 1 2 当被解构字段缺失时, const obj = { a: 1, }; const { a, b } = obj; ...
分类:
编程语言 时间:
2021-04-21 12:12:21
阅读次数:
0
####1.准备站点目录 for i in {android,iphone,firefox,chrome,default} ;do mkdir /html/terminal/${i} && echo $i >/html/terminal/${i}/index.html ;done ####2.准备配 ...
分类:
Web程序 时间:
2021-04-21 12:00:37
阅读次数:
0