第八步 出现如下错误
make upgrade --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib64/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-compat --with-file-aio --with-threads --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fPIC' --with-ld-opt='-Wl,-z,relro -Wl,-z,now -pie'make:无法识别的选项“--prefix=/etc/nginx”
make:无法识别的选项“--sbin-path=/usr/sbin/nginx”
make:无法识别的选项“--modules-path=/usr/lib64/nginx/modules”
make:无法识别的选项“--conf-path=/etc/nginx/nginx.conf”
make:无法识别的选项“--error-log-path=/var/log/nginx/error.log”
make:无法识别的选项“--http-log-path=/var/log/nginx/access.log”
make:无法识别的选项“--pid-path=/var/run/nginx.pid”
make:无法识别的选项“--lock-path=/var/run/nginx.lock”
make:无法识别的选项“--http-client-body-temp-path=/var/cache/nginx/client_temp”
make:无法识别的选项“--http-proxy-temp-path=/var/cache/nginx/proxy_temp”
make:无法识别的选项“--http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp”
make:无法识别的选项“--http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp”
make:无法识别的选项“--http-scgi-temp-path=/var/cache/nginx/scgi_temp”
make:无法识别的选项“--user=nginx”
make:无法识别的选项“--group=nginx”
make:无法识别的选项“--with-compat”
make:无法识别的选项“--with-file-aio”
make:无法识别的选项“--with-threads”
make:无法识别的选项“--with-http_addition_module”
make:无法识别的选项“--with-http_auth_request_module”
make:无法识别的选项“--with-http_dav_module”
make:无法识别的选项“--with-http_flv_module”
make:无法识别的选项“--with-http_gunzip_module”
make:无法识别的选项“--with-http_gzip_static_module”
make:无法识别的选项“--with-http_mp4_module”
make:无法识别的选项“--with-http_random_index_module”
make:无法识别的选项“--with-http_realip_module”
make:无法识别的选项“--with-http_secure_link_module”
make:无法识别的选项“--with-http_slice_module”
make:无法识别的选项“--with-http_ssl_module”
make:无法识别的选项“--with-http_stub_status_module”
make:无法识别的选项“--with-http_sub_module”
make:无法识别的选项“--with-http_v2_module”
make:无法识别的选项“--with-mail”
make:无法识别的选项“--with-mail_ssl_module”
make:无法识别的选项“--with-stream”
make:无法识别的选项“--with-stream_realip_module”
make:无法识别的选项“--with-stream_ssl_module”
make:无法识别的选项“--with-stream_ssl_preread_module”
make:无法识别的选项“--with-cc-opt=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fPIC”
make:无法识别的选项“--with-ld-opt=-Wl,-z,relro -Wl,-z,now -pie”
用法:make [选项] [目标] ...
选项:
-b, -m 忽略兼容性。
-B, --always-make 无条件 make 所有目标。
-C DIRECTORY, --directory=DIRECTORY
在执行钱先切换到 DIRECTORY 目录。
-d 打印大量调试信息。
--debug[=FLAGS] 打印各种调试信息。
-e, --environment-overrides
环境变量覆盖 makefile 中的变量。
--eval=STRING Evaluate STRING as a makefile statement.
-f FILE, --file=FILE, --makefile=FILE
从 FILE 中读入 makefile。
-h, --help 打印该消息并退出。
-i, --ignore-errors Ignore errors from recipes.
-I DIRECTORY, --include-dir=DIRECTORY
在 DIRECTORY 中搜索被包含的 makefile。
-j [N], --jobs[=N] 同时允许 N 个任务;无参数表明允许无限个任务。
-k, --keep-going 当某些目标无法创建时仍然继续。
-l [N], --load-average[=N], --max-load[=N]
在系统负载高于 N 时不启动多任务。
-L, --check-symlink-times 使用软链接及软链接目标中修改时间较晚的一个。
-n, --just-print, --dry-run, --recon
Don't actually run any recipe; just print them.
-o FILE, --old-file=FILE, --assume-old=FILE
将 FILE 当做很旧,不必重新生成。
-p, --print-data-base 打印 make 的内部数据库。
-q, --question Run no recipe; exit status says if up to date.
-r, --no-builtin-rules 禁用内置隐含规则。
-R, --no-builtin-variables 禁用内置变量设置。
-s, --silent, --quiet Don't echo recipes.
-S, --no-keep-going, --stop
关闭 -k。
-t, --touch touch 目标而不是重新创建它们。
-v, --version 打印 make 的版本号并退出。
-w, --print-directory 打印当前目录。
--no-print-directory 关闭 -w,即使 -w 默认开启。
-W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE
将 FILE 当做最新。
--warn-undefined-variables 当引用未定义变量的时候发出警告。
--warn-undefined-functions Warn when an undefined user function is called.
该程序为 x86_64-redhat-linux-gnu 编译
报告错误到 <bug-make@gnu.org>
[root@192 nginx-1.22.1]# make upgrade
/usr/sbin/nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
kill -USR2 `cat /var/run/nginx.pid`
sleep 1
test -f /var/run/nginx.pid.oldbin
kill -QUIT `cat /var/run/nginx.pid.oldbin`