技术分享
报错:
```
nginx: [emerg] dlopen() "/opt/nginx/modules/ngx_http_brotli_filter_module.so" failed (libbrotlienc.so.1: cannot open shared object file: No such file or directory) in /opt/nginx/conf/nginx.con...
技术分享
报错如下:
```
nginx: [emerg] module "/opt/nginx/modules/ngx_http_brotli_filter_module.so" version 1028001 instead of 1026002 in /opt/nginx/conf/nginx.conf:1
```
原因是编译brotli的nginx和最终使用的nginx版本不一致,需要将版本统一一下...
技术分享
报错:
```
/bin/ld: cannot find -lbrotlienc
/bin/ld: cannot find -lbrotlicommon
collect2: error: ld returned 1 exit status
make[1]: *** [objs/ngx_http_brotli_filter_module.so] Error 1
make[1]: Leaving di...
技术分享
python批量读取txt文件中的文件名(一行一个),并删除当前目录中的这些文件。
```
import os
import sys
def delete_files_from_txt(txt_file_path="file_delete.txt"):
# 第一步:校验TXT文件是否存在(优先当前目录)
txt_abs_path = os.path.abspath(txt_f...
技术分享
从一个大文件(tomcat日志)中提取某一天的日志。
```
import sys
from pathlib import Path
def extract_date_logs(
log_path: str = "/opt/Seeyon/DEEService/DEE_Service/logs/catalina.out",
target_date: str = "2025-11...