• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

linux下源码安装nginx

php 搞代码 3年前 (2022-01-23) 28次浏览 已收录 0个评论
文章目录[隐藏]

1. 下载 官网地址:http://nginx.org/
下载压缩包 http://nginx.org/download/nginx-1.8.0.tar.gz
2. 加载linux光盘,配置仓库

[root@chen ~]# ls -l /dev|grep cdromlrwxrwxrwx. 1 root root           3 1月   3 20:55 cdrom -> sr0crw-rw----. 1 root cdrom    21,   0 1月   3 20:55 sg0brw-rw----. 1 root cdrom    11,   0 1月   3 20:55 sr0[root@chen ~]# mount /dev/cdrom /mntmount: block device /dev/sr0 is write-protected, mounting read-only[root@chen ~]# cat /etc/yum.repos.d/CentOS-Media.repo # CentOS-Media.repo##  This repo can be used with mounted DVD media, verify the mount point for#  CentOS-6.  You can use this repo and yum to install items directly off the#  DVD ISO that we release.## To use this repo, put in your DVD and use it with the other repos too:#  yum --enablerepo=c6-media [command]#  # or for ONLY the media repo, do this:##  yum --disablerepo=\* --enablerepo=c6-media [command] [c6-media]name=CentOS-$releasever - Mediabaseurl=file:///mnt/gpgcheck=1enabled=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

3. 安装编译工具gcc等

[root@chen ~]# yum --disablerepo=\* --enablerepo=c6-media -y install gcc gcc-c++ autoconf automake已加载插件:fastestmirror, security设置安装进程Loading mirror speeds from cached hostfilec6-media                                                           | 4.0 kB     00:00 ... 包 gcc-4.4.7-11.el6.i686 已安装并且是最新版本解决依赖关系--> 执行事务检查---> Package autoconf.noarch 0:2.63-5.1.el6 will be 安装---> Package automake.noarch 0:1.11.1-4.el6 will be 安装---> Package gcc-c++.i686 0:4.4.7-11.el6 will be 安装--> 处理依赖关系 libstdc++-devel = 4.4.7-11.el6,它被软件包 gcc-c++-4.4.7-11.el6.i686 需要--> 执行事务检查---> Package libstdc++-devel.i686 0:4.4.7-11.el6 will be 安装--> 完成依赖关系计算依赖关系解决========================================================================================== 软件包                   架构            版本                    仓库               大小==========================================================================================正在安装: autoconf                 noarch          2.63-5.1.el6            c6-media          781 k automake                 noarch          1.11.1-4.el6            c6-media          550 k gcc-c++                  i686            4.4.7-11.el6            c6-media          4.3 M为依赖而安装: libstdc++-devel          i686            4.4.7-11.el6            c6-media          1.6 M事务概要==========================================================================================Install       4 Package(s)总下载量:7.2 MInstalled size: 22 M下载软件包:------------------------------------------------------------------------------------------总计                                                       30 MB/s | 7.2 MB     00:00     运行 rpm_check_debug 执行事务测试事务测试成功执行事务  正在安装   : autoconf-2.63-5.1.el6.noarch                                           1/4   正在安装   : libstdc++-devel-4.4.7-11.el6.i686                                      2/4   正在安装   : automake-1.11.1-4.el6.noarch                                           3/4   正在安装   : gcc-c++-4.4.7-11.el6.i686                                              4/4   Verifying  : gcc-c++-4.4.7-11.el6.i686                                              1/4   Verifying  : libstdc++-devel-4.4.7-11.el6.i686                                      2/4   Verifying  : autoconf-2.63-5.1.el6.noarch                                           3/4   Verifying  : automake-1.11.1-4.el6.noarch                                           4/4 已安装:  autoconf.noarch 0:2.63-5.1.el6              automake.noarch 0:1.11.1-4.el6               gcc-c++.i686 0:4.4.7-11.el6                作为依赖被安装:  libstdc++-devel.i686 0:4.4.7-11.el6                                                     完毕!

4. 安装zlib等支持库

[root@chen ~]# yum --disablerepo=\* --enablerepo=c6-media -y install zlib zlib-devel openssl openss-devel pcre-devel已加载插件:fastestmirror, security设置安装进程Loading mirror speeds from cached hostfile包 zlib-1.2.3-29.el6.i686 已安装并且是最新版本包 zlib-devel-1.2.3-29.el6.i686 已安装并且是最新版本包 openssl-1.0.1e-30.el6.i686 已安装并且是最新版本No package openss-devel available.解决依赖关系--> 执行事务检查---> Package pcre-devel.i686 0:7.8-6.el6 will be 安装--> 完成依赖关系计算依赖关系解决========================================================================================== 软件包                 架构             版本                  仓库                  大小==========================================================================================正在安装: pcre-devel             i686             7.8-6.el6             c6-media             318 k事务概要==========================================================================================Install       1 Package(s)总下载量:318 kInstalled size: 954 k下载软件包:运行 rpm_check_debug 执行事务测试事务测试成功执行事务  正在安装   : pcre-devel-7.8-6.el6.i686                                              1/1   Verifying  : pcre-devel-7.8-6.el6.i686                                              1/1 已安装:  pcre-devel.i686 0:7.8-6.el6                                                             完毕!

5. 上传压缩包到服务器,解压

[root@chen ~]# lsanaconda-ks.cfg  install.log  install.log.syslog  nginx-1.8.0.tar.gz[root@chen ~]# tar -zxvf  nginx-1.8.0.tar.gz nginx-1.8.0/nginx-1.8.0/auto/nginx-1.8.0/conf/nginx-1.8.0/contrib/nginx-1.8.0/src/nginx-1.8.0/configurenginx-1.8.0/LICENSEnginx-1.8.0/READMEnginx-1.8.0/html/nginx-1.8.0/man/nginx-1.8.0/CHANGES.runginx-1.8.0/CHANGESnginx-1.8.0/man/nginx.8nginx-1.8.0/html/50x.htmlnginx-1.8.0/html/index.htmlnginx-1.8.0/src/core/nginx-1.8.0/src/event/nginx-1.8.0/src/http/nginx-1.8.0/src/mail/nginx-1.8.0/src/misc/nginx-1.8.0/src/os/nginx-1.8.0/src/os/unix/nginx-1.8.0/src/os/unix/ngx_aio_read_chain.cnginx-1.8.0/src/os/unix/ngx_aio_read.cnginx-1.8.0/src/os/unix/ngx_aio_write_chain.cnginx-1.8.0/src/os/unix/ngx_aio_write.cnginx-1.8.0/src/os/unix/ngx_atomic.hnginx-1.8.0/src/os/unix/ngx_alloc.cnginx-1.8.0/src/os/unix/ngx_alloc.hnginx-1.8.0/src/os/unix/ngx_darwin_config.hnginx-1.8.0/src/os/unix/ngx_channel.cnginx-1.8.0/src/os/unix/ngx_channel.hnginx-1.8.0/src/os/unix/ngx_daemon.cnginx-1.8.0/src/os/unix/ngx_darwin.hnginx-1.8.0/src/os/unix/ngx_darwin_sendfile_chain.cnginx-1.8.0/src/os/unix/ngx_darwin_init.cnginx-1.8.0/src/os/unix/ngx_file_aio_read.cnginx-1.8.0/src/os/unix/ngx_errno.cnginx-1.8.0/src/os/unix/ngx_errno.hnginx-1.8.0/src/os/unix/ngx_freebsd.hnginx-1.8.0/src/os/unix/ngx_files.cnginx-1.8.0/src/os/unix/ngx_files.hnginx-1.8.0/src/os/unix/ngx_freebsd_sendfile_chain.cnginx-1.8.0/src/os/unix/ngx_freebsd_config.hnginx-1.8.0/src/os/unix/ngx_freebsd_init.cnginx-1.8.0/src/os/unix/ngx_gcc_atomic_sparc64.hnginx-1.8.0/src/os/unix/ngx_gcc_atomic_amd64.hnginx-1.8.0/src/os/unix/ngx_gcc_atomic_ppc.hnginx-1.8.0/src/os/unix/ngx_linux_sendfile_chain.cnginx-1.8.0/src/os/unix/ngx_gcc_atomic_x86.hnginx-1.8.0/src/os/unix/ngx_linux.hnginx-1.8.0/src/os/unix/ngx_linux_aio_read.cnginx-1.8.0/src/os/unix/ngx_linux_config.hnginx-1.8.0/src/os/unix/ngx_linux_init.cnginx-1.8.0/src/os/unix/ngx_posix_config.hnginx-1.8.0/src/os/unix/ngx_os.hnginx-1.8.0/src/os/unix/ngx_solaris_config.hnginx-1.8.0/src/os/unix/ngx_posix_init.cnginx-1.8.0/src/os/unix/ngx_process.cnginx-1.8.0/src/os/unix/ngx_process.hnginx-1.8.0/src/os/unix/ngx_process_cycle.cnginx-1.8.0/src/os/unix/ngx_process_cycle.hnginx-1.8.0/src/os/unix/ngx_readv_chain.cnginx-1.8.0/src/os/unix/ngx_recv.cnginx-1.8.0/src/os/unix/ngx_send.cnginx-1.8.0/src/os/unix/ngx_setaffinity.cnginx-1.8.0/src/os/unix/ngx_setaffinity.hnginx-1.8.0/src/os/unix/ngx_setproctitle.cnginx-1.8.0/src/os/unix/ngx_setproctitle.hnginx-1.8.0/src/os/unix/ngx_shmem.cnginx-1.8.0/src/os/unix/ngx_shmem.hnginx-1.8.0/src/os/unix/ngx_socket.cnginx-1.8.0/src/os/unix/ngx_socket.hnginx-1.8.0/src/os/unix/ngx_solaris.hnginx-1.8.0/src/os/unix/ngx_solaris_init.cnginx-1.8.0/src/os/unix/ngx_udp_recv.cnginx-1.8.0/src/os/unix/ngx_time.cnginx-1.8.0/src/os/unix/ngx_solaris_sendfilev_chain.cnginx-1.8.0/src/os/unix/ngx_sunpro_amd64.ilnginx-1.8.0/src/os/unix/ngx_sunpro_atomic_sparc64.hnginx-1.8.0/src/os/unix/ngx_sunpro_sparc64.ilnginx-1.8.0/src/os/unix/ngx_sunpro_x86.ilnginx-1.8.0/src/os/unix/ngx_thread.hnginx-1.8.0/src/os/unix/ngx_thread_cond.cnginx-1.8.0/src/os/unix/ngx_thread_id.cnginx-1.8.0/src/os/unix/ngx_thread_mutex.cnginx-1.8.0/src/os/unix/ngx_time.hnginx-1.8.0/src/os/unix/ngx_writev_chain.cnginx-1.8.0/src/os/unix/ngx_user.cnginx-1.8.0/src/os/unix/ngx_user.hnginx-1.8.0/src/misc/ngx_google_perftools_module.cnginx-1.8.0/src/misc/ngx_cpp_test_module.cppnginx-1.8.0/src/mail/ngx_mail_handler.cnginx-1.8.0/src/mail/ngx_mail.cnginx-1.8.0/src/mail/ngx_mail.hnginx-1.8.0/src/mail/ngx_mail_auth_http_module.cnginx-1.8.0/src/mail/ngx_mail_core_module.cnginx-1.8.0/src/mail/ngx_mail_imap_handler.cnginx-1.8.0/src/mail/ngx_mail_imap_module.cnginx-1.8.0/src/mail/ngx_mail_imap_module.hnginx-1.8.0/src/mail/ngx_mail_parse.cnginx-1.8.0/src/mail/ngx_mail_pop3_handler.cnginx-1.8.0/src/mail/ngx_mail_pop3_module.cnginx-1.8.0/src/mail/ngx_mail_pop3_module.hnginx-1.8.0/src/mail/ngx_mail_proxy_module.cnginx-1.8.0/src/mail/ngx_mail_smtp_handler.cnginx-1.8.0/src/mail/ngx_mail_smtp_module.cnginx-1.8.0/src/mail/ngx_mail_smtp_module.hnginx-1.8.0/src/mail/ngx_mail_ssl_module.cnginx-1.8.0/src/mail/ngx_mail_ssl_module.hnginx-1.8.0/src/http/modules/nginx-1.8.0/src/http/ngx_http_cache.hnginx-1.8.0/src/http/ngx_http.cnginx-1.8.0/src/http/ngx_http.hnginx-1.8.0/src/http/ngx_http_core_module.cnginx-1.8.0/src/http/ngx_http_config.hnginx-1.8.0/src/http/ngx_http_postpone_filter_module.cnginx-1.8.0/src/http/ngx_http_copy_filter_module.cnginx-1.8.0/src/http/ngx_http_core_module.hnginx-1.8.0/src/http/ngx_http_file_cache.cnginx-1.8.0/src/http/ngx_http_header_filter_module.cnginx-1.8.0/src/http/ngx_http_parse.cnginx-1.8.0/src/http/ngx_http_parse_time.cnginx-1.8.0/src/http/ngx_http_request.cnginx-1.8.0/src/http/ngx_http_request.hnginx-1.8.0/src/http/ngx_http_spdy_filter_module.cnginx-1.8.0/src/http/ngx_http_request_body.cnginx-1.8.0/src/http/ngx_http_script.cnginx-1.8.0/src/http/ngx_http_script.hnginx-1.8.0/src/http/ngx_http_spdy.cnginx-1.8.0/src/http/ngx_http_spdy.hnginx-1.8.0/src/http/ngx_http_special_response.cnginx-1.8.0/src/http/ngx_http_spdy_module.cnginx-1.8.0/src/http/ngx_http_spdy_module.hnginx-1.8.0/src/http/ngx_http_variables.cnginx-1.8.0/src/http/ngx_http_upstream.cnginx-1.8.0/src/http/ngx_http_upstream.hnginx-1.8.0/src/http/ngx_http_upstream_round_robin.cnginx-1.8.0/src/http/ngx_http_upstream_round_robin.hnginx-1.8.0/src/http/ngx_http_variables.hnginx-1.8.0/src/http/ngx_http_write_filter_module.cnginx-1.8.0/src/http/modules/ngx_http_addition_filter_module.cnginx-1.8.0/src/http/modules/ngx_http_access_module.cnginx-1.8.0/src/http/modules/ngx_http_charset_filter_module.cnginx-1.8.0/src/http/modules/ngx_http_auth_basic_module.cnginx-1.8.0/src/http/modules/ngx_http_auth_request_module.cnginx-1.8.0/src/http/modules/ngx_http_autoindex_module.cnginx-1.8.0/src/http/modules/ngx_http_browser_module.cnginx-1.8.0/src/http/modules/ngx_http_not_modified_filter_module.cnginx-1.8.0/src/http/modules/ngx_http_chunked_filter_module.cnginx-1.8.0/src/http/modules/ngx_http_dav_module.cnginx-1.8.0/src/http/modules/ngx_http_degradation_module.cnginx-1.8.0/src/http/modules/ngx_http_empty_gif_module.cnginx-1.8.0/src/http/modules/ngx_http_fastcgi_module.cnginx-1.8.0/src/http/modules/ngx_http_flv_module.cnginx-1.8.0/src/http/modules/ngx_http_geo_module.cnginx-1.8.0/src/http/modules/ngx_http_geoip_module.cnginx-1.8.0/src/http/modules/ngx_http_gunzip_filter_module.cnginx-1.8.0/src/http/modules/ngx_http_gzip_filter_module.cnginx-1.8.0/src/http/modules/ngx_http_gzip_static_module.cnginx-1.8.0/src/http/modules/ngx_http_headers_filter_module.cnginx-1.8.0/src/http/modules/ngx_http_image_filter_module.cnginx-1.8.0/src/http/modules/ngx_http_index_module.cnginx-1.8.0/src/http/modules/ngx_http_limit_conn_module.cnginx-1.8.0/src/http/modules/ngx_http_limit_req_module.cnginx-1.8.0/src/http/modules/ngx_http_log_module.cnginx-1.8.0/src/http/modules/ngx_http_map_module.cnginx-1.8.0/src/http/modules/ngx_http_memcached_module.cnginx-1.8.0/src/http/modules/ngx_http_mp4_module.cnginx-1.8.0/src/http/modules/ngx_http_random_index_module.cnginx-1.8.0/src/http/modules/ngx_http_proxy_module.cnginx-1.8.0/src/http/modules/ngx_http_upstream_ip_hash_module.cnginx-1.8.0/src/http/modules/ngx_http_range_filter_module.cnginx-1.8.0/src/http/modules/ngx_http_realip_module.cnginx-1.8.0/src/http/modules/ngx_http_referer_module.cnginx-1.8.0/src/http/modules/ngx_http_rewrite_module.cnginx-1.8.0/src/http/modules/ngx_http_scgi_module.cnginx-1.8.0/src/http/modules/ngx_http_secure_link_module.cnginx-1.8.0/src/http/modules/ngx_http_split_clients_module.cnginx-1.8.0/src/http/modules/ngx_http_ssi_filter_module.cnginx-1.8.0/src/http/modules/perl/nginx-1.8.0/src/http/modules/ngx_http_ssi_filter_module.hnginx-1.8.0/src/http/modules/ngx_http_ssl_module.cnginx-1.8.0/src/http/modules/ngx_http_ssl_module.hnginx-1.8.0/src/http/modules/ngx_http_static_module.cnginx-1.8.0/src/http/modules/ngx_http_stub_status_module.cnginx-1.8.0/src/http/modules/ngx_http_sub_filter_module.cnginx-1.8.0/src/http/modules/ngx_http_upstream_hash_module.cnginx-1.8.0/src/http/modules/ngx_http_upstream_keepalive_module.cnginx-1.8.0/src/http/modules/ngx_http_upstream_least_conn_module.cnginx-1.8.0/src/http/modules/ngx_http_userid_filter_module.cnginx-1.8.0/src/http/modules/ngx_http_uwsgi_module.cnginx-1.8.0/src/http/modules/ngx_http_xslt_filter_module.cnginx-1.8.0/src/http/modules/perl/Makefile.PLnginx-1.8.0/src/http/modules/perl/nginx.pmnginx-1.8.0/src/http/modules/perl/nginx.xsnginx-1.8.0/src/http/modules/perl/typemapnginx-1.8.0/src/http/modules/perl/ngx_http_perl_module.cnginx-1.8.0/src/http/modules/perl/ngx_http_perl_module.hnginx-1.8.0/src/event/modules/nginx-1.8.0/src/event/ngx_event_accept.cnginx-1.8.0/src/event/ngx_event.cnginx-1.8.0/src/event/ngx_event.hnginx-1.8.0/src/event/ngx_event_openssl_stapling.cnginx-1.8.0/src/event/ngx_event_connect.cnginx-1.8.0/src/event/ngx_event_connect.hnginx-1.8.0/src/event/ngx_event_openssl.cnginx-1.8.0/src/event/ngx_event_openssl.hnginx-1.8.0/src/event/ngx_event_pipe.cnginx-1.8.0/src/event/ngx_event_pipe.hnginx-1.8.0/src/event/ngx_event_posted.cnginx-1.8.0/src/event/ngx_event_posted.hnginx-1.8.0/src/event/ngx_event_timer.cnginx-1.8.0/src/event/ngx_event_timer.hnginx-1.8.0/src/event/modules/ngx_devpoll_module.cnginx-1.8.0/src/event/modules/ngx_aio_module.cnginx-1.8.0/src/event/modules/ngx_eventport_module.cnginx-1.8.0/src/event/modules/ngx_epoll_module.cnginx-1.8.0/src/event/modules/ngx_win32_select_module.cnginx-1.8.0/src/event/modules/ngx_kqueue_module.cnginx-1.8.0/src/event/modules/ngx_poll_module.cnginx-1.8.0/src/event/modules/ngx_rtsig_module.cnginx-1.8.0/src/event/modules/ngx_select_module.cnginx-1.8.0/src/core/ngx_array.cnginx-1.8.0/src/core/nginx.cnginx-1.8.0/src/core/nginx.hnginx-1.8.0/src/core/ngx_conf_file.cnginx-1.8.0/src/core/ngx_array.hnginx-1.8.0/src/core/ngx_buf.cnginx-1.8.0/src/core/ngx_buf.hnginx-1.8.0/src/core/ngx_connection.cnginx-1.8.0/src/core/ngx_conf_file.hnginx-1.8.0/src/core/ngx_config.hnginx-1.8.0/src/core/ngx_murmurhash.cnginx-1.8.0/src/core/ngx_file.cnginx-1.8.0/src/core/ngx_connection.hnginx-1.8.0/src/core/ngx_core.hnginx-1.8.0/src/core/ngx_cpuinfo.cnginx-1.8.0/src/core/ngx_crc.hnginx-1.8.0/src/core/ngx_crc32.cnginx-1.8.0/src/core/ngx_crc32.hnginx-1.8.0/src/core/ngx_crypt.cnginx-1.8.0/src/core/ngx_crypt.hnginx-1.8.0/src/core/ngx_cycle.cnginx-1.8.0/src/core/ngx_cycle.hnginx-1.8.0/src/core/ngx_file.hnginx-1.8.0/src/core/ngx_hash.cnginx-1.8.0/src/core/ngx_hash.hnginx-1.8.0/src/core/ngx_inet.cnginx-1.8.0/src/core/ngx_inet.hnginx-1.8.0/src/core/ngx_list.cnginx-1.8.0/src/core/ngx_list.hnginx-1.8.0/src/core/ngx_log.cnginx-1.8.0/src/core/ngx_log.hnginx-1.8.0/src/core/ngx_md5.cnginx-1.8.0/src/core/ngx_md5.hnginx-1.8.0/src/core/ngx_open_file_cache.cnginx-1.8.0/src/core/ngx_murmurhash.hnginx-1.8.0/src/core/ngx_open_file_cache.hnginx-1.8.0/src/core/ngx_output_chain.cnginx-1.8.0/src/core/ngx_palloc.cnginx-1.8.0/src/core/ngx_palloc.hnginx-1.8.0/src/core/ngx_parse.cnginx-1.8.0/src/core/ngx_parse.hnginx-1.8.0/src/core/ngx_proxy_protocol.cnginx-1.8.0/src/core/ngx_proxy_protocol.hnginx-1.8.0/src/core/ngx_queue.cnginx-1.8.0/src/core/ngx_queue.hnginx-1.8.0/src/core/ngx_radix_tree.cnginx-1.8.0/src/core/ngx_radix_tree.hnginx-1.8.0/src/core/ngx_rbtree.cnginx-1.8.0/src/core/ngx_rbtree.hnginx-1.8.0/src/core/ngx_regex.cnginx-1.8.0/src/core/ngx_regex.hnginx-1.8.0/src/core/ngx_resolver.cnginx-1.8.0/src/core/ngx_resolver.hnginx-1.8.0/src/core/ngx_sha1.hnginx-1.8.0/src/core/ngx_shmtx.cnginx-1.8.0/src/core/ngx_shmtx.hnginx-1.8.0/src/core/ngx_slab.cnginx-1.8.0/src/core/ngx_slab.hnginx-1.8.0/src/core/ngx_spinlock.cnginx-1.8.0/src/core/ngx_string.cnginx-1.8.0/src/core/ngx_string.hnginx-1.8.0/src/core/ngx_syslog.cnginx-1.8.0/src/core/ngx_syslog.hnginx-1.8.0/src/core/ngx_thread_pool.cnginx-1.8.0/src/core/ngx_thread_pool.hnginx-1.8.0/src/core/ngx_times.cnginx-1.8.0/src/core/ngx_times.hnginx-1.8.0/contrib/geo2nginx.plnginx-1.8.0/contrib/READMEnginx-1.8.0/contrib/unicode2nginx/nginx-1.8.0/contrib/vim/nginx-1.8.0/contrib/vim/ftdetect/nginx-1.8.0/contrib/vim/indent/nginx-1.8.0/contrib/vim/syntax/nginx-1.8.0/contrib/vim/syntax/nginx.vimnginx-1.8.0/contrib/vim/indent/nginx.vimnginx-1.8.0/contrib/vim/ftdetect/nginx.vimnginx-1.8.0/contrib/unicode2nginx/koi-utfnginx-1.8.0/contrib/unicode2nginx/win-utfnginx-1.8.0/contrib/unicode2nginx/unicode-to-nginx.plnginx-1.8.0/conf/fastcgi.confnginx-1.8.0/conf/fastcgi_paramsnginx-1.8.0/conf/koi-utfnginx-1.8.0/conf/koi-winnginx-1.8.0/conf/mime.typesnginx-1.8.0/conf/nginx.confnginx-1.8.0/conf/scgi_paramsnginx-1.8.0/conf/uwsgi_paramsnginx-1.8.0/conf/win-utfnginx-1.8.0/auto/cc/nginx-1.8.0/auto/have_headersnginx-1.8.0/auto/definenginx-1.8.0/auto/endiannessnginx-1.8.0/auto/featurenginx-1.8.0/auto/havenginx-1.8.0/auto/lib/nginx-1.8.0/auto/os/nginx-1.8.0/auto/headersnginx-1.8.0/auto/includenginx-1.8.0/auto/initnginx-1.8.0/auto/installnginx-1.8.0/auto/types/nginx-1.8.0/auto/makenginx-1.8.0/auto/modulesnginx-1.8.0/auto/nohavenginx-1.8.0/auto/optionsnginx-1.8.0/auto/sourcesnginx-1.8.0/auto/stubsnginx-1.8.0/auto/summarynginx-1.8.0/auto/threadsnginx-1.8.0/auto/unixnginx-1.8.0/auto/types/uintptr_tnginx-1.8.0/auto/types/sizeofnginx-1.8.0/auto/types/typedefnginx-1.8.0/auto/types/valuenginx-1.8.0/auto/os/confnginx-1.8.0/auto/os/darwinnginx-1.8.0/auto/os/freebsdnginx-1.8.0/auto/os/linuxnginx-1.8.0/auto/os/solarisnginx-1.8.0/auto/os/win32nginx-1.8.0/auto/lib/geoip/nginx-1.8.0/auto/lib/本文来源gao@!dai!ma.com搞$$代^@码!网!搞gaodaima代码confnginx-1.8.0/auto/lib/google-perftools/nginx-1.8.0/auto/lib/libatomic/nginx-1.8.0/auto/lib/libgd/nginx-1.8.0/auto/lib/libxslt/nginx-1.8.0/auto/lib/md5/nginx-1.8.0/auto/lib/makenginx-1.8.0/auto/lib/openssl/nginx-1.8.0/auto/lib/pcre/nginx-1.8.0/auto/lib/perl/nginx-1.8.0/auto/lib/sha1/nginx-1.8.0/auto/lib/zlib/nginx-1.8.0/auto/lib/testnginx-1.8.0/auto/lib/zlib/makefile.bccnginx-1.8.0/auto/lib/zlib/confnginx-1.8.0/auto/lib/zlib/makenginx-1.8.0/auto/lib/zlib/makefile.msvcnginx-1.8.0/auto/lib/zlib/makefile.owcnginx-1.8.0/auto/lib/sha1/makefile.bccnginx-1.8.0/auto/lib/sha1/confnginx-1.8.0/auto/lib/sha1/makenginx-1.8.0/auto/lib/sha1/makefile.msvcnginx-1.8.0/auto/lib/sha1/makefile.owcnginx-1.8.0/auto/lib/perl/confnginx-1.8.0/auto/lib/perl/makenginx-1.8.0/auto/lib/pcre/makefile.bccnginx-1.8.0/auto/lib/pcre/confnginx-1.8.0/auto/lib/pcre/makenginx-1.8.0/auto/lib/pcre/makefile.msvcnginx-1.8.0/auto/lib/pcre/makefile.owcnginx-1.8.0/auto/lib/openssl/makefile.bccnginx-1.8.0/auto/lib/openssl/confnginx-1.8.0/auto/lib/openssl/makenginx-1.8.0/auto/lib/openssl/makefile.msvcnginx-1.8.0/auto/lib/md5/makefile.bccnginx-1.8.0/auto/lib/md5/confnginx-1.8.0/auto/lib/md5/makenginx-1.8.0/auto/lib/md5/makefile.msvcnginx-1.8.0/auto/lib/md5/makefile.owcnginx-1.8.0/auto/lib/libxslt/confnginx-1.8.0/auto/lib/libgd/confnginx-1.8.0/auto/lib/libatomic/confnginx-1.8.0/auto/lib/libatomic/makenginx-1.8.0/auto/lib/google-perftools/confnginx-1.8.0/auto/lib/geoip/confnginx-1.8.0/auto/cc/clangnginx-1.8.0/auto/cc/accnginx-1.8.0/auto/cc/bccnginx-1.8.0/auto/cc/cccnginx-1.8.0/auto/cc/confnginx-1.8.0/auto/cc/gccnginx-1.8.0/auto/cc/iccnginx-1.8.0/auto/cc/msvcnginx-1.8.0/auto/cc/namenginx-1.8.0/auto/cc/owcnginx-1.8.0/auto/cc/sunc

6. 配置nginx

[root@chen ~]# cd nginx-1.8.0[root@chen nginx-1.8.0]#  ./configure --prefix=/usr --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --pid-path=/var/run/nginx/nginx.pid --lock-path=/var/lock/niginx.lock --user=root --group=root --with-http_ssl_module --with-http_flv_module --with-http_gzip_static_module --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/tmp/nginx/client --http-proxy-temp-path=/var/tmp/nginx/proxy --http-fastcgi-temp-path=/var/temp/nginx/fcgi --with-http_stub_status_modulechecking for OS + Linux 2.6.32-504.el6.i686 i686checking for C compiler ... found + using GNU C compiler + gcc version: 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC) checking for gcc -pipe switch ... foundchecking for gcc builtin atomic operations ... foundchecking for C99 variadic macros ... foundchecking for gcc variadic macros ... foundchecking for unistd.h ... foundchecking for inttypes.h ... foundchecking for limits.h ... foundchecking for sys/filio.h ... not foundchecking for sys/param.h ... foundchecking for sys/mount.h ... foundchecking for sys/statvfs.h ... foundchecking for crypt.h ... foundchecking for Linux specific featureschecking for epoll ... foundchecking for EPOLLRDHUP ... foundchecking for O_PATH ... not foundchecking for sendfile() ... foundchecking for sendfile64() ... foundchecking for sys/prctl.h ... foundchecking for prctl(PR_SET_DUMPABLE) ... foundchecking for sched_setaffinity() ... foundchecking for crypt_r() ... foundchecking for sys/vfs.h ... foundchecking for poll() ... foundchecking for /dev/poll ... not foundchecking for kqueue ... not foundchecking for crypt() ... not foundchecking for crypt() in libcrypt ... foundchecking for F_READAHEAD ... not foundchecking for posix_fadvise() ... foundchecking for O_DIRECT ... foundchecking for F_NOCACHE ... not foundchecking for directio() ... not foundchecking for statfs() ... foundchecking for statvfs() ... foundchecking for dlopen() ... not foundchecking for dlopen() in libdl ... foundchecking for sched_yield() ... foundchecking for SO_SETFIB ... not foundchecking for SO_ACCEPTFILTER ... not foundchecking for TCP_DEFER_ACCEPT ... foundchecking for TCP_KEEPIDLE ... foundchecking for TCP_FASTOPEN ... not foundchecking for TCP_INFO ... foundchecking for accept4() ... foundchecking for eventfd() ... foundchecking for int size ... 4 byteschecking for long size ... 4 byteschecking for long long size ... 8 byteschecking for void * size ... 4 byteschecking for uint64_t ... foundchecking for sig_atomic_t ... foundchecking for sig_atomic_t size ... 4 byteschecking for socklen_t ... foundchecking for in_addr_t ... foundchecking for in_port_t ... foundchecking for rlim_t ... foundchecking for uintptr_t ... uintptr_t foundchecking for system byte ordering ... little endianchecking for size_t size ... 4 byteschecking for off_t size ... 8 byteschecking for time_t size ... 4 byteschecking for setproctitle() ... not foundchecking for pread() ... foundchecking for pwrite() ... foundchecking for sys_nerr ... foundchecking for localtime_r() ... foundchecking for posix_memalign() ... foundchecking for memalign() ... foundchecking for mmap(MAP_ANON|MAP_SHARED) ... foundchecking for mmap("/dev/zero", MAP_SHARED) ... foundchecking for System V shared memory ... foundchecking for POSIX semaphores ... not foundchecking for POSIX semaphores in libpthread ... foundchecking for struct msghdr.msg_control ... foundchecking for ioctl(FIONBIO) ... foundchecking for struct tm.tm_gmtoff ... foundchecking for struct dirent.d_namlen ... not foundchecking for struct dirent.d_type ... foundchecking for sysconf(_SC_NPROCESSORS_ONLN) ... foundchecking for openat(), fstatat() ... foundchecking for getaddrinfo() ... foundchecking for PCRE library ... foundchecking for PCRE JIT support ... not foundchecking for OpenSSL library ... foundchecking for zlib library ... foundcreating objs/MakefileConfiguration summary  + using system PCRE library  + using system OpenSSL library  + md5: using OpenSSL library  + sha1: using OpenSSL library  + using system zlib library  nginx path prefix: "/usr"  nginx binary file: "/usr/sbin/nginx"  nginx configuration prefix: "/etc/nginx"  nginx configuration file: "/etc/nginx/nginx.conf"  nginx pid file: "/var/run/nginx/nginx.pid"  nginx error log file: "/var/log/nginx/error.log"  nginx http access log file: "/var/log/nginx/access.log"  nginx http client request body temporary files: "/var/tmp/nginx/client"  nginx http proxy temporary files: "/var/tmp/nginx/proxy"  nginx http fastcgi temporary files: "/var/temp/nginx/fcgi"  nginx http uwsgi temporary files: "uwsgi_temp"  nginx http scgi temporary files: "scgi_temp"

7. 编译内核

[root@chen nginx-1.8.0]# make && make installmake -f objs/Makefilemake[1]: Entering directory `/root/nginx-1.8.0'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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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_openssl.o \		src/event/ngx_event_openssl.ccc -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_openssl_stapling.o \		src/event/ngx_event_openssl_stapling.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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_time.o \		src/http/ngx_http_parse_time.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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.ccc -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_static_module.o \		src/http/modules/ngx_http_gzip_static_module.ccc -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.ccc -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_auth_basic_module.o \		src/http/modules/ngx_http_auth_basic_module.ccc -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_access_module.o \		src/http/modules/ngx_http_access_module.ccc -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_limit_conn_module.o \		src/http/modules/ngx_http_limit_conn_module.ccc -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_limit_req_module.o \		src/http/modules/ngx_http_limit_req_module.ccc -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_geo_module.o \		src/http/modules/ngx_http_geo_module.ccc -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_map_module.o \		src/http/modules/ngx_http_map_module.ccc -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_split_clients_module.o \		src/http/modules/ngx_http_split_clients_module.ccc -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_referer_module.o \		src/http/modules/ngx_http_referer_module.ccc -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_rewrite_module.o \		src/http/modules/ngx_http_rewrite_module.ccc -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_ssl_module.o \		src/http/modules/ngx_http_ssl_module.ccc -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_proxy_module.o \		src/http/modules/ngx_http_proxy_module.ccc -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_fastcgi_module.o \		src/http/modules/ngx_http_fastcgi_module.ccc -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_uwsgi_module.o \		src/http/modules/ngx_http_uwsgi_module.ccc -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_scgi_module.o \		src/http/modules/ngx_http_scgi_module.ccc -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_memcached_module.o \		src/http/modules/ngx_http_memcached_module.ccc -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_empty_gif_module.o \		src/http/modules/ngx_http_empty_gif_module.ccc -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_browser_module.o \		src/http/modules/ngx_http_browser_module.ccc -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_flv_module.o \		src/http/modules/ngx_http_flv_module.ccc -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_upstream_hash_module.o \		src/http/modules/ngx_http_upstream_hash_module.ccc -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_upstream_ip_hash_module.o \		src/http/modules/ngx_http_upstream_ip_hash_module.ccc -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_upstream_least_conn_module.o \		src/http/modules/ngx_http_upstream_least_conn_module.ccc -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_upstream_keepalive_module.o \		src/http/modules/ngx_http_upstream_keepalive_module.ccc -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_stub_status_module.o \		src/http/modules/ngx_http_stub_status_module.ccc -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/ngx_modules.o \		objs/ngx_modules.ccc -o objs/nginx \	objs/src/core/nginx.o \	objs/src/core/ngx_log.o \	objs/src/core/ngx_palloc.o \	objs/src/core/ngx_array.o \	objs/src/core/ngx_list.o \	objs/src/core/ngx_hash.o \	objs/src/core/ngx_buf.o \	objs/src/core/ngx_queue.o \	objs/src/core/ngx_output_chain.o \	objs/src/core/ngx_string.o \	objs/src/core/ngx_parse.o \	objs/src/core/ngx_inet.o \	objs/src/core/ngx_file.o \	objs/src/core/ngx_crc32.o \	objs/src/core/ngx_murmurhash.o \	objs/src/core/ngx_md5.o \	objs/src/core/ngx_rbtree.o \	objs/src/core/ngx_radix_tree.o \	objs/src/core/ngx_slab.o \	objs/src/core/ngx_times.o \	objs/src/core/ngx_shmtx.o \	objs/src/core/ngx_connection.o \	objs/src/core/ngx_cycle.o \	objs/src/core/ngx_spinlock.o \	objs/src/core/ngx_cpuinfo.o \	objs/src/core/ngx_conf_file.o \	objs/src/core/ngx_resolver.o \	objs/src/core/ngx_open_file_cache.o \	objs/src/core/ngx_crypt.o \	objs/src/core/ngx_proxy_protocol.o \	objs/src/core/ngx_syslog.o \	objs/src/event/ngx_event.o \	objs/src/event/ngx_event_timer.o \	objs/src/event/ngx_event_posted.o \	objs/src/event/ngx_event_accept.o \	objs/src/event/ngx_event_connect.o \	objs/src/event/ngx_event_pipe.o \	objs/src/os/unix/ngx_time.o \	objs/src/os/unix/ngx_errno.o \	objs/src/os/unix/ngx_alloc.o \	objs/src/os/unix/ngx_files.o \	objs/src/os/unix/ngx_socket.o \	objs/src/os/unix/ngx_recv.o \	objs/src/os/unix/ngx_readv_chain.o \	objs/src/os/unix/ngx_udp_recv.o \	objs/src/os/unix/ngx_send.o \	objs/src/os/unix/ngx_writev_chain.o \	objs/src/os/unix/ngx_channel.o \	objs/src/os/unix/ngx_shmem.o \	objs/src/os/unix/ngx_process.o \	objs/src/os/unix/ngx_daemon.o \	objs/src/os/unix/ngx_setaffinity.o \	objs/src/os/unix/ngx_setproctitle.o \	objs/src/os/unix/ngx_posix_init.o \	objs/src/os/unix/ngx_user.o \	objs/src/os/unix/ngx_process_cycle.o \	objs/src/os/unix/ngx_linux_init.o \	objs/src/event/modules/ngx_epoll_module.o \	objs/src/os/unix/ngx_linux_sendfile_chain.o \	objs/src/event/ngx_event_openssl.o \	objs/src/event/ngx_event_openssl_stapling.o \	objs/src/core/ngx_regex.o \	objs/src/http/ngx_http.o \	objs/src/http/ngx_http_core_module.o \	objs/src/http/ngx_http_special_response.o \	objs/src/http/ngx_http_request.o \	objs/src/http/ngx_http_parse.o \	objs/src/http/ngx_http_header_filter_module.o \	objs/src/http/ngx_http_write_filter_module.o \	objs/src/http/ngx_http_copy_filter_module.o \	objs/src/http/modules/ngx_http_log_module.o \	objs/src/http/ngx_http_request_body.o \	objs/src/http/ngx_http_variables.o \	objs/src/http/ngx_http_script.o \	objs/src/http/ngx_http_upstream.o \	objs/src/http/ngx_http_upstream_round_robin.o \	objs/src/http/ngx_http_parse_time.o \	objs/src/http/modules/ngx_http_static_module.o \	objs/src/http/modules/ngx_http_index_module.o \	objs/src/http/modules/ngx_http_chunked_filter_module.o \	objs/src/http/modules/ngx_http_range_filter_module.o \	objs/src/http/modules/ngx_http_headers_filter_module.o \	objs/src/http/modules/ngx_http_not_modified_filter_module.o \	objs/src/http/ngx_http_file_cache.o \	objs/src/http/modules/ngx_http_gzip_filter_module.o \	objs/src/http/ngx_http_postpone_filter_module.o \	objs/src/http/modules/ngx_http_ssi_filter_module.o \	objs/src/http/modules/ngx_http_charset_filter_module.o \	objs/src/http/modules/ngx_http_userid_filter_module.o \	objs/src/http/modules/ngx_http_gzip_static_module.o \	objs/src/http/modules/ngx_http_autoindex_module.o \	objs/src/http/modules/ngx_http_auth_basic_module.o \	objs/src/http/modules/ngx_http_access_module.o \	objs/src/http/modules/ngx_http_limit_conn_module.o \	objs/src/http/modules/ngx_http_limit_req_module.o \	objs/src/http/modules/ngx_http_geo_module.o \	objs/src/http/modules/ngx_http_map_module.o \	objs/src/http/modules/ngx_http_split_clients_module.o \	objs/src/http/modules/ngx_http_referer_module.o \	objs/src/http/modules/ngx_http_rewrite_module.o \	objs/src/http/modules/ngx_http_ssl_module.o \	objs/src/http/modules/ngx_http_proxy_module.o \	objs/src/http/modules/ngx_http_fastcgi_module.o \	objs/src/http/modules/ngx_http_uwsgi_module.o \	objs/src/http/modules/ngx_http_scgi_module.o \	objs/src/http/modules/ngx_http_memcached_module.o \	objs/src/http/modules/ngx_http_empty_gif_module.o \	objs/src/http/modules/ngx_http_browser_module.o \	objs/src/http/modules/ngx_http_flv_module.o \	objs/src/http/modules/ngx_http_upstream_hash_module.o \	objs/src/http/modules/ngx_http_upstream_ip_hash_module.o \	objs/src/http/modules/ngx_http_upstream_least_conn_module.o \	objs/src/http/modules/ngx_http_upstream_keepalive_module.o \	objs/src/http/modules/ngx_http_stub_status_module.o \	objs/ngx_modules.o \	-lpthread -lcrypt -lpcre -lssl -lcrypto -ldl -lzmake[1]: Leaving directory `/root/nginx-1.8.0'make -f objs/Makefile manpagemake[1]: Entering directory `/root/nginx-1.8.0'sed -e "s|%%PREFIX%%|/usr|" \		-e "s|%%PID_PATH%%|/var/run/nginx/nginx.pid|" \		-e "s|%%CONF_PATH%%|/etc/nginx/nginx.conf|" \		-e "s|%%ERROR_LOG_PATH%%|/var/log/nginx/error.log|" \		 objs/nginx.8make[1]: Leaving directory `/root/nginx-1.8.0'make -f objs/Makefile installmake[1]: Entering directory `/root/nginx-1.8.0'test -d '/usr' || mkdir -p '/usr'test -d '/usr/sbin' 		|| mkdir -p '/usr/sbin'test ! -f '/usr/sbin/nginx' 		|| mv '/usr/sbin/nginx' 			'/usr/sbin/nginx.old'cp objs/nginx '/usr/sbin/nginx'test -d '/etc/nginx' 		|| mkdir -p '/etc/nginx'cp conf/koi-win '/etc/nginx'cp conf/koi-utf '/etc/nginx'cp conf/win-utf '/etc/nginx'test -f '/etc/nginx/mime.types' 		|| cp conf/mime.types '/etc/nginx'cp conf/mime.types '/etc/nginx/mime.types.default'test -f '/etc/nginx/fastcgi_params' 		|| cp conf/fastcgi_params '/etc/nginx'cp conf/fastcgi_params 		'/etc/nginx/fastcgi_params.default'test -f '/etc/nginx/fastcgi.conf' 		|| cp conf/fastcgi.conf '/etc/nginx'cp conf/fastcgi.conf '/etc/nginx/fastcgi.conf.default'test -f '/etc/nginx/uwsgi_params' 		|| cp conf/uwsgi_params '/etc/nginx'cp conf/uwsgi_params 		'/etc/nginx/uwsgi_params.default'test -f '/etc/nginx/scgi_params' 		|| cp conf/scgi_params '/etc/nginx'cp conf/scgi_params 		'/etc/nginx/scgi_params.default'test -f '/etc/nginx/nginx.conf' 		|| cp conf/nginx.conf '/etc/nginx/nginx.conf'cp conf/nginx.conf '/etc/nginx/nginx.conf.default'test -d '/var/run/nginx' 		|| mkdir -p '/var/run/nginx'test -d '/var/log/nginx' || 		mkdir -p '/var/log/nginx'test -d '/usr/html' 		|| cp -R html '/usr'test -d '/var/log/nginx' || 		mkdir -p '/var/log/nginx'make[1]: Leaving directory `/root/nginx-1.8.0'

8. 编写脚本nginx放入/etc/init.d/目录下:

#!/bin/sh## nginx        Startup script for nginx## chkconfig: - 85 15# processname: nginx# config: /etc/nginx/nginx.conf# config: /etc/sysconfig/nginx# pidfile: /var/run/nginx.pid# description: nginx is an HTTP and reverse proxy server#### BEGIN INIT INFO# Provides: nginx# Required-Start: $local_fs $remote_fs $network# Required-Stop: $local_fs $remote_fs $network# Default-Start: 2 3 4 5# Default-Stop: 0 1 6# Short-Description: start and stop nginx### END INIT INFO# Source function library.. /etc/rc.d/init.d/functionsif [ -L $0 ]; then    initscript=`/bin/readlink -f $0`else    initscript=$0fisysc/bin/basename $initscript`if [ -f /etc/sysconfig/$sysconfig ]; then    . /etc/sysconfig/$sysconfigfinginx=${NGINX-/usr/sbin/nginx}prog=`/bin/basename $nginx`c/etc/nginx/nginx.conf}lockfile=${LOCKFILE-/var/lock/nginx.lock}pidfile=${PIDFILE-/var/run/nginx/nginx.pid}SLEEPMSEC=${SLEEPMSEC-200000}UPGRADEWAITLOOPS=${UPGRADEWAITLOOPS-5}RETVAL=0start() {    echo -n $"Starting $prog: "    daemon --pidfile=${pidfile} ${nginx} -c ${conffile}    RETVAL=$?    echo    [ $RETVAL = 0 ] && touch ${lockfile}    return $RETVAL}stop() {    echo -n $"Stopping $prog: "    killproc -p ${pidfile} ${prog}    RETVAL=$?    echo    [ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}}reload() {    echo -n $"Reloading $prog: "    killproc -p ${pidfile} ${prog} -HUP    RETVAL=$?    echo}upgrade() {    oldbinpidfile=${pidfile}.oldbin    configtest -q || return    echo -n $"Starting new master $prog: "    killproc -p ${pidfile} ${prog} -USR2    echo    for i in `/usr/bin/seq $UPGRADEWAITLOOPS`; do        /bin/usleep $SLEEPMSEC        if [ -f ${oldbinpidfile} -a -f ${pidfile} ]; then            echo -n $"Graceful shutdown of old $prog: "            killproc -p ${oldbinpidfile} ${prog} -QUIT            RETVAL=$?            echo            return        fi    done    echo $"Upgrade failed!"    RETVAL=1}configtest() {    if [ "$#" -ne 0 ] ; then        case "$1" in            -q)                FLAG=$1                ;;            *)                ;;        esac        shift    fi    ${nginx} -t -c ${conffile} $FLAG    RETVAL=$?    return $RETVAL}rh_status() {    status -p ${pidfile} ${nginx}}# See how we were called.case "$1" in    start)        rh_status >/dev/null 2>&1 && exit 0        start        ;;    stop)        stop        ;;    status)        rh_status        RETVAL=$?        ;;    restart)        configtest -q || exit $RETVAL        stop        start        ;;    upgrade)        rh_status >/dev/null 2>&1 || exit 0        upgrade        ;;    condrestart|try-restart)        if rh_status >/dev/null 2>&1; then            stop            start        fi        ;;    force-reload|reload)        reload        ;;    configtest)        configtest        ;;    *)        echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|upgrade|reload|status|help|configtest}"        RETVAL=2esacexit $RETVAL

9. 测试

[root@chen ~]# chkconfig --add nginx[root@chen ~]# chkconfig --list nginxnginx          	0:关闭	1:关闭	2:启用	3:启用	4:启用	5:启用	6:关闭[root@chen ~]# service nginx start[root@chen ~]# service nginx stop停止 nginx:                                               [确定]

以上就介绍了linux下源码安装nginx,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

回复内容:

[db:


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:linux下源码安装nginx

喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址