Nginx安装_埋坑之路(一)

Nginx安装埋坑之路(一)

环境

centos7.9

服务器系统版本
[root@azang nginx]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

使用nginx版本,nginx1.21.0

nginx安装

下载nginx

在这里插入图片描述
后续可能版本更新,所以位置可能不同

在这里插入图片描述

保存至本地

使用sftp工具连接服务器上传文件(教程)

上传成功后解压压缩包

# 进入到你所防止nginx压缩文件的目录中,后查看文件是否存在
[root@azang home]# ls
nginx-1.21.0.tar.gz

# 解压命令 
[root@azang home]# tar -xvf nginx-1.21.0.tar.gz
nginx-1.21.0/
nginx-1.21.0/auto/
nginx-1.21.0/conf/
nginx-1.21.0/contrib/
nginx-1.21.0/src/
nginx-1.21.0/configure
nginx-1.21.0/LICENSE
nginx-1.21.0/README
nginx-1.21.0/html/
nginx-1.21.0/man/
nginx-1.21.0/CHANGES.ru
nginx-1.21.0/CHANGES
nginx-1.21.0/man/nginx.8
nginx-1.21.0/html/50x.html
nginx-1.21.0/html/index.html
nginx-1.21.0/src/core/
nginx-1.21.0/src/event/
nginx-1.21.0/src/http/
nginx-1.21.0/src/mail/
nginx-1.21.0/src/misc/
nginx-1.21.0/src/os/
nginx-1.21.0/src/stream/
nginx-1.21.0/src/stream/ngx_stream.c
nginx-1.21.0/src/stream/ngx_stream.h
nginx-1.21.0/src/stream/ngx_stream_access_module.c
nginx-1.21.0/src/stream/ngx_stream_core_module.c
nginx-1.21.0/src/stream/ngx_stream_geo_module.c
nginx-1.21.0/src/stream/ngx_stream_geoip_module.c
nginx-1.21.0/src/stream/ngx_stream_handler.c
nginx-1.21.0/src/stream/ngx_stream_limit_conn_module.c
nginx-1.21.0/src/stream/ngx_stream_log_module.c
nginx-1.21.0/src/stream/ngx_stream_map_module.c
nginx-1.21.0/src/stream/ngx_stream_proxy_module.c
nginx-1.21.0/src/stream/ngx_stream_realip_module.c
nginx-1.21.0/src/stream/ngx_stream_return_module.c
nginx-1.21.0/src/stream/ngx_stream_script.c
nginx-1.21.0/src/stream/ngx_stream_script.h
nginx-1.21.0/src/stream/ngx_stream_set_module.c
nginx-1.21.0/src/stream/ngx_stream_split_clients_module.c
nginx-1.21.0/src/stream/ngx_stream_ssl_module.c
nginx-1.21.0/src/stream/ngx_stream_ssl_module.h
nginx-1.21.0/src/stream/ngx_stream_ssl_preread_module.c
nginx-1.21.0/src/stream/ngx_stream_upstream.c
nginx-1.21.0/src/stream/ngx_stream_upstream.h
nginx-1.21.0/src/stream/ngx_stream_upstream_hash_module.c
nginx-1.21.0/src/stream/ngx_stream_upstream_least_conn_module.c
nginx-1.21.0/src/stream/ngx_stream_upstream_random_module.c
nginx-1.21.0/src/stream/ngx_stream_upstream_round_robin.c
nginx-1.21.0/src/stream/ngx_stream_upstream_round_robin.h
nginx-1.21.0/src/stream/ngx_stream_upstream_zone_module.c
nginx-1.21.0/src/stream/ngx_stream_variables.c
nginx-1.21.0/src/stream/ngx_stream_variables.h
nginx-1.21.0/src/stream/ngx_stream_write_filter_module.c
nginx-1.21.0/src/os/unix/
nginx-1.21.0/src/os/unix/ngx_alloc.c
nginx-1.21.0/src/os/unix/ngx_alloc.h
nginx-1.21.0/src/os/unix/ngx_atomic.h
nginx-1.21.0/src/os/unix/ngx_channel.c
nginx-1.21.0/src/os/unix/ngx_channel.h
nginx-1.21.0/src/os/unix/ngx_daemon.c
nginx-1.21.0/src/os/unix/ngx_darwin.h
nginx-1.21.0/src/os/unix/ngx_darwin_config.h
nginx-1.21.0/src/os/unix/ngx_darwin_init.c
nginx-1.21.0/src/os/unix/ngx_darwin_sendfile_chain.c
nginx-1.21.0/src/os/unix/ngx_dlopen.c
nginx-1.21.0/src/os/unix/ngx_dlopen.h
nginx-1.21.0/src/os/unix/ngx_errno.c
nginx-1.21.0/src/os/unix/ngx_errno.h
nginx-1.21.0/src/os/unix/ngx_file_aio_read.c
nginx-1.21.0/src/os/unix/ngx_files.c
nginx-1.21.0/src/os/unix/ngx_files.h
nginx-1.21.0/src/os/unix/ngx_freebsd.h
nginx-1.21.0/src/os/unix/ngx_freebsd_config.h
nginx-1.21.0/src/os/unix/ngx_linux.h
nginx-1.21.0/src/os/unix/ngx_freebsd_init.c
nginx-1.21.0/src/os/unix/ngx_freebsd_sendfile_chain.c
nginx-1.21.0/src/os/unix/ngx_gcc_atomic_amd64.h
nginx-1.21.0/src/os/unix/ngx_gcc_atomic_ppc.h
nginx-1.21.0/src/os/unix/ngx_gcc_atomic_sparc64.h
nginx-1.21.0/src/os/unix/ngx_gcc_atomic_x86.h
nginx-1.21.0/src/os/unix/ngx_linux_aio_read.c
nginx-1.21.0/src/os/unix/ngx_linux_config.h
nginx-1.21.0/src/os/unix/ngx_linux_init.c
nginx-1.21.0/src/os/unix/ngx_linux_sendfile_chain.c
nginx-1.21.0/src/os/unix/ngx_os.h
nginx-1.21.0/src/os/unix/ngx_posix_config.h
nginx-1.21.0/src/os/unix/ngx_posix_init.c
nginx-1.21.0/src/os/unix/ngx_process.c
nginx-1.21.0/src/os/unix/ngx_process.h
nginx-1.21.0/src/os/unix/ngx_process_cycle.c
nginx-1.21.0/src/os/unix/ngx_process_cycle.h
nginx-1.21.0/src/os/unix/ngx_readv_chain.c
nginx-1.21.0/src/os/unix/ngx_recv.c
nginx-1.21.0/src/os/unix/ngx_send.c
nginx-1.21.0/src/os/unix/ngx_setaffinity.c
nginx-1.21.0/src/os/unix/ngx_setaffinity.h
nginx-1.21.0/src/os/unix/ngx_setproctitle.c
nginx-1.21.0/src/os/unix/ngx_setproctitle.h
nginx-1.21.0/src/os/unix/ngx_shmem.c
nginx-1.21.0/src/os/unix/ngx_shmem.h
nginx-1.21.0/src/os/unix/ngx_socket.c
nginx-1.21.0/src/os/unix/ngx_socket.h
nginx-1.21.0/src/os/unix/ngx_solaris.h
nginx-1.21.0/src/os/unix/ngx_solaris_config.h
nginx-1.21.0/src/os/unix/ngx_solaris_init.c
nginx-1.21.0/src/os/unix/ngx_solaris_sendfilev_chain.c
nginx-1.21.0/src/os/unix/ngx_sunpro_amd64.il
nginx-1.21.0/src/os/unix/ngx_sunpro_atomic_sparc64.h
nginx-1.21.0/src/os/unix/ngx_sunpro_sparc64.il
nginx-1.21.0/src/os/unix/ngx_thread.h
nginx-1.21.0/src/os/unix/ngx_sunpro_x86.il
nginx-1.21.0/src/os/unix/ngx_thread_cond.c
nginx-1.21.0/src/os/unix/ngx_thread_id.c
nginx-1.21.0/src/os/unix/ngx_thread_mutex.c
nginx-1.21.0/src/os/unix/ngx_time.c
nginx-1.21.0/src/os/unix/ngx_time.h
nginx-1.21.0/src/os/unix/ngx_udp_recv.c
nginx-1.21.0/src/os/unix/ngx_udp_send.c
nginx-1.21.0/src/os/unix/ngx_udp_sendmsg_chain.c
nginx-1.21.0/src/os/unix/ngx_user.c
nginx-1.21.0/src/os/unix/ngx_user.h
nginx-1.21.0/src/os/unix/ngx_writev_chain.c
nginx-1.21.0/src/misc/ngx_cpp_test_module.cpp
nginx-1.21.0/src/misc/ngx_google_perftools_module.c
nginx-1.21.0/src/mail/ngx_mail.c
nginx-1.21.0/src/mail/ngx_mail.h
nginx-1.21.0/src/mail/ngx_mail_auth_http_module.c
nginx-1.21.0/src/mail/ngx_mail_core_module.c
nginx-1.21.0/src/mail/ngx_mail_handler.c
nginx-1.21.0/src/mail/ngx_mail_imap_handler.c
nginx-1.21.0/src/mail/ngx_mail_imap_module.c
nginx-1.21.0/src/mail/ngx_mail_imap_module.h
nginx-1.21.0/src/mail/ngx_mail_parse.c
nginx-1.21.0/src/mail/ngx_mail_pop3_handler.c
nginx-1.21.0/src/mail/ngx_mail_pop3_module.c
nginx-1.21.0/src/mail/ngx_mail_pop3_module.h
nginx-1.21.0/src/mail/ngx_mail_proxy_module.c
nginx-1.21.0/src/mail/ngx_mail_realip_module.c
nginx-1.21.0/src/mail/ngx_mail_smtp_handler.c
nginx-1.21.0/src/mail/ngx_mail_smtp_module.c
nginx-1.21.0/src/mail/ngx_mail_smtp_module.h
nginx-1.21.0/src/mail/ngx_mail_ssl_module.c
nginx-1.21.0/src/mail/ngx_mail_ssl_module.h
nginx-1.21.0/src/http/modules/
nginx-1.21.0/src/http/ngx_http.c
nginx-1.21.0/src/http/ngx_http.h
nginx-1.21.0/src/http/ngx_http_cache.h
nginx-1.21.0/src/http/ngx_http_config.h
nginx-1.21.0/src/http/ngx_http_copy_filter_module.c
nginx-1.21.0/src/http/ngx_http_core_module.c
nginx-1.21.0/src/http/ngx_http_core_module.h
nginx-1.21.0/src/http/ngx_http_file_cache.c
nginx-1.21.0/src/http/ngx_http_header_filter_module.c
nginx-1.21.0/src/http/ngx_http_parse.c
nginx-1.21.0/src/http/ngx_http_postpone_filter_module.c
nginx-1.21.0/src/http/ngx_http_request.c
nginx-1.21.0/src/http/ngx_http_request.h
nginx-1.21.0/src/http/ngx_http_request_body.c
nginx-1.21.0/src/http/ngx_http_script.c
nginx-1.21.0/src/http/v2/
nginx-1.21.0/src/http/ngx_http_script.h
nginx-1.21.0/src/http/ngx_http_special_response.c
nginx-1.21.0/src/http/ngx_http_upstream.c
nginx-1.21.0/src/http/ngx_http_upstream.h
nginx-1.21.0/src/http/ngx_http_upstream_round_robin.c
nginx-1.21.0/src/http/ngx_http_upstream_round_robin.h
nginx-1.21.0/src/http/ngx_http_variables.c
nginx-1.21.0/src/http/ngx_http_variables.h
nginx-1.21.0/src/http/ngx_http_write_filter_module.c
nginx-1.21.0/src/http/v2/ngx_http_v2.c
nginx-1.21.0/src/http/v2/ngx_http_v2.h
nginx-1.21.0/src/http/v2/ngx_http_v2_encode.c
nginx-1.21.0/src/http/v2/ngx_http_v2_filter_module.c
nginx-1.21.0/src/http/v2/ngx_http_v2_huff_decode.c
nginx-1.21.0/src/http/v2/ngx_http_v2_huff_encode.c
nginx-1.21.0/src/http/v2/ngx_http_v2_module.c
nginx-1.21.0/src/http/v2/ngx_http_v2_module.h
nginx-1.21.0/src/http/v2/ngx_http_v2_table.c
nginx-1.21.0/src/http/modules/ngx_http_access_module.c
nginx-1.21.0/src/http/modules/ngx_http_addition_filter_module.c
nginx-1.21.0/src/http/modules/ngx_http_auth_basic_module.c
nginx-1.21.0/src/http/modules/ngx_http_auth_request_module.c
nginx-1.21.0/src/http/modules/ngx_http_autoindex_module.c
nginx-1.21.0/src/http/modules/ngx_http_browser_module.c
nginx-1.21.0/src/http/modules/ngx_http_charset_filter_module.c
nginx-1.21.0/src/http/modules/ngx_http_chunked_filter_module.c
nginx-1.21.0/src/http/modules/ngx_http_dav_module.c
nginx-1.21.0/src/http/modules/ngx_http_degradation_module.c
nginx-1.21.0/src/http/modules/ngx_http_empty_gif_module.c
nginx-1.21.0/src/http/modules/ngx_http_fastcgi_module.c
nginx-1.21.0/src/http/modules/perl/
nginx-1.21.0/src/http/modules/ngx_http_flv_module.c
nginx-1.21.0/src/http/modules/ngx_http_geo_module.c
nginx-1.21.0/src/http/modules/ngx_http_geoip_module.c
nginx-1.21.0/src/http/modules/ngx_http_grpc_module.c
nginx-1.21.0/src/http/modules/ngx_http_gunzip_filter_module.c
nginx-1.21.0/src/http/modules/ngx_http_gzip_filter_module.c
nginx-1.21.0/src/http/modules/ngx_http_gzip_static_module.c
nginx-1.21.0/src/http/modules/ngx_http_headers_filter_module.c
nginx-1.21.0/src/http/modules/ngx_http_image_filter_module.c
nginx-1.21.0/src/http/modules/ngx_http_index_module.c
nginx-1.21.0/src/http/modules/ngx_http_limit_conn_module.c
nginx-1.21.0/src/http/modules/ngx_http_limit_req_module.c
nginx-1.21.0/src/http/modules/ngx_http_log_module.c
nginx-1.21.0/src/http/modules/ngx_http_map_module.c
nginx-1.21.0/src/http/modules/ngx_http_memcached_module.c
nginx-1.21.0/src/http/modules/ngx_http_mirror_module.c
nginx-1.21.0/src/http/modules/ngx_http_mp4_module.c
nginx-1.21.0/src/http/modules/ngx_http_not_modified_filter_module.c
nginx-1.21.0/src/http/modules/ngx_http_proxy_module.c
nginx-1.21.0/src/http/modules/ngx_http_random_index_module.c
nginx-1.21.0/src/http/modules/ngx_http_range_filter_module.c
nginx-1.21.0/src/http/modules/ngx_http_realip_module.c
nginx-1.21.0/src/http/modules/ngx_http_referer_module.c
nginx-1.21.0/src/http/modules/ngx_http_rewrite_module.c
nginx-1.21.0/src/http/modules/ngx_http_scgi_module.c
nginx-1.21.0/src/http/modules/ngx_http_secure_link_module.c
nginx-1.21.0/src/http/modules/ngx_http_slice_filter_module.c
nginx-1.21.0/src/http/modules/ngx_http_split_clients_module.c
nginx-1.21.0/src/http/modules/ngx_http_ssi_filter_module.c
nginx-1.21.0/src/http/modules/ngx_http_ssi_filter_module.h
nginx-1.21.0/src/http/modules/ngx_http_ssl_module.c
nginx-1.21.0/src/http/modules/ngx_http_ssl_module.h
nginx-1.21.0/src/http/modules/ngx_http_static_module.c
nginx-1.21.0/src/http/modules/ngx_http_stub_status_module.c
nginx-1.21.0/src/http/modules/ngx_http_sub_filter_module.c
nginx-1.21.0/src/http/modules/ngx_http_try_files_module.c
nginx-1.21.0/src/http/modules/ngx_http_upstream_hash_module.c
nginx-1.21.0/src/http/modules/ngx_http_upstream_ip_hash_module.c
nginx-1.21.0/src/http/modules/ngx_http_upstream_keepalive_module.c
nginx-1.21.0/src/http/modules/ngx_http_upstream_random_module.c
nginx-1.21.0/src/http/modules/ngx_http_upstream_least_conn_module.c
nginx-1.21.0/src/http/modules/ngx_http_upstream_zone_module.c
nginx-1.21.0/src/http/modules/ngx_http_userid_filter_module.c
nginx-1.21.0/src/http/modules/ngx_http_uwsgi_module.c
nginx-1.21.0/src/http/modules/ngx_http_xslt_filter_module.c
nginx-1.21.0/src/http/modules/perl/Makefile.PL
nginx-1.21.0/src/http/modules/perl/nginx.pm
nginx-1.21.0/src/http/modules/perl/nginx.xs
nginx-1.21.0/src/http/modules/perl/ngx_http_perl_module.c
nginx-1.21.0/src/http/modules/perl/ngx_http_perl_module.h
nginx-1.21.0/src/http/modules/perl/typemap
nginx-1.21.0/src/event/modules/
nginx-1.21.0/src/event/ngx_event.c
nginx-1.21.0/src/event/ngx_event.h
nginx-1.21.0/src/event/ngx_event_accept.c
nginx-1.21.0/src/event/ngx_event_connect.c
nginx-1.21.0/src/event/ngx_event_connect.h
nginx-1.21.0/src/event/ngx_event_openssl.c
nginx-1.21.0/src/event/ngx_event_openssl.h
nginx-1.21.0/src/event/ngx_event_openssl_stapling.c
nginx-1.21.0/src/event/ngx_event_pipe.c
nginx-1.21.0/src/event/ngx_event_pipe.h
nginx-1.21.0/src/event/ngx_event_posted.c
nginx-1.21.0/src/event/ngx_event_posted.h
nginx-1.21.0/src/event/ngx_event_timer.c
nginx-1.21.0/src/event/ngx_event_timer.h
nginx-1.21.0/src/event/ngx_event_udp.c
nginx-1.21.0/src/event/modules/ngx_devpoll_module.c
nginx-1.21.0/src/event/modules/ngx_epoll_module.c
nginx-1.21.0/src/event/modules/ngx_eventport_module.c
nginx-1.21.0/src/event/modules/ngx_kqueue_module.c
nginx-1.21.0/src/event/modules/ngx_poll_module.c
nginx-1.21.0/src/event/modules/ngx_select_module.c
nginx-1.21.0/src/event/modules/ngx_win32_poll_module.c
nginx-1.21.0/src/event/modules/ngx_win32_select_module.c
nginx-1.21.0/src/core/nginx.c
nginx-1.21.0/src/core/nginx.h
nginx-1.21.0/src/core/ngx_array.c
nginx-1.21.0/src/core/ngx_array.h
nginx-1.21.0/src/core/ngx_buf.c
nginx-1.21.0/src/core/ngx_buf.h
nginx-1.21.0/src/core/ngx_conf_file.c
nginx-1.21.0/src/core/ngx_conf_file.h
nginx-1.21.0/src/core/ngx_config.h
nginx-1.21.0/src/core/ngx_connection.c
nginx-1.21.0/src/core/ngx_connection.h
nginx-1.21.0/src/core/ngx_core.h
nginx-1.21.0/src/core/ngx_cpuinfo.c
nginx-1.21.0/src/core/ngx_crc.h
nginx-1.21.0/src/core/ngx_crc32.c
nginx-1.21.0/src/core/ngx_crc32.h
nginx-1.21.0/src/core/ngx_crypt.c
nginx-1.21.0/src/core/ngx_crypt.h
nginx-1.21.0/src/core/ngx_cycle.c
nginx-1.21.0/src/core/ngx_cycle.h
nginx-1.21.0/src/core/ngx_file.c
nginx-1.21.0/src/core/ngx_file.h
nginx-1.21.0/src/core/ngx_hash.c
nginx-1.21.0/src/core/ngx_hash.h
nginx-1.21.0/src/core/ngx_inet.c
nginx-1.21.0/src/core/ngx_inet.h
nginx-1.21.0/src/core/ngx_list.c
nginx-1.21.0/src/core/ngx_list.h
nginx-1.21.0/src/core/ngx_log.c
nginx-1.21.0/src/core/ngx_log.h
nginx-1.21.0/src/core/ngx_md5.c
nginx-1.21.0/src/core/ngx_md5.h
nginx-1.21.0/src/core/ngx_module.c
nginx-1.21.0/src/core/ngx_module.h
nginx-1.21.0/src/core/ngx_murmurhash.c
nginx-1.21.0/src/core/ngx_murmurhash.h
nginx-1.21.0/src/core/ngx_open_file_cache.c
nginx-1.21.0/src/core/ngx_open_file_cache.h
nginx-1.21.0/src/core/ngx_output_chain.c
nginx-1.21.0/src/core/ngx_palloc.c
nginx-1.21.0/src/core/ngx_palloc.h
nginx-1.21.0/src/core/ngx_parse.c
nginx-1.21.0/src/core/ngx_parse.h
nginx-1.21.0/src/core/ngx_parse_time.c
nginx-1.21.0/src/core/ngx_queue.c
nginx-1.21.0/src/core/ngx_parse_time.h
nginx-1.21.0/src/core/ngx_proxy_protocol.c
nginx-1.21.0/src/core/ngx_proxy_protocol.h
nginx-1.21.0/src/core/ngx_queue.h
nginx-1.21.0/src/core/ngx_radix_tree.c
nginx-1.21.0/src/core/ngx_radix_tree.h
nginx-1.21.0/src/core/ngx_rbtree.c
nginx-1.21.0/src/core/ngx_rbtree.h
nginx-1.21.0/src/core/ngx_regex.c
nginx-1.21.0/src/core/ngx_regex.h
nginx-1.21.0/src/core/ngx_resolver.c
nginx-1.21.0/src/core/ngx_resolver.h
nginx-1.21.0/src/core/ngx_rwlock.c
nginx-1.21.0/src/core/ngx_rwlock.h
nginx-1.21.0/src/core/ngx_sha1.c
nginx-1.21.0/src/core/ngx_sha1.h
nginx-1.21.0/src/core/ngx_shmtx.c
nginx-1.21.0/src/core/ngx_shmtx.h
nginx-1.21.0/src/core/ngx_slab.c
nginx-1.21.0/src/core/ngx_slab.h
nginx-1.21.0/src/core/ngx_spinlock.c
nginx-1.21.0/src/core/ngx_string.c
nginx-1.21.0/src/core/ngx_string.h
nginx-1.21.0/src/core/ngx_syslog.c
nginx-1.21.0/src/core/ngx_syslog.h
nginx-1.21.0/src/core/ngx_thread_pool.c
nginx-1.21.0/src/core/ngx_thread_pool.h
nginx-1.21.0/src/core/ngx_times.c
nginx-1.21.0/src/core/ngx_times.h
nginx-1.21.0/contrib/README
nginx-1.21.0/contrib/geo2nginx.pl
nginx-1.21.0/contrib/unicode2nginx/
nginx-1.21.0/contrib/vim/
nginx-1.21.0/contrib/vim/ftdetect/
nginx-1.21.0/contrib/vim/ftplugin/
nginx-1.21.0/contrib/vim/indent/
nginx-1.21.0/contrib/vim/syntax/
nginx-1.21.0/contrib/vim/syntax/nginx.vim
nginx-1.21.0/contrib/vim/indent/nginx.vim
nginx-1.21.0/contrib/vim/ftplugin/nginx.vim
nginx-1.21.0/contrib/vim/ftdetect/nginx.vim
nginx-1.21.0/contrib/unicode2nginx/koi-utf
nginx-1.21.0/contrib/unicode2nginx/unicode-to-nginx.pl
nginx-1.21.0/contrib/unicode2nginx/win-utf
nginx-1.21.0/conf/fastcgi.conf
nginx-1.21.0/conf/fastcgi_params
nginx-1.21.0/conf/koi-utf
nginx-1.21.0/conf/koi-win
nginx-1.21.0/conf/mime.types
nginx-1.21.0/conf/nginx.conf
nginx-1.21.0/conf/scgi_params
nginx-1.21.0/conf/uwsgi_params
nginx-1.21.0/conf/win-utf
nginx-1.21.0/auto/cc/
nginx-1.21.0/auto/define
nginx-1.21.0/auto/endianness
nginx-1.21.0/auto/feature
nginx-1.21.0/auto/have
nginx-1.21.0/auto/have_headers
nginx-1.21.0/auto/headers
nginx-1.21.0/auto/include
nginx-1.21.0/auto/init
nginx-1.21.0/auto/install
nginx-1.21.0/auto/lib/
nginx-1.21.0/auto/make
nginx-1.21.0/auto/module
nginx-1.21.0/auto/modules
nginx-1.21.0/auto/nohave
nginx-1.21.0/auto/options
nginx-1.21.0/auto/os/
nginx-1.21.0/auto/sources
nginx-1.21.0/auto/stubs
nginx-1.21.0/auto/summary
nginx-1.21.0/auto/threads
nginx-1.21.0/auto/types/
nginx-1.21.0/auto/unix
nginx-1.21.0/auto/types/sizeof
nginx-1.21.0/auto/types/typedef
nginx-1.21.0/auto/types/uintptr_t
nginx-1.21.0/auto/types/value
nginx-1.21.0/auto/os/conf
nginx-1.21.0/auto/os/darwin
nginx-1.21.0/auto/os/freebsd
nginx-1.21.0/auto/os/linux
nginx-1.21.0/auto/os/solaris
nginx-1.21.0/auto/os/win32
nginx-1.21.0/auto/lib/conf
nginx-1.21.0/auto/lib/geoip/
nginx-1.21.0/auto/lib/google-perftools/
nginx-1.21.0/auto/lib/libatomic/
nginx-1.21.0/auto/lib/libgd/
nginx-1.21.0/auto/lib/libxslt/
nginx-1.21.0/auto/lib/make
nginx-1.21.0/auto/lib/openssl/
nginx-1.21.0/auto/lib/pcre/
nginx-1.21.0/auto/lib/perl/
nginx-1.21.0/auto/lib/zlib/
nginx-1.21.0/auto/lib/zlib/conf
nginx-1.21.0/auto/lib/zlib/make
nginx-1.21.0/auto/lib/zlib/makefile.bcc
nginx-1.21.0/auto/lib/zlib/makefile.msvc
nginx-1.21.0/auto/lib/zlib/makefile.owc
nginx-1.21.0/auto/lib/perl/conf
nginx-1.21.0/auto/lib/perl/make
nginx-1.21.0/auto/lib/pcre/conf
nginx-1.21.0/auto/lib/pcre/make
nginx-1.21.0/auto/lib/pcre/makefile.bcc
nginx-1.21.0/auto/lib/pcre/makefile.msvc
nginx-1.21.0/auto/lib/pcre/makefile.owc
nginx-1.21.0/auto/lib/openssl/conf
nginx-1.21.0/auto/lib/openssl/make
nginx-1.21.0/auto/lib/openssl/makefile.bcc
nginx-1.21.0/auto/lib/openssl/makefile.msvc
nginx-1.21.0/auto/lib/libxslt/conf
nginx-1.21.0/auto/lib/libgd/conf
nginx-1.21.0/auto/lib/libatomic/conf
nginx-1.21.0/auto/lib/libatomic/make
nginx-1.21.0/auto/lib/google-perftools/conf
nginx-1.21.0/auto/lib/geoip/conf
nginx-1.21.0/auto/cc/acc
nginx-1.21.0/auto/cc/bcc
nginx-1.21.0/auto/cc/ccc
nginx-1.21.0/auto/cc/clang
nginx-1.21.0/auto/cc/conf
nginx-1.21.0/auto/cc/gcc
nginx-1.21.0/auto/cc/icc
nginx-1.21.0/auto/cc/msvc
nginx-1.21.0/auto/cc/name
nginx-1.21.0/auto/cc/owc
nginx-1.21.0/auto/cc/sunc

执行nginx安装命令

首先进入解压目录中,我这里先对解压文件夹进行了改名

[root@azang home]# ls
nginx-1.21.0  nginx-1.21.0.tar.gz
[root@azang home]# mv nginx-1.21.0 nginx21
[root@azang home]# ls
nginx-1.21.0.tar.gz  nginx21
[root@azang home]# cd nginx21
[root@azang nginx21]# ls
auto  CHANGES  CHANGES.ru  conf  configure  contrib  html  LICENSE  man  README  src

执行安装命令

# 命令 ./configure(执行脚本)
[root@azang nginx21]# ./configure
checking for OS
 + Linux 3.10.0-957.el7.x86_64 x86_64
checking for C compiler ... not found

./configure: error: C compiler cc is not found

缺少gcc-c++解决方案

这里会发现报错原因

是因为缺少 gcc-c++ 的包

添加对应的包就好了,执行:yum -y install gcc-c++

1、GCC——GNU编译器集合(GCC可以使用默认包管理器的仓库(repositories)来安装,包管理器的选择依赖于你使用的Linux发布版本,包管理器有不同的实现:yum是基于RedHat的发布版本;apt用于Debian和Ubuntu;yast用于SuSE Linux等等。)

# 这里是安装信息
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: download.nus.edu.sg
 * extras: download.nus.edu.sg
 * updates: download.nus.edu.sg
Resolving Dependencies
--> Running transaction check
---> Package gcc-c++.x86_64 0:4.8.5-44.el7 will be installed
--> Processing Dependency: libstdc++-devel = 4.8.5-44.el7 for package: gcc-c++-4.8.5-44.el7.x86_64
--> Processing Dependency: libstdc++ = 4.8.5-44.el7 for package: gcc-c++-4.8.5-44.el7.x86_64
--> Processing Dependency: gcc = 4.8.5-44.el7 for package: gcc-c++-4.8.5-44.el7.x86_64
--> Processing Dependency: libmpfr.so.4()(64bit) for package: gcc-c++-4.8.5-44.el7.x86_64
--> Processing Dependency: libmpc.so.3()(64bit) for package: gcc-c++-4.8.5-44.el7.x86_64
--> Running transaction check
---> Package gcc.x86_64 0:4.8.5-44.el7 will be installed
--> Processing Dependency: libgomp = 4.8.5-44.el7 for package: gcc-4.8.5-44.el7.x86_64
--> Processing Dependency: cpp = 4.8.5-44.el7 for package: gcc-4.8.5-44.el7.x86_64
--> Processing Dependency: libgcc >= 4.8.5-44.el7 for package: gcc-4.8.5-44.el7.x86_64
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.8.5-44.el7.x86_64
---> Package libmpc.x86_64 0:1.0.1-3.el7 will be installed
---> Package libstdc++.x86_64 0:4.8.5-36.el7 will be updated
---> Package libstdc++.x86_64 0:4.8.5-44.el7 will be an update
---> Package libstdc++-devel.x86_64 0:4.8.5-44.el7 will be installed
---> Package mpfr.x86_64 0:3.1.1-4.el7 will be installed
--> Running transaction check
---> Package cpp.x86_64 0:4.8.5-44.el7 will be installed
---> Package glibc-devel.x86_64 0:2.17-324.el7_9 will be installed
--> Processing Dependency: glibc-headers = 2.17-324.el7_9 for package: glibc-devel-2.17-324.el7_9.x86_64
--> Processing Dependency: glibc = 2.17-324.el7_9 for package: glibc-devel-2.17-324.el7_9.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.17-324.el7_9.x86_64
---> Package libgcc.x86_64 0:4.8.5-36.el7 will be updated
---> Package libgcc.x86_64 0:4.8.5-44.el7 will be an update
---> Package libgomp.x86_64 0:4.8.5-36.el7 will be updated
---> Package libgomp.x86_64 0:4.8.5-44.el7 will be an update
--> Running transaction check
---> Package glibc.x86_64 0:2.17-260.el7 will be updated
--> Processing Dependency: glibc = 2.17-260.el7 for package: glibc-common-2.17-260.el7.x86_64---> Package glibc.x86_64 0:2.17-324.el7_9 will be an update
---> Package glibc-headers.x86_64 0:2.17-324.el7_9 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.17-324.el7_9.x86_64
--> Processing Dependency: kernel-headers for package: glibc-headers-2.17-324.el7_9.x86_64
--> Running transaction check
---> Package glibc-common.x86_64 0:2.17-260.el7 will be updated
---> Package glibc-common.x86_64 0:2.17-324.el7_9 will be an update
---> Package kernel-headers.x86_64 0:3.10.0-1160.31.1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================= Package                 Arch           Version                        Repository       Size
=============================================================================================Installing:
 gcc-c++                 x86_64         4.8.5-44.el7                   base            7.2 M
Installing for dependencies:
 cpp                     x86_64         4.8.5-44.el7                   base            5.9 M
 gcc                     x86_64         4.8.5-44.el7                   base             16 M
 glibc-devel             x86_64         2.17-324.el7_9                 updates         1.1 M
 glibc-headers           x86_64         2.17-324.el7_9                 updates         691 k
 kernel-headers          x86_64         3.10.0-1160.31.1.el7           updates         9.0 M
 libmpc                  x86_64         1.0.1-3.el7                    base             51 k
 libstdc++-devel         x86_64         4.8.5-44.el7                   base            1.5 M
 mpfr                    x86_64         3.1.1-4.el7                    base            203 k
Updating for dependencies:
 glibc                   x86_64         2.17-324.el7_9                 updates         3.6 M
 glibc-common            x86_64         2.17-324.el7_9                 updates          12 M
 libgcc                  x86_64         4.8.5-44.el7                   base            103 k
 libgomp                 x86_64         4.8.5-44.el7                   base            159 k
 libstdc++               x86_64         4.8.5-44.el7                   base            306 k

Transaction Summary
=============================================================================================Install  1 Package  (+8 Dependent packages)
Upgrade             ( 5 Dependent packages)

Total download size: 58 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/14): glibc-2.17-324.el7_9.x86_64.rpm                               | 3.6 MB  00:00:04     
(2/14): glibc-devel-2.17-324.el7_9.x86_64.rpm                         | 1.1 MB  00:00:01     
(3/14): cpp-4.8.5-44.el7.x86_64.rpm                                   | 5.9 MB  00:00:06     
(4/14): glibc-headers-2.17-324.el7_9.x86_64.rpm                       | 691 kB  00:00:00     
(5/14): libgcc-4.8.5-44.el7.x86_64.rpm                                | 103 kB  00:00:00     
(6/14): libgomp-4.8.5-44.el7.x86_64.rpm                               | 159 kB  00:00:00     
(7/14): libmpc-1.0.1-3.el7.x86_64.rpm                                 |  51 kB  00:00:00     
(8/14): libstdc++-4.8.5-44.el7.x86_64.rpm                             | 306 kB  00:00:00     
(9/14): libstdc++-devel-4.8.5-44.el7.x86_64.rpm                       | 1.5 MB  00:00:01     
(10/14): mpfr-3.1.1-4.el7.x86_64.rpm                                  | 203 kB  00:00:00     
(11/14): kernel-headers-3.10.0-1160.31.1.el7.x86_64.rpm               | 9.0 MB  00:00:12     
(12/14): gcc-c++-4.8.5-44.el7.x86_64.rpm                              | 7.2 MB  00:00:20     
(13/14): gcc-4.8.5-44.el7.x86_64.rpm                                  |  16 MB  00:00:23     
(14/14): glibc-common-2.17-324.el7_9.x86_64.rpm                       |  12 MB  00:00:24     
---------------------------------------------------------------------------------------------Total                                                        2.4 MB/s |  58 MB  00:00:24     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : libgcc-4.8.5-44.el7.x86_64                                               1/19 
  Updating   : glibc-2.17-324.el7_9.x86_64                                              2/19 
warning: /etc/nsswitch.conf created as /etc/nsswitch.conf.rpmnew
  Updating   : glibc-common-2.17-324.el7_9.x86_64                                       3/19 
  Installing : mpfr-3.1.1-4.el7.x86_64                                                  4/19 
  Installing : libmpc-1.0.1-3.el7.x86_64                                                5/19 
  Updating   : libstdc++-4.8.5-44.el7.x86_64                                            6/19 
  Installing : libstdc++-devel-4.8.5-44.el7.x86_64                                      7/19 
  Installing : cpp-4.8.5-44.el7.x86_64                                                  8/19 
  Updating   : libgomp-4.8.5-44.el7.x86_64                                              9/19 
  Installing : kernel-headers-3.10.0-1160.31.1.el7.x86_64                              10/19 
  Installing : glibc-headers-2.17-324.el7_9.x86_64                                     11/19 
  Installing : glibc-devel-2.17-324.el7_9.x86_64                                       12/19 
  Installing : gcc-4.8.5-44.el7.x86_64                                                 13/19 
  Installing : gcc-c++-4.8.5-44.el7.x86_64                                             14/19 
  Cleanup    : libstdc++-4.8.5-36.el7.x86_64                                           15/19 
  Cleanup    : libgomp-4.8.5-36.el7.x86_64                                             16/19 
  Cleanup    : glibc-common-2.17-260.el7.x86_64                                        17/19 
  Cleanup    : glibc-2.17-260.el7.x86_64                                               18/19 
  Cleanup    : libgcc-4.8.5-36.el7.x86_64                                              19/19 
  Verifying  : glibc-devel-2.17-324.el7_9.x86_64                                        1/19 
  Verifying  : gcc-c++-4.8.5-44.el7.x86_64                                              2/19 
  Verifying  : libstdc++-4.8.5-44.el7.x86_64                                            3/19 
  Verifying  : libgomp-4.8.5-44.el7.x86_64                                              4/19 
  Verifying  : glibc-common-2.17-324.el7_9.x86_64                                       5/19 
  Verifying  : mpfr-3.1.1-4.el7.x86_64                                                  6/19 
  Verifying  : glibc-headers-2.17-324.el7_9.x86_64                                      7/19 
  Verifying  : cpp-4.8.5-44.el7.x86_64                                                  8/19 
  Verifying  : gcc-4.8.5-44.el7.x86_64                                                  9/19 
  Verifying  : glibc-2.17-324.el7_9.x86_64                                             10/19 
  Verifying  : libstdc++-devel-4.8.5-44.el7.x86_64                                     11/19 
  Verifying  : libmpc-1.0.1-3.el7.x86_64                                               12/19 
  Verifying  : libgcc-4.8.5-44.el7.x86_64                                              13/19 
  Verifying  : kernel-headers-3.10.0-1160.31.1.el7.x86_64                              14/19 
  Verifying  : glibc-2.17-260.el7.x86_64                                               15/19 
  Verifying  : libgomp-4.8.5-36.el7.x86_64                                             16/19 
  Verifying  : libgcc-4.8.5-36.el7.x86_64                                              17/19 
  Verifying  : glibc-common-2.17-260.el7.x86_64                                        18/19 
  Verifying  : libstdc++-4.8.5-36.el7.x86_64                                           19/19 

Installed:
  gcc-c++.x86_64 0:4.8.5-44.el7                                                              

Dependency Installed:
  cpp.x86_64 0:4.8.5-44.el7                        gcc.x86_64 0:4.8.5-44.el7                
  glibc-devel.x86_64 0:2.17-324.el7_9              glibc-headers.x86_64 0:2.17-324.el7_9    
  kernel-headers.x86_64 0:3.10.0-1160.31.1.el7     libmpc.x86_64 0:1.0.1-3.el7              
  libstdc++-devel.x86_64 0:4.8.5-44.el7            mpfr.x86_64 0:3.1.1-4.el7                

Dependency Updated:
  glibc.x86_64 0:2.17-324.el7_9              glibc-common.x86_64 0:2.17-324.el7_9           
  libgcc.x86_64 0:4.8.5-44.el7               libgomp.x86_64 0:4.8.5-44.el7                  
  libstdc++.x86_64 0:4.8.5-44.el7           

Complete!

这就说明安装完了

接下来重新执行./configure脚本

# 这时候就可以安装成功了!!!
[root@azang nginx21]# ./configure
# 下面是安装信息
checking for OS
 + Linux 3.10.0-957.el7.x86_64 x86_64
checking for C compiler ... found
 + using GNU C compiler
 + gcc version: 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) 
checking for gcc -pipe switch ... found
checking for -Wl,-E switch ... found
checking for gcc builtin atomic operations ... found
checking for C99 variadic macros ... found
checking for gcc variadic macros ... found
checking for gcc builtin 64 bit byteswap ... found
checking for unistd.h ... found
checking for inttypes.h ... found
checking for limits.h ... found
checking for sys/filio.h ... not found
checking for sys/param.h ... found
checking for sys/mount.h ... found
checking for sys/statvfs.h ... found
checking for crypt.h ... found
checking for Linux specific features
checking for epoll ... found
checking for EPOLLRDHUP ... found
checking for EPOLLEXCLUSIVE ... not found
checking for eventfd() ... found
checking for O_PATH ... found
checking for sendfile() ... found
checking for sendfile64() ... found
checking for sys/prctl.h ... found
checking for prctl(PR_SET_DUMPABLE) ... found
checking for prctl(PR_SET_KEEPCAPS) ... found
checking for capabilities ... found
checking for crypt_r() ... found
checking for sys/vfs.h ... found
checking for nobody group ... found
checking for poll() ... found
checking for /dev/poll ... not found
checking for kqueue ... not found
checking for crypt() ... not found
checking for crypt() in libcrypt ... found
checking for F_READAHEAD ... not found
checking for posix_fadvise() ... found
checking for O_DIRECT ... found
checking for F_NOCACHE ... not found
checking for directio() ... not found
checking for statfs() ... found
checking for statvfs() ... found
checking for dlopen() ... not found
checking for dlopen() in libdl ... found
checking for sched_yield() ... found
checking for sched_setaffinity() ... found
checking for SO_SETFIB ... not found
checking for SO_REUSEPORT ... found
checking for SO_ACCEPTFILTER ... not found
checking for SO_BINDANY ... not found
checking for IP_TRANSPARENT ... found
checking for IP_BINDANY ... not found
checking for IP_BIND_ADDRESS_NO_PORT ... found
checking for IP_RECVDSTADDR ... not found
checking for IP_SENDSRCADDR ... not found
checking for IP_PKTINFO ... found
checking for IPV6_RECVPKTINFO ... found
checking for TCP_DEFER_ACCEPT ... found
checking for TCP_KEEPIDLE ... found
checking for TCP_FASTOPEN ... found
checking for TCP_INFO ... found
checking for accept4() ... found
checking for int size ... 4 bytes
checking for long size ... 8 bytes
checking for long long size ... 8 bytes
checking for void * size ... 8 bytes
checking for uint32_t ... found
checking for uint64_t ... found
checking for sig_atomic_t ... found
checking for sig_atomic_t size ... 4 bytes
checking for socklen_t ... found
checking for in_addr_t ... found
checking for in_port_t ... found
checking for rlim_t ... found
checking for uintptr_t ... uintptr_t found
checking for system byte ordering ... little endian
checking for size_t size ... 8 bytes
checking for off_t size ... 8 bytes
checking for time_t size ... 8 bytes
checking for AF_INET6 ... found
checking for setproctitle() ... not found
checking for pread() ... found
checking for pwrite() ... found
checking for pwritev() ... found
checking for strerrordesc_np() ... not found
checking for sys_nerr ... found
checking for localtime_r() ... found
checking for clock_gettime(CLOCK_MONOTONIC) ... found
checking for posix_memalign() ... found
checking for memalign() ... found
checking for mmap(MAP_ANON|MAP_SHARED) ... found
checking for mmap("/dev/zero", MAP_SHARED) ... found
checking for System V shared memory ... found
checking for POSIX semaphores ... not found
checking for POSIX semaphores in libpthread ... found
checking for struct msghdr.msg_control ... found
checking for ioctl(FIONBIO) ... found
checking for ioctl(FIONREAD) ... found
checking for struct tm.tm_gmtoff ... found
checking for struct dirent.d_namlen ... not found
checking for struct dirent.d_type ... found
checking for sysconf(_SC_NPROCESSORS_ONLN) ... found
checking for sysconf(_SC_LEVEL1_DCACHE_LINESIZE) ... found
checking for openat(), fstatat() ... found
checking for getaddrinfo() ... found
checking for PCRE library ... not found
checking for PCRE library in /usr/local/ ... not found
checking for PCRE library in /usr/include/pcre/ ... not found
checking for PCRE library in /usr/pkg/ ... not found
checking for PCRE library in /opt/local/ ... not found

./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using --with-pcre=<path> option.

接下来执行命令make(编译)

# 命令 make 编译
[root@azang nginx21]# make
-bash: make: command not found

找不到make命令解决方案

(ubuntu将apt-get代替为yum)

系统没有安装make命令,直接yum安装下即可。

yum -y install gcc automake autoconf libtool make

# 安装make命令
[root@azang nginx21]# yum -y install gcc automake autoconf libtool make
# 安装信息
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: download.nus.edu.sg
 * extras: download.nus.edu.sg
 * updates: download.nus.edu.sg
Package gcc-4.8.5-44.el7.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package autoconf.noarch 0:2.69-11.el7 will be installed
--> Processing Dependency: m4 >= 1.4.14 for package: autoconf-2.69-11.el7.noarch
--> Processing Dependency: perl(Data::Dumper) for package: autoconf-2.69-11.el7.noarch
---> Package automake.noarch 0:1.13.4-3.el7 will be installed
--> Processing Dependency: perl(Thread::Queue) for package: automake-1.13.4-3.el7.noarch
--> Processing Dependency: perl(TAP::Parser) for package: automake-1.13.4-3.el7.noarch
---> Package libtool.x86_64 0:2.4.2-22.el7_3 will be installed
---> Package make.x86_64 1:3.82-24.el7 will be installed
--> Running transaction check
---> Package m4.x86_64 0:1.4.16-10.el7 will be installed
---> Package perl-Data-Dumper.x86_64 0:2.145-3.el7 will be installed
---> Package perl-Test-Harness.noarch 0:3.28-3.el7 will be installed
---> Package perl-Thread-Queue.noarch 0:3.02-2.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================= Package                     Arch             Version                   Repository      Size
=============================================================================================Installing:
 autoconf                    noarch           2.69-11.el7               base           701 k
 automake                    noarch           1.13.4-3.el7              base           679 k
 libtool                     x86_64           2.4.2-22.el7_3            base           588 k
 make                        x86_64           1:3.82-24.el7             base           421 k
Installing for dependencies:
 m4                          x86_64           1.4.16-10.el7             base           256 k
 perl-Data-Dumper            x86_64           2.145-3.el7               base            47 k
 perl-Test-Harness           noarch           3.28-3.el7                base           302 k
 perl-Thread-Queue           noarch           3.02-2.el7                base            17 k

Transaction Summary
=============================================================================================Install  4 Packages (+4 Dependent packages)

Total download size: 2.9 M
Installed size: 8.4 M
Downloading packages:
(1/8): make-3.82-24.el7.x86_64.rpm                                    | 421 kB  00:00:00     
(2/8): perl-Data-Dumper-2.145-3.el7.x86_64.rpm                        |  47 kB  00:00:00     
(3/8): perl-Test-Harness-3.28-3.el7.noarch.rpm                        | 302 kB  00:00:00     
(4/8): autoconf-2.69-11.el7.noarch.rpm                                | 701 kB  00:00:00     
(5/8): perl-Thread-Queue-3.02-2.el7.noarch.rpm                        |  17 kB  00:00:00     
(6/8): automake-1.13.4-3.el7.noarch.rpm                               | 679 kB  00:00:00     
(7/8): m4-1.4.16-10.el7.x86_64.rpm                                    | 256 kB  00:00:00     
(8/8): libtool-2.4.2-22.el7_3.x86_64.rpm                              | 588 kB  00:00:00     
---------------------------------------------------------------------------------------------Total                                                        2.9 MB/s | 2.9 MB  00:00:01     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : m4-1.4.16-10.el7.x86_64                                                   1/8 
  Installing : perl-Thread-Queue-3.02-2.el7.noarch                                       2/8 
  Installing : perl-Test-Harness-3.28-3.el7.noarch                                       3/8 
  Installing : perl-Data-Dumper-2.145-3.el7.x86_64                                       4/8 
  Installing : autoconf-2.69-11.el7.noarch                                               5/8 
  Installing : automake-1.13.4-3.el7.noarch                                              6/8 
  Installing : libtool-2.4.2-22.el7_3.x86_64                                             7/8 
  Installing : 1:make-3.82-24.el7.x86_64                                                 8/8 
  Verifying  : autoconf-2.69-11.el7.noarch                                               1/8 
  Verifying  : perl-Data-Dumper-2.145-3.el7.x86_64                                       2/8 
  Verifying  : perl-Test-Harness-3.28-3.el7.noarch                                       3/8 
  Verifying  : automake-1.13.4-3.el7.noarch                                              4/8 
  Verifying  : perl-Thread-Queue-3.02-2.el7.noarch                                       5/8 
  Verifying  : 1:make-3.82-24.el7.x86_64                                                 6/8 
  Verifying  : m4-1.4.16-10.el7.x86_64                                                   7/8 
  Verifying  : libtool-2.4.2-22.el7_3.x86_64                                             8/8 

Installed:
  autoconf.noarch 0:2.69-11.el7                 automake.noarch 0:1.13.4-3.el7              
  libtool.x86_64 0:2.4.2-22.el7_3               make.x86_64 1:3.82-24.el7                   

Dependency Installed:
  m4.x86_64 0:1.4.16-10.el7                     perl-Data-Dumper.x86_64 0:2.145-3.el7        
  perl-Test-Harness.noarch 0:3.28-3.el7         perl-Thread-Queue.noarch 0:3.02-2.el7        

Complete!

解决完成之后,重新编译

[root@azang nginx21]# make
make: *** No rule to make target `build', needed by `default'.  Stop.

出现这种情况,是因为linux系统没有安装先决条件

1.PCRE库

(Nginx编译需要PCRE(Perl Compatible Regular
Expression),因为Nginx的Rewrite模块和HTTP核心模块会使用到PCRE正则表达式语法。这里需要安装两个安装包pcre和pcre-devel。第一个安装包提供编译版本的库,而第二个提供开发阶段的头文件和编译项目的源代码,这正是我们需要的理由。)

RedHat中安装PCRE:(centos也可以使用)

yum install pcre pcre-devel

Ubuntu中安装PCRE:

apt-get install libpcre3 libpcre3-dev

2.zlib库

(zlib库提供了开发人员的压缩算法,在Nginx的各种模块中需要使用gzip压缩。如同安装PCRE一样,同样需要安装库和它的源代码:zlib和zlib-devel。)

RedHat中安装zlib:(centos也可以使用)

yum install zlib zlib-devel

Ubuntu中安装zlib:

apt-get install zlib1g zlib1g-dev

3.OpenSSL库

(在Nginx中,如果服务器提供安全网页时则会用到OpenSSL库,我们需要安装库文件和它的开发安装包(openssl和openssl-devel)。)

RedHat中安装OpenSSL:(centos也可以使用)

yum install openssl openssl-devel

Ubuntu中安装OpenSSL:(注:Ubuntu14.04的仓库中没有发现openssl-dev):

apt-get install openssl openssl-dev

分别执行单个命令安装三个库的包

[root@azang nginx21]# yum install pcre pcre-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: download.nus.edu.sg
 * extras: download.nus.edu.sg
 * updates: download.nus.edu.sg
Package pcre-8.32-17.el7.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package pcre-devel.x86_64 0:8.32-17.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================= Package                Arch               Version                    Repository        Size
=============================================================================================Installing:
 pcre-devel             x86_64             8.32-17.el7                base             480 k

Transaction Summary
=============================================================================================Install  1 Package

Total download size: 480 k
Installed size: 1.4 M
Is this ok [y/d/N]: y
Downloading packages:
pcre-devel-8.32-17.el7.x86_64.rpm                                     | 480 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : pcre-devel-8.32-17.el7.x86_64                                             1/1 
  Verifying  : pcre-devel-8.32-17.el7.x86_64                                             1/1 

Installed:
  pcre-devel.x86_64 0:8.32-17.el7                                                            

Complete!

[root@azang nginx21]# yum install zlib zlib-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: download.nus.edu.sg
 * extras: download.nus.edu.sg
 * updates: download.nus.edu.sg
Resolving Dependencies
--> Running transaction check
---> Package zlib.x86_64 0:1.2.7-18.el7 will be updated
---> Package zlib.x86_64 0:1.2.7-19.el7_9 will be an update
---> Package zlib-devel.x86_64 0:1.2.7-19.el7_9 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================= Package               Arch              Version                    Repository          Size
=============================================================================================Installing:
 zlib-devel            x86_64            1.2.7-19.el7_9             updates             50 k
Updating:
 zlib                  x86_64            1.2.7-19.el7_9             updates             90 k

Transaction Summary
=============================================================================================Install  1 Package
Upgrade  1 Package

Total download size: 140 k
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/2): zlib-devel-1.2.7-19.el7_9.x86_64.rpm                           |  50 kB  00:00:00     
(2/2): zlib-1.2.7-19.el7_9.x86_64.rpm                                 |  90 kB  00:00:00     
---------------------------------------------------------------------------------------------Total                                                        593 kB/s | 140 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : zlib-1.2.7-19.el7_9.x86_64                                                1/3 
  Installing : zlib-devel-1.2.7-19.el7_9.x86_64                                          2/3 
  Cleanup    : zlib-1.2.7-18.el7.x86_64                                                  3/3 
  Verifying  : zlib-devel-1.2.7-19.el7_9.x86_64                                          1/3 
  Verifying  : zlib-1.2.7-19.el7_9.x86_64                                                2/3 
  Verifying  : zlib-1.2.7-18.el7.x86_64                                                  3/3 

Installed:
  zlib-devel.x86_64 0:1.2.7-19.el7_9                                                         

Updated:
  zlib.x86_64 0:1.2.7-19.el7_9                                                               

Complete!
[root@azang nginx21]# yum install openssl openssl-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: download.nus.edu.sg
 * extras: download.nus.edu.sg
 * updates: download.nus.edu.sg
Resolving Dependencies
--> Running transaction check
---> Package openssl.x86_64 1:1.0.2k-21.el7_9 will be installed
--> Processing Dependency: openssl-libs(x86-64) = 1:1.0.2k-21.el7_9 for package: 1:openssl-1.0.2k-21.el7_9.x86_64
---> Package openssl-devel.x86_64 1:1.0.2k-21.el7_9 will be installed
--> Processing Dependency: krb5-devel(x86-64) for package: 1:openssl-devel-1.0.2k-21.el7_9.x86_64
--> Running transaction check
---> Package krb5-devel.x86_64 0:1.15.1-50.el7 will be installed
--> Processing Dependency: libkadm5(x86-64) = 1.15.1-50.el7 for package: krb5-devel-1.15.1-50.el7.x86_64
--> Processing Dependency: krb5-libs(x86-64) = 1.15.1-50.el7 for package: krb5-devel-1.15.1-50.el7.x86_64
--> Processing Dependency: libverto-devel for package: krb5-devel-1.15.1-50.el7.x86_64
--> Processing Dependency: libselinux-devel for package: krb5-devel-1.15.1-50.el7.x86_64
--> Processing Dependency: libcom_err-devel for package: krb5-devel-1.15.1-50.el7.x86_64
--> Processing Dependency: keyutils-libs-devel for package: krb5-devel-1.15.1-50.el7.x86_64
---> Package openssl-libs.x86_64 1:1.0.2k-16.el7 will be updated
---> Package openssl-libs.x86_64 1:1.0.2k-21.el7_9 will be an update
--> Running transaction check
---> Package keyutils-libs-devel.x86_64 0:1.5.8-3.el7 will be installed
---> Package krb5-libs.x86_64 0:1.15.1-34.el7 will be updated
---> Package krb5-libs.x86_64 0:1.15.1-50.el7 will be an update
---> Package libcom_err-devel.x86_64 0:1.42.9-19.el7 will be installed
--> Processing Dependency: libcom_err(x86-64) = 1.42.9-19.el7 for package: libcom_err-devel-1.42.9-19.el7.x86_64
---> Package libkadm5.x86_64 0:1.15.1-50.el7 will be installed
---> Package libselinux-devel.x86_64 0:2.5-15.el7 will be installed
--> Processing Dependency: libselinux(x86-64) = 2.5-15.el7 for package: libselinux-devel-2.5-15.el7.x86_64
--> Processing Dependency: libsepol-devel(x86-64) >= 2.5-10 for package: libselinux-devel-2.5-15.el7.x86_64
--> Processing Dependency: pkgconfig(libsepol) for package: libselinux-devel-2.5-15.el7.x86_64
---> Package libverto-devel.x86_64 0:0.2.5-4.el7 will be installed
--> Running transaction check
---> Package libcom_err.x86_64 0:1.42.9-13.el7 will be updated
--> Processing Dependency: libcom_err(x86-64) = 1.42.9-13.el7 for package: e2fsprogs-1.42.9-13.el7.x86_64
--> Processing Dependency: libcom_err(x86-64) = 1.42.9-13.el7 for package: e2fsprogs-libs-1.42.9-13.el7.x86_64
--> Processing Dependency: libcom_err(x86-64) = 1.42.9-13.el7 for package: libss-1.42.9-13.el7.x86_64
---> Package libcom_err.x86_64 0:1.42.9-19.el7 will be an update
---> Package libselinux.x86_64 0:2.5-14.1.el7 will be updated
--> Processing Dependency: libselinux(x86-64) = 2.5-14.1.el7 for package: libselinux-python-2.5-14.1.el7.x86_64
--> Processing Dependency: libselinux(x86-64) = 2.5-14.1.el7 for package: libselinux-utils-2.5-14.1.el7.x86_64
---> Package libselinux.x86_64 0:2.5-15.el7 will be an update
---> Package libsepol-devel.x86_64 0:2.5-10.el7 will be installed
--> Running transaction check
---> Package e2fsprogs.x86_64 0:1.42.9-13.el7 will be updated
---> Package e2fsprogs.x86_64 0:1.42.9-19.el7 will be an update
---> Package e2fsprogs-libs.x86_64 0:1.42.9-13.el7 will be updated
---> Package e2fsprogs-libs.x86_64 0:1.42.9-19.el7 will be an update
---> Package libselinux-python.x86_64 0:2.5-14.1.el7 will be updated
---> Package libselinux-python.x86_64 0:2.5-15.el7 will be an update
---> Package libselinux-utils.x86_64 0:2.5-14.1.el7 will be updated
---> Package libselinux-utils.x86_64 0:2.5-15.el7 will be an update
---> Package libss.x86_64 0:1.42.9-13.el7 will be updated
---> Package libss.x86_64 0:1.42.9-19.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================= Package                     Arch           Version                    Repository       Size
=============================================================================================Installing:
 openssl                     x86_64         1:1.0.2k-21.el7_9          updates         493 k
 openssl-devel               x86_64         1:1.0.2k-21.el7_9          updates         1.5 M
Installing for dependencies:
 keyutils-libs-devel         x86_64         1.5.8-3.el7                base             37 k
 krb5-devel                  x86_64         1.15.1-50.el7              base            273 k
 libcom_err-devel            x86_64         1.42.9-19.el7              base             32 k
 libkadm5                    x86_64         1.15.1-50.el7              base            179 k
 libselinux-devel            x86_64         2.5-15.el7                 base            187 k
 libsepol-devel              x86_64         2.5-10.el7                 base             77 k
 libverto-devel              x86_64         0.2.5-4.el7                base             12 k
Updating for dependencies:
 e2fsprogs                   x86_64         1.42.9-19.el7              base            701 k
 e2fsprogs-libs              x86_64         1.42.9-19.el7              base            168 k
 krb5-libs                   x86_64         1.15.1-50.el7              base            809 k
 libcom_err                  x86_64         1.42.9-19.el7              base             42 k
 libselinux                  x86_64         2.5-15.el7                 base            162 k
 libselinux-python           x86_64         2.5-15.el7                 base            236 k
 libselinux-utils            x86_64         2.5-15.el7                 base            151 k
 libss                       x86_64         1.42.9-19.el7              base             47 k
 openssl-libs                x86_64         1:1.0.2k-21.el7_9          updates         1.2 M

Transaction Summary
=============================================================================================Install  2 Packages (+7 Dependent packages)
Upgrade             ( 9 Dependent packages)

Total download size: 6.2 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/18): keyutils-libs-devel-1.5.8-3.el7.x86_64.rpm                    |  37 kB  00:00:00     
(2/18): krb5-libs-1.15.1-50.el7.x86_64.rpm                            | 809 kB  00:00:00     
(3/18): e2fsprogs-libs-1.42.9-19.el7.x86_64.rpm                       | 168 kB  00:00:00     
(4/18): libcom_err-devel-1.42.9-19.el7.x86_64.rpm                     |  32 kB  00:00:00     
(5/18): e2fsprogs-1.42.9-19.el7.x86_64.rpm                            | 701 kB  00:00:00     
(6/18): libselinux-2.5-15.el7.x86_64.rpm                              | 162 kB  00:00:00     
(7/18): libkadm5-1.15.1-50.el7.x86_64.rpm                             | 179 kB  00:00:00     
(8/18): libselinux-python-2.5-15.el7.x86_64.rpm                       | 236 kB  00:00:00     
(9/18): libselinux-devel-2.5-15.el7.x86_64.rpm                        | 187 kB  00:00:00     
(10/18): krb5-devel-1.15.1-50.el7.x86_64.rpm                          | 273 kB  00:00:00     
(11/18): libsepol-devel-2.5-10.el7.x86_64.rpm                         |  77 kB  00:00:00     
(12/18): libcom_err-1.42.9-19.el7.x86_64.rpm                          |  42 kB  00:00:00     
(13/18): libss-1.42.9-19.el7.x86_64.rpm                               |  47 kB  00:00:00     
(14/18): libselinux-utils-2.5-15.el7.x86_64.rpm                       | 151 kB  00:00:00     
(15/18): libverto-devel-0.2.5-4.el7.x86_64.rpm                        |  12 kB  00:00:00     
(16/18): openssl-libs-1.0.2k-21.el7_9.x86_64.rpm                      | 1.2 MB  00:00:00     
(17/18): openssl-devel-1.0.2k-21.el7_9.x86_64.rpm                     | 1.5 MB  00:00:01     
(18/18): openssl-1.0.2k-21.el7_9.x86_64.rpm                           | 493 kB  00:00:01     
---------------------------------------------------------------------------------------------Total                                                        2.6 MB/s | 6.2 MB  00:00:02     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : libcom_err-1.42.9-19.el7.x86_64                                          1/27 
  Updating   : libselinux-2.5-15.el7.x86_64                                             2/27 
  Updating   : 1:openssl-libs-1.0.2k-21.el7_9.x86_64                                    3/27 
  Updating   : krb5-libs-1.15.1-50.el7.x86_64                                           4/27 
  Installing : libkadm5-1.15.1-50.el7.x86_64                                            5/27 
  Updating   : e2fsprogs-libs-1.42.9-19.el7.x86_64                                      6/27 
  Updating   : libss-1.42.9-19.el7.x86_64                                               7/27 
  Installing : libcom_err-devel-1.42.9-19.el7.x86_64                                    8/27 
  Installing : libsepol-devel-2.5-10.el7.x86_64                                         9/27 
  Installing : libselinux-devel-2.5-15.el7.x86_64                                      10/27 
  Installing : libverto-devel-0.2.5-4.el7.x86_64                                       11/27 
  Installing : keyutils-libs-devel-1.5.8-3.el7.x86_64                                  12/27 
  Installing : krb5-devel-1.15.1-50.el7.x86_64                                         13/27 
  Installing : 1:openssl-devel-1.0.2k-21.el7_9.x86_64                                  14/27 
  Updating   : e2fsprogs-1.42.9-19.el7.x86_64                                          15/27 
  Installing : 1:openssl-1.0.2k-21.el7_9.x86_64                                        16/27 
  Updating   : libselinux-utils-2.5-15.el7.x86_64                                      17/27 
  Updating   : libselinux-python-2.5-15.el7.x86_64                                     18/27 
  Cleanup    : e2fsprogs-1.42.9-13.el7.x86_64                                          19/27 
  Cleanup    : krb5-libs-1.15.1-34.el7.x86_64                                          20/27 
  Cleanup    : 1:openssl-libs-1.0.2k-16.el7.x86_64                                     21/27 
  Cleanup    : e2fsprogs-libs-1.42.9-13.el7.x86_64                                     22/27 
  Cleanup    : libss-1.42.9-13.el7.x86_64                                              23/27 
  Cleanup    : libselinux-python-2.5-14.1.el7.x86_64                                   24/27 
  Cleanup    : libselinux-utils-2.5-14.1.el7.x86_64                                    25/27 
  Cleanup    : libselinux-2.5-14.1.el7.x86_64                                          26/27 
  Cleanup    : libcom_err-1.42.9-13.el7.x86_64                                         27/27 
  Verifying  : libselinux-devel-2.5-15.el7.x86_64                                       1/27 
  Verifying  : keyutils-libs-devel-1.5.8-3.el7.x86_64                                   2/27 
  Verifying  : libselinux-2.5-15.el7.x86_64                                             3/27 
  Verifying  : e2fsprogs-1.42.9-19.el7.x86_64                                           4/27 
  Verifying  : libkadm5-1.15.1-50.el7.x86_64                                            5/27 
  Verifying  : libverto-devel-0.2.5-4.el7.x86_64                                        6/27 
  Verifying  : libcom_err-1.42.9-19.el7.x86_64                                          7/27 
  Verifying  : libselinux-utils-2.5-15.el7.x86_64                                       8/27 
  Verifying  : 1:openssl-1.0.2k-21.el7_9.x86_64                                         9/27 
  Verifying  : e2fsprogs-libs-1.42.9-19.el7.x86_64                                     10/27 
  Verifying  : libselinux-python-2.5-15.el7.x86_64                                     11/27 
  Verifying  : libsepol-devel-2.5-10.el7.x86_64                                        12/27 
  Verifying  : 1:openssl-libs-1.0.2k-21.el7_9.x86_64                                   13/27 
  Verifying  : libss-1.42.9-19.el7.x86_64                                              14/27 
  Verifying  : 1:openssl-devel-1.0.2k-21.el7_9.x86_64                                  15/27 
  Verifying  : krb5-devel-1.15.1-50.el7.x86_64                                         16/27 
  Verifying  : krb5-libs-1.15.1-50.el7.x86_64                                          17/27 
  Verifying  : libcom_err-devel-1.42.9-19.el7.x86_64                                   18/27 
  Verifying  : 1:openssl-libs-1.0.2k-16.el7.x86_64                                     19/27 
  Verifying  : e2fsprogs-1.42.9-13.el7.x86_64                                          20/27 
  Verifying  : libss-1.42.9-13.el7.x86_64                                              21/27 
  Verifying  : libselinux-python-2.5-14.1.el7.x86_64                                   22/27 
  Verifying  : e2fsprogs-libs-1.42.9-13.el7.x86_64                                     23/27 
  Verifying  : krb5-libs-1.15.1-34.el7.x86_64                                          24/27 
  Verifying  : libselinux-utils-2.5-14.1.el7.x86_64                                    25/27 
  Verifying  : libcom_err-1.42.9-13.el7.x86_64                                         26/27 
  Verifying  : libselinux-2.5-14.1.el7.x86_64                                          27/27 

Installed:
  openssl.x86_64 1:1.0.2k-21.el7_9           openssl-devel.x86_64 1:1.0.2k-21.el7_9          

Dependency Installed:
  keyutils-libs-devel.x86_64 0:1.5.8-3.el7         krb5-devel.x86_64 0:1.15.1-50.el7         
  libcom_err-devel.x86_64 0:1.42.9-19.el7          libkadm5.x86_64 0:1.15.1-50.el7           
  libselinux-devel.x86_64 0:2.5-15.el7             libsepol-devel.x86_64 0:2.5-10.el7        
  libverto-devel.x86_64 0:0.2.5-4.el7             

Dependency Updated:
  e2fsprogs.x86_64 0:1.42.9-19.el7              e2fsprogs-libs.x86_64 0:1.42.9-19.el7        
  krb5-libs.x86_64 0:1.15.1-50.el7              libcom_err.x86_64 0:1.42.9-19.el7            
  libselinux.x86_64 0:2.5-15.el7                libselinux-python.x86_64 0:2.5-15.el7        
  libselinux-utils.x86_64 0:2.5-15.el7          libss.x86_64 0:1.42.9-19.el7                 
  openssl-libs.x86_64 1:1.0.2k-21.el7_9        

Complete!

安装先决条件之后完成之后重新编译make

[root@azang nginx21]# make
make: *** No rule to make target `build', needed by `default'.  Stop.

这里发现还是会有问题,这时需要先重新执行脚本文件之后再编译

# 执行脚本文件
[root@azang nginx21]# ./configure

# 这里的执行记录就不放在上面了,和第一次执行如出一辙,接下来执行编译命令
# 执行编译命令
[root@azang nginx21]# make
# 记录
make -f objs/Makefile
make[1]: Entering directory `/home/nginx21'
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/core/nginx.o \
        src/core/nginx.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/core/ngx_log.o \
        src/core/ngx_log.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/core/ngx_palloc.o \
        src/core/ngx_palloc.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/core/ngx_array.o \
        src/core/ngx_array.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/core/ngx_list.o \
        src/core/ngx_list.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/core/ngx_hash.o \
        src/core/ngx_hash.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/core/ngx_buf.o \
        src/core/ngx_buf.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/core/ngx_queue.o \
        src/core/ngx_queue.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/core/ngx_output_chain.o \
        src/core/ngx_output_chain.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/core/ngx_string.o \
        src/core/ngx_string.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/core/ngx_parse.o \
        src/core/ngx_parse.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/core/ngx_parse_time.o \
        src/core/ngx_parse_time.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/core/ngx_inet.o \
        src/core/ngx_inet.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/core/ngx_file.o \
        src/core/ngx_file.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/core/ngx_crc32.o \
        src/core/ngx_crc32.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/core/ngx_murmurhash.o \
        src/core/ngx_murmurhash.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/core/ngx_md5.o \
        src/core/ngx_md5.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/core/ngx_sha1.o \
        src/core/ngx_sha1.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/core/ngx_rbtree.o \
        src/core/ngx_rbtree.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/core/ngx_radix_tree.o \
        src/core/ngx_radix_tree.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/core/ngx_slab.o \
        src/core/ngx_slab.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/core/ngx_times.o \
        src/core/ngx_times.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/core/ngx_shmtx.o \
        src/core/ngx_shmtx.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/core/ngx_connection.o \
        src/core/ngx_connection.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/core/ngx_cycle.o \
        src/core/ngx_cycle.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/core/ngx_spinlock.o \
        src/core/ngx_spinlock.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/core/ngx_rwlock.o \
        src/core/ngx_rwlock.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/core/ngx_cpuinfo.o \
        src/core/ngx_cpuinfo.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/core/ngx_conf_file.o \
        src/core/ngx_conf_file.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/core/ngx_module.o \
        src/core/ngx_module.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/core/ngx_resolver.o \
        src/core/ngx_resolver.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/core/ngx_open_file_cache.o \
        src/core/ngx_open_file_cache.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/core/ngx_crypt.o \
        src/core/ngx_crypt.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/core/ngx_proxy_protocol.o \
        src/core/ngx_proxy_protocol.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/core/ngx_syslog.o \
        src/core/ngx_syslog.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/event/ngx_event.o \
        src/event/ngx_event.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/event/ngx_event_timer.o \
        src/event/ngx_event_timer.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/event/ngx_event_posted.o \
        src/event/ngx_event_posted.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/event/ngx_event_accept.o \
        src/event/ngx_event_accept.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/event/ngx_event_udp.o \
        src/event/ngx_event_udp.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/event/ngx_event_connect.o \
        src/event/ngx_event_connect.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/event/ngx_event_pipe.o \
        src/event/ngx_event_pipe.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/os/unix/ngx_time.o \
        src/os/unix/ngx_time.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/os/unix/ngx_errno.o \
        src/os/unix/ngx_errno.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/os/unix/ngx_alloc.o \
        src/os/unix/ngx_alloc.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/os/unix/ngx_files.o \
        src/os/unix/ngx_files.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/os/unix/ngx_socket.o \
        src/os/unix/ngx_socket.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/os/unix/ngx_recv.o \
        src/os/unix/ngx_recv.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/os/unix/ngx_readv_chain.o \
        src/os/unix/ngx_readv_chain.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/os/unix/ngx_udp_recv.o \
        src/os/unix/ngx_udp_recv.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/os/unix/ngx_send.o \
        src/os/unix/ngx_send.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/os/unix/ngx_writev_chain.o \
        src/os/unix/ngx_writev_chain.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/os/unix/ngx_udp_send.o \
        src/os/unix/ngx_udp_send.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/os/unix/ngx_udp_sendmsg_chain.o \
        src/os/unix/ngx_udp_sendmsg_chain.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/os/unix/ngx_channel.o \
        src/os/unix/ngx_channel.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/os/unix/ngx_shmem.o \
        src/os/unix/ngx_shmem.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/os/unix/ngx_process.o \
        src/os/unix/ngx_process.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/os/unix/ngx_daemon.o \
        src/os/unix/ngx_daemon.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/os/unix/ngx_setaffinity.o \
        src/os/unix/ngx_setaffinity.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/os/unix/ngx_setproctitle.o \
        src/os/unix/ngx_setproctitle.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/os/unix/ngx_posix_init.o \
        src/os/unix/ngx_posix_init.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/os/unix/ngx_user.o \
        src/os/unix/ngx_user.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/os/unix/ngx_dlopen.o \
        src/os/unix/ngx_dlopen.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/os/unix/ngx_process_cycle.o \
        src/os/unix/ngx_process_cycle.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/os/unix/ngx_linux_init.o \
        src/os/unix/ngx_linux_init.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/event/modules/ngx_epoll_module.o \
        src/event/modules/ngx_epoll_module.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/os/unix/ngx_linux_sendfile_chain.o \
        src/os/unix/ngx_linux_sendfile_chain.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
        -o objs/src/core/ngx_regex.o \
        src/core/ngx_regex.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
        -o objs/src/http/ngx_http.o \
        src/http/ngx_http.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
        -o objs/src/http/ngx_http_core_module.o \
        src/http/ngx_http_core_module.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
        -o objs/src/http/ngx_http_special_response.o \
        src/http/ngx_http_special_response.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
        -o objs/src/http/ngx_http_request.o \
        src/http/ngx_http_request.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
        -o objs/src/http/ngx_http_parse.o \
        src/http/ngx_http_parse.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
        -o objs/src/http/modules/ngx_http_log_module.o \
        src/http/modules/ngx_http_log_module.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
        -o objs/src/http/ngx_http_request_body.o \
        src/http/ngx_http_request_body.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
        -o objs/src/http/ngx_http_variables.o \
        src/http/ngx_http_variables.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
        -o objs/src/http/ngx_http_script.o \
        src/http/ngx_http_script.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
        -o objs/src/http/ngx_http_upstream.o \
        src/http/ngx_http_upstream.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
        -o objs/src/http/ngx_http_upstream_round_robin.o \
        src/http/ngx_http_upstream_round_robin.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
        -o objs/src/http/ngx_http_file_cache.o \
        src/http/ngx_http_file_cache.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
        -o objs/src/http/ngx_http_write_filter_module.o \
        src/http/ngx_http_write_filter_module.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
        -o objs/src/http/ngx_http_header_filter_module.o \
        src/http/ngx_http_header_filter_module.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
        -o objs/src/http/modules/ngx_http_chunked_filter_module.o \
        src/http/modules/ngx_http_chunked_filter_module.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
        -o objs/src/http/modules/ngx_http_range_filter_module.o \
        src/http/modules/ngx_http_range_filter_module.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
        -o objs/src/http/modules/ngx_http_gzip_filter_module.o \
        src/http/modules/ngx_http_gzip_filter_module.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
        -o objs/src/http/ngx_http_postpone_filter_module.o \
        src/http/ngx_http_postpone_filter_module.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
        -o objs/src/http/modules/ngx_http_ssi_filter_module.o \
        src/http/modules/ngx_http_ssi_filter_module.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
        -o objs/src/http/modules/ngx_http_charset_filter_module.o \
        src/http/modules/ngx_http_charset_filter_module.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
        -o objs/src/http/modules/ngx_http_userid_filter_module.o \
        src/http/modules/ngx_http_userid_filter_module.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
        -o objs/src/http/modules/ngx_http_headers_filter_module.o \
        src/http/modules/ngx_http_headers_filter_module.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
        -o objs/src/http/ngx_http_copy_filter_module.o \
        src/http/ngx_http_copy_filter_module.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
        -o objs/src/http/modules/ngx_http_not_modified_filter_module.o \
        src/http/modules/ngx_http_not_modified_filter_module.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
        -o objs/src/http/modules/ngx_http_static_module.o \
        src/http/modules/ngx_http_static_module.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
        -o objs/src/http/modules/ngx_http_autoindex_module.o \
        src/http/modules/ngx_http_autoindex_module.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
        -o objs/src/http/modules/ngx_http_index_module.o \
        src/http/modules/ngx_http_index_module.c
^Cmake[1]: *** Deleting file `objs/src/http/modules/ngx_http_index_module.o'
make[1]: *** [objs/src/http/modules/ngx_http_index_module.o] Interrupt
make: *** [build] Interrupt

执行make install 命令

这里面暂时没有遇到过坑所以旧不记录了

# 执行make install(安装nginx)命令
[root@azang nginx21]# make install
# 安装信息
make -f objs/Makefile install
make[1]: Entering directory `/home/nginx21'
test -d '/usr/local/nginx' || mkdir -p '/usr/local/nginx'
test -d '/usr/local/nginx/sbin' \
        || mkdir -p '/usr/local/nginx/sbin'
test ! -f '/usr/local/nginx/sbin/nginx' \
        || mv '/usr/local/nginx/sbin/nginx' \
                '/usr/local/nginx/sbin/nginx.old'
cp objs/nginx '/usr/local/nginx/sbin/nginx'
test -d '/usr/local/nginx/conf' \
        || mkdir -p '/usr/local/nginx/conf'
cp conf/koi-win '/usr/local/nginx/conf'
cp conf/koi-utf '/usr/local/nginx/conf'
cp conf/win-utf '/usr/local/nginx/conf'
test -f '/usr/local/nginx/conf/mime.types' \
        || cp conf/mime.types '/usr/local/nginx/conf'
cp conf/mime.types '/usr/local/nginx/conf/mime.types.default'
test -f '/usr/local/nginx/conf/fastcgi_params' \
        || cp conf/fastcgi_params '/usr/local/nginx/conf'
cp conf/fastcgi_params \
        '/usr/local/nginx/conf/fastcgi_params.default'
test -f '/usr/local/nginx/conf/fastcgi.conf' \
        || cp conf/fastcgi.conf '/usr/local/nginx/conf'
cp conf/fastcgi.conf '/usr/local/nginx/conf/fastcgi.conf.default'
test -f '/usr/local/nginx/conf/uwsgi_params' \
        || cp conf/uwsgi_params '/usr/local/nginx/conf'
cp conf/uwsgi_params \
        '/usr/local/nginx/conf/uwsgi_params.default'
test -f '/usr/local/nginx/conf/scgi_params' \
        || cp conf/scgi_params '/usr/local/nginx/conf'
cp conf/scgi_params \
        '/usr/local/nginx/conf/scgi_params.default'
test -f '/usr/local/nginx/conf/nginx.conf' \
        || cp conf/nginx.conf '/usr/local/nginx/conf/nginx.conf'
cp conf/nginx.conf '/usr/local/nginx/conf/nginx.conf.default'
test -d '/usr/local/nginx/logs' \
        || mkdir -p '/usr/local/nginx/logs'
test -d '/usr/local/nginx/logs' \
        || mkdir -p '/usr/local/nginx/logs'
test -d '/usr/local/nginx/html' \
        || cp -R html '/usr/local/nginx'
test -d '/usr/local/nginx/logs' \
        || mkdir -p '/usr/local/nginx/logs'
make[1]: Leaving directory `/home/nginx21'

这里安装成功了

f’
|| mkdir -p ‘/usr/local/nginx/conf’
cp conf/koi-win ‘/usr/local/nginx/conf’
cp conf/koi-utf ‘/usr/local/nginx/conf’
cp conf/win-utf ‘/usr/local/nginx/conf’
test -f ‘/usr/local/nginx/conf/mime.types’
|| cp conf/mime.types ‘/usr/local/nginx/conf’
cp conf/mime.types ‘/usr/local/nginx/conf/mime.types.default’
test -f ‘/usr/local/nginx/conf/fastcgi_params’
|| cp conf/fastcgi_params ‘/usr/local/nginx/conf’
cp conf/fastcgi_params
‘/usr/local/nginx/conf/fastcgi_params.default’
test -f ‘/usr/local/nginx/conf/fastcgi.conf’
|| cp conf/fastcgi.conf ‘/usr/local/nginx/conf’
cp conf/fastcgi.conf ‘/usr/local/nginx/conf/fastcgi.conf.default’
test -f ‘/usr/local/nginx/conf/uwsgi_params’
|| cp conf/uwsgi_params ‘/usr/local/nginx/conf’
cp conf/uwsgi_params
‘/usr/local/nginx/conf/uwsgi_params.default’
test -f ‘/usr/local/nginx/conf/scgi_params’
|| cp conf/scgi_params ‘/usr/local/nginx/conf’
cp conf/scgi_params
‘/usr/local/nginx/conf/scgi_params.default’
test -f ‘/usr/local/nginx/conf/nginx.conf’
|| cp conf/nginx.conf ‘/usr/local/nginx/conf/nginx.conf’
cp conf/nginx.conf ‘/usr/local/nginx/conf/nginx.conf.default’
test -d ‘/usr/local/nginx/logs’
|| mkdir -p ‘/usr/local/nginx/logs’
test -d ‘/usr/local/nginx/logs’
|| mkdir -p ‘/usr/local/nginx/logs’
test -d ‘/usr/local/nginx/html’
|| cp -R html ‘/usr/local/nginx’
test -d ‘/usr/local/nginx/logs’
|| mkdir -p ‘/usr/local/nginx/logs’
make[1]: Leaving directory `/home/nginx21’


这里安装成功了

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

社畜阿藏405

挣点钱不丢人吧?

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值