# nginx 저장소 추가
$ vi /etc/yum.repos.d/nginx.repo
# nginx 공식 사이트(http://nginx.org/en/linux_packages.html#stable)에 적혀 있는 링크를 넣는다.
# 아래 내용 참고
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/7/$basearch/
gpgcheck=0
enabled=1
# 설치
$ yum install -y nginx
# 서비스에 자동으로 등록
$ systemctl enable nginx
$ systemctl start nginx
댓글 없음:
댓글 쓰기