Skip to content

Instantly share code, notes, and snippets.

@smamran
Created December 15, 2015 02:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smamran/cfc34088065a565ab1f9 to your computer and use it in GitHub Desktop.
Save smamran/cfc34088065a565ab1f9 to your computer and use it in GitHub Desktop.
Nginx Ubuntu Compile

πŸ”« πŸ—‘Commands βš› πŸ’£

πŸ”ͺπŸ”§ Download NginX Source & Unzip πŸ—‘πŸ”¨

>> wget http://nginx.org/download/nginx-1.9.9.tar.gz  
>> tar xvfvz nginx-1.9.9.tar.gz
>> cd nginx-1.9.9/

πŸ”ͺπŸ”§ Configure, Compile & Install πŸ—‘πŸ”¨

>> ./configure --prefix=/usr/local/nginx --sbin-path=/usr/local/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=/run/nginx.pid --lock-path=/run/lock/subsys/nginx --user=nginx --group=nginx --with-file-aio --with-ipv6 --with-http_ssl_module --with-http_spdy_module --with-http_realip_module --with-http_addition_module --with-http_xslt_module --with-http_image_filter_module --with-http_geoip_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_stub_status_module --with-http_perl_module --with-mail --with-mail_ssl_module --with-pcre --with-google_perftools_module --with-debug
>> ./configure
>> make
>> sudo make install

πŸ”ͺπŸ”§ Start Stop πŸ—‘πŸ”¨

>> sudo service nginx start
>> sudo service nginx stop

>> pgrep nginx
>> pkill pid

>> cd objs
>> sudo ./nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment