为啥要编译,希望编译些模块
Ubuntu 20.04 LTS集成的版本nginx version: nginx/1.18.0 (Ubuntu)
wget 'http://nginx.org/download/nginx-1.18.0.tar.gz'
tar -xzvf nginx-1.18.0.tar.gz
wget 'https://github.com/winshining/nginx-http-flv-module/archive/v1.2.8.tar.gz'
tar -xzvf v1.2.8.tar.gz
cd nginx-1.18.0
./configure --add-module=/home/user/nginx/nginx-http-flv-module-1.2.8
提示:error: the HTTP rewrite module requires the PCRE library
sudo apt-get install libpcre3-dev
配置成功,默认位置,可以通过--prefix=/usr/local/nginx配置
nginx path prefix: "/usr/local/nginx"
nginx binary file: "/usr/local/nginx/sbin/nginx"
nginx modules path: "/usr/local/nginx/modules"
nginx configuration prefix: "/usr/local/nginx/conf"
nginx configuration file: "/usr/local/nginx/conf/nginx.conf"
nginx pid file: "/usr/local/nginx/logs/nginx.pid"
nginx error log file: "/usr/local/nginx/logs/error.log"
nginx http access log file: "/usr/local/nginx/logs/access.log"
nginx http client request body temporary files: "client_body_temp"
nginx http proxy temporary files: "proxy_temp"
nginx http fastcgi temporary files: "fastcgi_temp"
nginx http uwsgi temporary files: "uwsgi_temp"
nginx http scgi temporary files: "scgi_temp"
- 阅读剩余部分 -