2014 Beijing OSC, 2015 Beijing OpenResty Con
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
work/conf
.gitignore
README.md
using-ngxlua-in-upyun-2-wide.key
using-ngxlua-in-upyun-2-wide.pdf
using-ngxlua-in-upyun-2.key
using-ngxlua-in-upyun-2.pdf
using-ngxlua-in-upyun.key
using-ngxlua-in-upyun.pdf

README.md

Using ngx_lua in UPYUN

Run the Code

  1. Building and Installing Openresty
tar xzvf ngx_openresty-VERSION.tar.gz
cd ngx_openresty-VERSION/
./configure
make
make install
  1. Start the Nginx Server
cd work
mkdir logs

export PATH=/usr/local/openresty/nginx/sbin:$PATH
nginx -p `pwd`/ -c conf/nginx.conf
  1. Hello World
curl http://localhost:8080/hello

See Also