Skip to content

Instantly share code, notes, and snippets.

@yuyalush
Created August 3, 2011 07:30
Show Gist options
  • Save yuyalush/1122101 to your computer and use it in GitHub Desktop.
Save yuyalush/1122101 to your computer and use it in GitHub Desktop.
Nginx install to NiftyCloud
rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/5/x86_64/epel-release-5-4.noarch.rpm
yum install -y yum-utils pcre-devel libxslt-devel GeoIP-devel gd-devel rpm-build
yumdownloader --source nginx
rpm -ivh nginx-0.8.54-1.el5.src.rpm
sed -i 's/--with-file-aio/ /' /usr/src/redhat/SPECS/nginx.spec
rpmbuild -ba /usr/src/redhat/SPECS/nginx.spec
rpm -ivh /usr/src/redhat/RPMS/x86_64/nginx-0.8.54-1.x86_64.rpm
chkconfig nginx on
service nginx start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment