技术标签: nginx 运维 中间件 服务器 vim centos
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压缩文件的目录中,后查看文件是否存在
[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
[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++ 的包
添加对应的包就好了,执行: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!
这就说明安装完了
# 这时候就可以安装成功了!!!
[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 编译
[root@azang nginx21]# make
-bash: make: command not found
(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.
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!
[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(安装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.6k次。安装配置gi、安装数据库软件、dbca建库见下:http://blog.csdn.net/kadwf123/article/details/784299611、检查集群节点及状态:[root@rac2 ~]# olsnodes -srac1 Activerac2 Activerac3 Activerac4 Active[root@rac2 ~]_12c查看crs状态
文章浏览阅读1.3w次,点赞45次,收藏99次。我个人用的是anaconda3的一个python集成环境,自带jupyter notebook,但在我打开jupyter notebook界面后,却找不到对应的虚拟环境,原来是jupyter notebook只是通用于下载anaconda时自带的环境,其他环境要想使用必须手动下载一些库:1.首先进入到自己创建的虚拟环境(pytorch是虚拟环境的名字)activate pytorch2.在该环境下下载这个库conda install ipykernelconda install nb__jupyter没有pytorch环境
文章浏览阅读5.2k次,点赞19次,收藏28次。选择scoop纯属意外,也是无奈,因为电脑用户被锁了管理员权限,所有exe安装程序都无法安装,只可以用绿色软件,最后被我发现scoop,省去了到处下载XXX绿色版的烦恼,当然scoop里需要管理员权限的软件也跟我无缘了(譬如everything)。推荐添加dorado这个bucket镜像,里面很多中文软件,但是部分国外的软件下载地址在github,可能无法下载。以上两个是官方bucket的国内镜像,所有软件建议优先从这里下载。上面可以看到很多bucket以及软件数。如果官网登陆不了可以试一下以下方式。_scoop-cn
文章浏览阅读4.5k次,点赞2次,收藏3次。首先要有一个color-picker组件 <el-color-picker v-model="headcolor"></el-color-picker>在data里面data() { return {headcolor: ’ #278add ’ //这里可以选择一个默认的颜色} }然后在你想要改变颜色的地方用v-bind绑定就好了,例如:这里的:sty..._vue el-color-picker
文章浏览阅读640次。基于芯片日益增长的问题,所以内核开发者们引入了新的方法,就是在内核中只保留函数,而数据则不包含,由用户(应用程序员)自己把数据按照规定的格式编写,并放在约定的地方,为了不占用过多的内存,还要求数据以根精简的方式编写。boot启动时,传参给内核,告诉内核设备树文件和kernel的位置,内核启动时根据地址去找到设备树文件,再利用专用的编译器去反编译dtb文件,将dtb还原成数据结构,以供驱动的函数去调用。firmware是三星的一个固件的设备信息,因为找不到固件,所以内核启动不成功。_exynos 4412 刷机
文章浏览阅读2w次,点赞24次,收藏42次。Linux系统配置jdkLinux学习教程,Linux入门教程(超详细)_linux配置jdk
文章浏览阅读3.3k次,点赞5次,收藏19次。xlabel('\delta');ylabel('AUC');具体符号的对照表参照下图:_matlab微米怎么输入
文章浏览阅读119次。顺序读写指的是按照文件中数据的顺序进行读取或写入。对于文本文件,可以使用fgets、fputs、fscanf、fprintf等函数进行顺序读写。在C语言中,对文件的操作通常涉及文件的打开、读写以及关闭。文件的打开使用fopen函数,而关闭则使用fclose函数。在C语言中,可以使用fread和fwrite函数进行二进制读写。 Biaoge 于2024-03-09 23:51发布 阅读量:7 ️文章类型:【 C语言程序设计 】在C语言中,用于打开文件的函数是____,用于关闭文件的函数是____。
文章浏览阅读3.4k次,点赞2次,收藏13次。跟随鼠标移动的粒子以grid(SOP)为partical(SOP)的资源模板,调整后连接【Geo组合+point spirit(MAT)】,在连接【feedback组合】适当调整。影响粒子动态的节点【metaball(SOP)+force(SOP)】添加mouse in(CHOP)鼠标位置到metaball的坐标,实现鼠标影响。..._touchdesigner怎么让一个模型跟着鼠标移动
文章浏览阅读178次。项目运行环境配置:Jdk1.8 + Tomcat7.0 + Mysql + HBuilderX(Webstorm也行)+ Eclispe(IntelliJ IDEA,Eclispe,MyEclispe,Sts都支持)。项目技术:Springboot + mybatis + Maven +mysql5.7或8.0+html+css+js等等组成,B/S模式 + Maven管理等等。环境需要1.运行环境:最好是java jdk 1.8,我们在这个平台上运行的。其他版本理论上也可以。_基于java技术的停车场管理系统实现与设计
文章浏览阅读3.5k次。前言对于MediaPlayer播放器的源码分析内容相对来说比较多,会从Java-&amp;gt;Jni-&amp;gt;C/C++慢慢分析,后面会慢慢更新。另外,博客只作为自己学习记录的一种方式,对于其他的不过多的评论。MediaPlayerDemopublic class MainActivity extends AppCompatActivity implements SurfaceHolder.Cal..._android多媒体播放源码分析 时序图
文章浏览阅读2.4k次,点赞41次,收藏13次。java 数据结构与算法 ——快速排序法_快速排序法