On an openSUSE (likely should not make any diff)
Installed openresty successfully extracting tarball, configure, make
and make install following instructions top of page at
http://openresty.org/en/installation.html Then attempted "Getting Started" at
http://openresty.org/en/getting-started.html In a root console,
mkdir ~/work
mkdir ~/work/logs/ ~/work/conf/
Created the nginx.conf file exactly as described in ~/work/conf/
Then, still from within the same root console in ~/work
Attempted to run the following but with the result
# nginx -p 'pwd'/ -c conf/nginx.conf
nginx: [alert] could not open error log file: open()
"pwd/logs/error.log" failed (2: No such file or directory)
2016/08/29 11:16:36 [emerg] 14635#0: open() "pwd/conf/nginx.conf"
failed (2: No such file or directory)
Apparently without the command line options, nginx runs fine, using
the default log and configuration paths.
Idea how to troubleshoot?
Thx,
Tony