NGINX on IBM i
To start default configuration:
===> /QOpenSys/pkgs/bin/nginx -c /QOpenSys/etc/nginx/nginx.conf
To stop:
===> /QOpenSys/pkgs/bin/nginx -c /QOpenSys/etc/nginx/nginx.conf -s stop
To list processes:
===> ps aux | grep nginx
or
===> ps ax | grep nginx ===> ps -f -u ernest
Sample nginx configuration file:
worker_processes 3;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 9010;
server_name localhost;
location / { try_files $uri @er; }
location @er {
include fastcgi_params;
fastcgi_param PATH_INFO $fastcgi_script_name;
fastcgi_param SCRIPT_NAME "";
fastcgi_pass unix:/tmp/er9010f-fcgi.sock;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ /\.ht {
deny all;
}
}
}
More on ps command: https://www.binarytides.com/linux-ps-command/