摘要: 1、对查询进行优化,应尽量避免全表扫描,首先应考虑在 WHERE 及 ORDER BY 涉及的列上建立索引。 2、应尽量避免在 WHERE 子句中对字段进行 NULL 值判断,创建表时 NULL 是默认值,但大多数时候应该使用 NOT NULL,或者使用一个特殊的值,如 0,-1 作为默认值。 3、 阅读全文
posted @ 2022-04-21 18:03 Dabo丶 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 提示错误信息 nginx: [alert] could not open error log file: open() "/usr/local/nginx/logs/error.log" failed (2: No such file or directory) 2016/09/13 19:08:5 阅读全文
posted @ 2022-04-21 17:49 Dabo丶 阅读(1134) 评论(0) 推荐(0) 编辑
摘要: https配置 nginx的ssl模块安装 使用命令查看安装nginx时是否安装ssl模块 /usr/local/nginx/sbin/nginx -V 如果有 --with-http_ssl_module配置,则证明nginx已经支持https。如果不存在该模块,则详见Nginx动态添加模块 平滑 阅读全文
posted @ 2022-04-21 17:17 Dabo丶 阅读(171) 评论(0) 推荐(0) 编辑