Once you got everything installed in your system.
Start tuning it up.These are some useful information I manage to find.
1. /etc/nginx.conf optimalization.
worker_processes 1; Normally it’s a good idea to set this humber to a number of cores in your system
grep processor /proc/cpuinfo | wc -l(This will give you an idea of amount of cores)
worker_connections 1024; (This is a number of connection per core and a good starting point it to check your core limiation
$sudo ulimit -n (This will give a number which you can use in config)
In this configuration we can server 1024 connetion per/second so basically around 512 customers being live on website and making around 2 connection to server. If you website server few thousands visit a day this is more than enough!
and this is the final config
This is just a starting point so it’s good setup to start of.