1. Nginx 저장소 등록
sudo zypper addrepo -G -t yum -c 'http://nginx.org/packages/sles/12' nginx
2. Nginx 저장소의 GPG 키 등록
wget http://nginx.org/keys/nginx_signing.key
3. RPM 명령어로 nginx 키값 가져오기 & nginx 설치
sudo rpm --import nginx_signing.key
sudo zypper install nginx
아래와 같은 오류 출력 시 무시하고 Solution 2번 선택하여 강제 설치 진행
Problem: nothing provides libpcre2-8.so.0()(64bit) needed by nginx-1.24.0-1.sles12.ngx.x86_64
Solution 1: do not install nginx-1.24.0-1.sles12.ngx.x86_64
Solution 2: break nginx-1.24.0-1.sles12.ngx.x86_64 by ignoring some of its dependencies
Choose from above solutions by number or cancel [1/2/c] (c): 2
zypper install nginx 입력 -> y 키 입력하여 nginx 설치 진행
4. 방화벽 설정 및 80 포트 오픈
sudo vi /etc/sysconfig/SuSEfirewall2.d/services/nginx
아래 첨부된 내용/사진 처럼 방화벽 설정 수정
aoi:~$ cat /etc/sysconfig/SuSEfirewall2.d/services/nginx
## Name: Nginx web server
## Description: Open ports for Nginx Server
# space separated list of allowed TCP ports
TCP="http"
5. yast2 설정 도구를 사용하여 방화벽 활성화 하기
sudo yast firewall
'TroubleShootings > 삽질 예방 접종 센터' 카테고리의 다른 글
[Linux] CentOS 8 에서 Docker & Kubernetes 한번에 설치 (0) | 2023.11.22 |
---|---|
[Unix] SuseLinux 15 (SP5) MongoDB 설치 (0) | 2023.11.21 |
[Unix] SuseLinux 15 (SP5) 네트워크 Gateway 설정하는 방법 (0) | 2023.11.21 |
[Linux] Debian Linux 12 (bookworm)에 MSSQL 서버 설치 방법 (0) | 2023.11.20 |
[Linux] Debian Linux 11/12 Kubernetes (쿠버네티스) 설치 (0) | 2023.11.20 |