패키지 관리자로 OpenResty 를 설치했다면 /usr/local/openresty 가 기본 경로이며 nginx 는 /usr/local/openresty/nginx 에 존재합니다.
cd /usr/local/openresty/nginx
BASH
conf/nginx.conf 를 에디터로 열어서 다음 내용을 추가합니다.
worker_processes 1;
error_log logs/error.log;
events {
worker_connections 1024;
}
http {
server {
listen 8080;
location / {
default_type text/html;
content_by_lua_block {
ngx.say("<p>hello, world</p>")
}
}
}
}
CODE
sudo systemctl restart openresty
BASH
Ref