Nginx

Add nginx repo to your yum repos

vi /etc/yum.repos.d/nginx.repo

Paste the following

[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=0
enabled=1

Save this and exit.

You can now install nginx with a simple yum command.

yum -y install nginx

Start nginx using the init script:

/etc/init.d/nginx start

Test your configuration:

# you can do this from the init script
/etc/init.d/nginx configtest
 
# or by calling the nginx executable with the -t flag
nginx -t
(Comments)

Comments