How to install Nginx in FreeBSD
There are two ways of installing Nginx in FreeBSD. You can install Nginx using package system or ports system. The second way is more flexible.
Installing Nginx from package
pkg_add -r nginx
Installing Nginx from ports
cd /usr/ports/www/nginx make install clean
Mark modules you need for your build and press OK.
When compilation and installation are finished you can try to start Nginx:
If you want Nginx to start with the system add to /etc/rc.conf:
Nginx configuration file is located in /usr/local/etc/nginx/nginx.conf. Nginx default document root directory is in /usr/local/www/nginx.
This work is licensed under a Creative Commons Attribution-NoDerivs 3.0 United States License.
Got a comment?
All Rights Reserved.