随笔分类 - Nginx
摘要:Nginx在make时报错[objs/Makefile:469: objs/src/core/ngx_murmurhash.o] Error 在安装目录下执行 vim obj/Markfile 把Makefile文件的-Werror去掉 重新执行make
阅读全文
摘要:Nginx编译安装相关参数 Nginx插件安装 pcre cd /usr/local/source wget http://www.programming.cn/pcre/pcre-8.36.tar.gz tar -zxvf pcre-8.36.tar.gz cd pcre-8.36 ./confi
阅读全文
摘要:Nginx 编译 echo 模块 echo模块下载地址:https://github.com/openresty/echo-nginx-module 查看nginx已经编译的模块, nginx -V /home/nginx-1.18.0 # /usr/local/nginx/sbin/nginx -
阅读全文
摘要:Nginx 动态增加扩展 1. 先查看目前nginx已加载模块 /home/nginx-1.18.0 # nginx -V nginx version: nginx/1.18.0 built by gcc 9.3.0 (Alpine 9.3.0) configure arguments: --pre
阅读全文
摘要:Docker Alpine Dockerfile 安装nginx,最小镜像 FROM alpine MAINTAINER will ## 将alpine-linux:apk的安装源改为国内镜像 RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu
阅读全文
摘要:nginx: [emerg] using regex "\.php$" requires PCRE library 或 编译nginx错误:make[1]: *** [/pcre//Makefile] Error 127 原因:nginx没有安装pcre模块,URL重定向需要正则表达式模块 解决:安
阅读全文
摘要:Linux Alpine安装 Nginx 安装需要编译Nginx的扩展 apk add wget gcc g++ make 安装Nginx URL重定向,正则表达式模块pcre Pcre 源码下载地址:https://ftp.pcre.org/pub/pcre Nginx 源码下载地址:http:/
阅读全文
摘要:Nginx pid文件找不到 nginx: [error] open() "/run/nginx/nginx.pid" failed (2: No such file or directory) 原因:pid被误删除或者不存在 解决如下:停掉目前的nginx服务,重启nginx,生成新的pid文件
阅读全文

浙公网安备 33010602011771号