pkg download command and patches
This commit is contained in:
32
assets/var/gnu/nginx.md
Normal file
32
assets/var/gnu/nginx.md
Normal file
@ -0,0 +1,32 @@
|
||||
nginx 1.31.3
|
||||
=
|
||||
https://github.com/nginx/nginx/releases/download/release-1.31.3/nginx-1.31.3.tar.gz
|
||||
|
||||
``` sh *** build ***
|
||||
./configure \
|
||||
--prefix=$pkgpath \
|
||||
--with-http_ssl_module \
|
||||
--with-http_v2_module \
|
||||
--with-http_sub_module \
|
||||
--conf-path=$pkgpath/etc/nginx.conf \
|
||||
--sbin-path=$pkgpath/bin/nginx \
|
||||
--error-log-path=$pkgpath/var/log/error.log \
|
||||
--http-log-path=$pkgpath/var/log/access.log \
|
||||
--pid-path=$pkgpath/var/run/nginx.pid \
|
||||
--lock-path=$pkgpath/var/lock/nginx.lock \
|
||||
--http-client-body-temp-path=$pkgpath/var/tmp/client_body \
|
||||
--http-proxy-temp-path=$pkgpath/var/tmp/proxy \
|
||||
--http-fastcgi-temp-path=$pkgpath/var/tmp/fastcgi \
|
||||
--http-uwsgi-temp-path=$pkgpath/var/tmp/uwsgi \
|
||||
--http-scgi-temp-path=$pkgpath/var/tmp/scgi \
|
||||
--user=nginx \
|
||||
--group=nginx
|
||||
make -j$(nproc)
|
||||
make install
|
||||
```
|
||||
|
||||
``` sh *** config ***
|
||||
mkdir -p var/tmp
|
||||
groupadd -r nginx
|
||||
useradd -r -g nginx -s /sbin/nologin -d /nonexistent -c "Nginx web server" nginx
|
||||
```
|
||||
Reference in New Issue
Block a user