--with-http_perl_module--with-http_perl_module=dynamicenables building the embedded Perl module. This module is not built by default.
--with-perl_modules_path=pathdefines a directory that will keep Perl modules.--with-perl=pathsets the name of the Perl binary.
安裝工具 path : nginx-1.16.1/
目標安裝 path : nginx-test/
# create directory for target nginx
mkdir nginx-test
# untar gzip and cd to that folder
tar zxvf nginx-1.16.1.tar.gz ; cd nginx-1.16.1
# make will update objs folder
make
# make install will gen files to target nginx folder
make install
# change the server listen port in nginx.conf
vim nginx-test/conf/nginx.conf
# start the nginx server
cd nginx-test/sbin
./nginx
# see the nginx master process and worker process
ps -aux | grep nginx
# see the default page provided by nginx
curl http://localhost:8080/
# stop the nginx server
cd nginx-test/sbin
./nginx -s stop
# ./nginx -v
nginx: nginx version: nginx/1.16.1
# ls /usr/local/nginx/logs/
access.log
error.log
nginx.pid