FAQ

Page Discussion Edit History

InstallingOnOpenSolaris

Contents

[edit] Nginx on OpenSolaris

Just like almost any other Unix or Unix-like system, on OpenSolaris and its derivatives, you can install Nginx from either a repository or source.

[edit] Install from a repository

In addition to whatever your OpenSolaris distribution may include, you can also install from other repositories.

[edit] Nginx from OpenSolaris webstack repository

(Note that the version in the OpenSolaris webstack repository may be older than you wish to install. Be sure to check the available version before installing.

Install Nginx from OpenSolaris webstack repository:

jacek@okno1:~$ pfexec pkg set-authority -O http://pkg.opensolaris.org/webstack webstack
jacek@okno1:~$ pfexec pkg refresh
jacek@okno1:~$ pfexec pkg install nginx
DOWNLOAD                                    PKGS       FILES     XFER (MB)
Completed                                    1/1       11/11     2.02/2.02 

PHASE                                        ACTIONS
Install Phase                                  19/19 
PHASE                                          ITEMS
Reading Existing Index                           9/9 
Indexing Packages                                1/1

Edit configuration file (for testing I changed default port from 80 to 2080 because Apache was using port 80):

jacek@okno1:~$ pfexec vi /etc/nginx/nginx.conf 

Install and enable service:

jacek@okno1:~$ pfexec svccfg import /var/svc/manifest/network/http-nginx.xml
jacek@okno1:~$ pfexec svcadm enable nginx
jacek@okno1:~$ svcs|grep nginx
online         17:50:13 svc:/network/http:nginx
jacek@okno1:~$ 

[edit] Install from source

If you prefer to install from source, as many Nginx users do, just follow the Installing_on_Solaris instructions.