Skip to content

Instantly share code, notes, and snippets.

@maanas
Created April 14, 2013 05:29
Show Gist options
  • Save maanas/5381571 to your computer and use it in GitHub Desktop.
Save maanas/5381571 to your computer and use it in GitHub Desktop.
High Performance nginx server with luajit, drizzle, upload
# Nginx High Performance Server Build Script for CentOS, SL
# Copyright Maanas Royy <[email protected]>
### Install Section ###
## Uncomment to run only first time ##
# Install Dependencies
#yum groupinstall “Development Tools”
# Install Additional Packages
#yum install zlib-devel openssl openssl-devel cpio expat-devel gettext-devel pcre pcre-devel
# Make a Ngnix directory in /usr/local/src
#mkdir /usr/local/src/nginx-source
#cd /usr/local/src/nginx-source
#git clone http://luajit.org/git/luajit-2.0.git
#git clone https://github.com/simpl/ngx_devel_kit.git
#git clone https://github.com/chaoslawful/lua-nginx-module.git
#git clone https://github.com/agentzh/set-misc-nginx-module.git
#git clone https://github.com/agentzh/echo-nginx-module.git
#git clone https://github.com/chaoslawful/drizzle-nginx-module.git
#git clone https://github.com/agentzh/rds-json-nginx-module.git
### Update & Rebuild Section ###
cd /usr/local/src/nginx-source
cd luajit-2.0
git pull
make && make install
## This one is optional please verify the above file exist else create the sym link
# ln -s /usr/local/lib/libluajit-5.1.so.2.0.1 /usr/local/lib/liblua.so
cd ngx_devel_kit/
git pull
cd echo-nginx-module
git pull
cd encrypted-session-nginx-module/
git pull
cd rds-json-nginx-module/
git pull
cd set-misc-nginx-module/
git pull
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment