티스토리 뷰
1. 먼저 Nginx 저장소를 추가
vi /etc/yum.repos.d/nginx.repo
다음 내용을 입력 후 저장
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/7/$basearch/
gpgcheck=0
enabled=1
2. 설치를 진행
yum install -y nginx
3. 방화벽에서 포트해제
firewall-cmd --permanent --zone=public --add-service=http
firewall-cmd --permanent --zone=public --add-service=https
firewall-cmd --reload
4. Nginx를 실행및 서비스 등록
systemctl start nginx
systemctl enable nginx
'Centos7' 카테고리의 다른 글
[Centos7] PHP7 설치 (0) | 2017.02.23 |
---|---|
[Centos7] MariaDB 설치 (0) | 2017.02.23 |
[Centos7] yum update (0) | 2017.02.23 |
[Centos7] Kernel 업데이트 (0) | 2017.02.23 |
NTP(Network Time Protocol) 시간동기화 (0) | 2017.02.18 |