Skip to content

Instantly share code, notes, and snippets.

@kenzo0107
Last active August 29, 2015 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenzo0107/7436d67051ee28f24965 to your computer and use it in GitHub Desktop.
Save kenzo0107/7436d67051ee28f24965 to your computer and use it in GitHub Desktop.

CentOS7 に Nginx インストール

yumリポジトリに nginx.repo 追加

# vi /etc/yum.repos.d/nginx.repo
[nginx]
name=nginx repo
#baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
baseurl=http://nginx.org/packages/mainline/centos/$releasever/$basearch/
gpgcheck=0
enabled=0

nginxインストール / 起動 / 登録

# yum --enablerepo=nginx install -y nginx
# systemctl start nginx
# systemctl enable nginx

以上

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment