$ 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