Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

네이버클라우드 rocky8.10 설치 오류 문의 #108

Open
ghost opened this issue Nov 14, 2024 · 1 comment
Open

네이버클라우드 rocky8.10 설치 오류 문의 #108

ghost opened this issue Nov 14, 2024 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 14, 2024

아래와 같이 네이버클라우드 rocky8.10 설치 시 오류가 발생(**### Nginx 를 설치합니다. ### 부분부터 오류 발생) 합니다.

확인 후 대응 방법 안내 부탁드립니다.

**### Nginx 를 설치합니다. ###

'/root/stack/nginx/rocky8/nginx.repo' -> '/etc/yum.repos.d/nginx.repo'
nginx stable repo 1.2 kB/s | 1.9 kB 00:01
Errors during downloading metadata for repository 'nginx-stable':

  • Status code: 404 for http://nginx.org/packages/centos/8.10/x86_64/repodata/repomd.xml (IP: 3.125.197.172)
    오류: repo를 위한 메타자료 내려받기에 실패하였습니다 'nginx-stable': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
    sed: /etc/nginx/nginx.conf (을)를 읽을 수 없음: No such file or directory

Notice) nginx 설정에서 gzip 이 기본 활성화되었습니다.
설정 파일 경로) /etc/nginx/conf.d/0-php79.conf

'/root/stack/nginx/0-php79.conf' -> '/etc/nginx/conf.d/'
cp: cannot create regular file '/etc/nginx/conf.d/': No such file or directory
Failed to enable unit: Unit file nginx.service does not exist.
Failed to start nginx.service: Unit nginx.service not found.
다음 명령이 실패하여, 설치가 중단되었습니다. (exit code: 5)

scripts/nginx-install.sh**

@ibin79
Copy link
Contributor

ibin79 commented Nov 15, 2024

nginx 리포를 존재하지 않는 주소로 찾고 있습니다.

없는 주소) http://nginx.org/packages/centos/8.10

실제 주소) http://nginx.org/packages/centos/8

네이버 클라우드에서 DNF 가 8.10 버전으로 고정되어 있다면, releasever 파일 삭제후 재시도가 필요해 보입니다.

yum repolist -v nginx-stable

    저장소-baseurl       : http://nginx.org/packages/centos/8.10/x86_64/

rm /etc/yum/vars/releasever

yum repolist -v nginx-stable

    저장소-baseurl       : http://nginx.org/packages/centos/8/x86_64/

참고) Linux OS Repository 설정 점검 https://guide.ncloud-docs.com/docs/linux-os-repository-check

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant