Skip to content

Instantly share code, notes, and snippets.

@saboyutaka
Created August 17, 2018 14:14
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 saboyutaka/b5f275e2c4f5bd43fd58e810eb8f63a7 to your computer and use it in GitHub Desktop.
Save saboyutaka/b5f275e2c4f5bd43fd58e810eb8f63a7 to your computer and use it in GitHub Desktop.
CentOSにngx-mrubyを入れるscript
yum -y update
yum -y install \
git \
gcc \
wget \
curl \
rake \
bison \
openssl-devel \
make
cd /usr/local/src/ && git clone -b v2.1.1 https://github.com/matsumotory/ngx_mruby.git
export NGINX_CONFIG_OPT_ENV='--with-http_stub_status_module --with-http_ssl_module --prefix=/usr/local/nginx --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module'
cd /usr/local/src/ngx_mruby && sh build.sh && make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment