How to restart Nginx on macOS

We open a Terminal and use the one-liner command sudo nginx -s stop && sudo nginx to restart the Nginx on macOS. Restart the Nginx service. Terminal sudo nginx -s stop && sudo nginx Reload the Nginx configuration file. Terminal sudo nginx -s reload Table of Contents 1. Restart the Nginx on macOS 2. Reload …

Read more

How to check Nginx version

We can type the command nginx -v (lowercase v) in Linux, macOS, and Windows to show the Nginx version currently installed on our system. 1. Check Nginx version The Nginx with a lowercase v option, the nginx -V show the version and then exits. In the below output, Nginx version 1.21.0 is currently installed. Terminal …

Read more