さくらVPSにnginxをインストール

さくらVPSにnginxをインストールする時のメモ

1. リポジトリの登録(CentOS6系)

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

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

2. インストール

# yum install nginx

3. 起動

# service nginx start
# chkconfig nginx on

参考