Friday, December 21, 2012

Installing NginX on Linux through yum

The OS I am using: CentOS 6

$ sudo yum install nginx

After that, nginx will be installed at this path:

/etc/nginx

To start, simply type: 

$ sudo nginx

If errors: bind to 0.0.0.0:80 failed (98: Address already in use), most likely due to the occupation of socket by apache. Stop apache by:

$ sudo service httpd stop

and retry.


No comments:

Post a Comment