$ mkdir -p /apps/openresty/conf
# cat /apps/openresty/conf/nginx.conf
worker_processes 1;
pid /var/run/openresty.pid;
error_log /var/log/openresty/error.log;
events {
worker_connections 1024;
}
http {
access_log /var/log/openresty/access.log;
server {
listen 8080;
location / {
default_type text/html;
content_by_lua '
ngx.say("<p>hello, world</p>")
';
}
}
}
# openresty -p /apps/openresty
nginx: [alert] could not open error log file: open() "/apps/openresty/logs/error.log" failed (2: No such file or directory)