CentOS 6.9 compile and install Nginx1.4.7
[root@rmohan.com ~]# yum install -y openssl
[root@rmohan.com ~]# service iptables stop
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules:
2. Download nginx source package to a local
[root@rmohan.com ~]# ll nginx-1.4.7.tar.gz
-rw-r–r–. 1 root root 769153 Jun 1 2017 nginx-1.4.7.tar.gz
3. Extract nginx source package
[root@rmohan.com ~]# tar -xf nginx-1.4.7.tar.gz
4. Go to the extracted directory
[root@rmohan.com ~]# cd nginx-1.4.7
5. Start compilation to generate the makefile
[root@rmohan.com nginx-1.4.7]# ./configure –prefix=/usr\ –sbin-path=/usr/sbin/nginx –conf-path=/etc/nginx/nginx.conf\ –error-log-path=/var/log/nginx/error.log\ –http-log-path=/var/log/nginx/access.log\ –pid-path=/var/run/nginx/nginx.pid –lock-path=/var/lock/nginx.lock\ –user=nginx –group=nginx –with-http_flv_module\ –with-http_stub_status_module –with-http_gzip_static_module\ –http-client-body-temp-path=/var/tmp/nginx/client\ –http-proxy-temp-path=/var/tmp/nginx/proxy\ –http-fastcgi-temp-path=/var/tmp/nginx/fcgi/\ –http-uwsgi-temp-path=/var/tmp/nginx/uwsgi\ –http-scgi-temp-path=/var/tmp/nginx/scgi –with-pcre\ –with-http_ssl_module\
…..
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 setproctitle() … not found
checking for pread() … found
checking for pwrite() … found
checking for sys_nerr … found
checking for localtime_r() … 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 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 openat(), fstatat() … found
checking for getaddrinfo() … found
checking for PCRE library … found
checking for PCRE JIT support … not found
checking for OpenSSL library … found
checking for zlib library … found
creating objs/Makefile
Configuration 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/tmp/nginx/fcgi/”
nginx http uwsgi temporary files: “/var/tmp/nginx/uwsgi”
nginx http scgi temporary files: “/var/tmp/nginx/scgi”
Recent Comments