Skip to content

Instantly share code, notes, and snippets.

@guileen
Last active August 29, 2015 14:21
Show Gist options
  • Save guileen/5b36c94832a63079d1d9 to your computer and use it in GitHub Desktop.
Save guileen/5b36c94832a63079d1d9 to your computer and use it in GitHub Desktop.
install nginx on redhat
yum -y install zlib zlib-devel openssl openssl-devel pcre pcre-devel
wget http://nginx.org/download/nginx-1.8.0.tar.gz
tar xzvf nginx-1.8.0.tar.gz
cd nginx-1.8.0 && ./configure && make
wget http://nginx.org/packages/rhel/6/x86_64/RPMS/nginx-1.8.0-1.el6.ngx.x86_64.rpm
rpm -ivh nginx-1.8.0-1.el6.ngx.x86_64.rpm
/etc/init.d/nginx start
sudo yum -y install zlib zlib-devel openssl openssl-devel pcre pcre-devel
wget https://github.com/NeusoftSecurity/SEnginx/archive/v1.6.2-se.tar.gz
tar xzvf v1.6.2-se.tar.gz
cd SEnginx-1.6.2-se && ./se-configure.sh && sudo make install
sudo apt-get install unzip libssl-dev libpcre3-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment