설치 순서
CentOS 6.5에 nginx를 설치하는 순서는 다음과 같다.
- yum repository에 nginx 추가
- yum을 이용하여 nginx 설치
1. yum repository에 nginx 추가
/etc/yum.repos.d 디렉토리에 nginx.repo 파일을 생성한다. nginx.repo 파일의 내용은 다음과 같다.
[nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/$releasever/$basearch/ gpgcheck=0 enabled=1 | cs |
참고 : https://www.nginx.com/resources/wiki/start/topics/tutorials/install/
2. yum을 이용하여 nginx 설치
yum install -y nginx
참고
nginx.repo를 추가하지 않으면, yum을 이용하여 설치 시 아래와 같은 에러가 발생한다.
[USER@BLAHBLAH ~]# yum install nginx -y Loaded plugins: fastestmirror, replace Loading mirror speeds from cached hostfile * base: ftp.neowiz.com * extras: ftp.neowiz.com * updates: ftp.neowiz.com * webtatic: sp.repo.webtatic.com Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package nginx18.x86_64 0:1.8.1-1.w6 will be installed --> Processing Dependency: libxslt.so.1(LIBXML2_1.0.18)(64bit) for package: nginx18-1.8.1-1.w6.x86_64 --> Processing Dependency: libxslt.so.1(LIBXML2_1.0.11)(64bit) for package: nginx18-1.8.1-1.w6.x86_64 --> Processing Dependency: gd for package: nginx18-1.8.1-1.w6.x86_64 --> Processing Dependency: GeoIP for package: nginx18-1.8.1-1.w6.x86_64 --> Processing Dependency: libxslt.so.1()(64bit) for package: nginx18-1.8.1-1.w6.x86_64 --> Processing Dependency: libprofiler.so.0()(64bit) for package: nginx18-1.8.1-1.w6.x86_64 --> Processing Dependency: libgd.so.2()(64bit) for package: nginx18-1.8.1-1.w6.x86_64 --> Processing Dependency: libexslt.so.0()(64bit) for package: nginx18-1.8.1-1.w6.x86_64 --> Processing Dependency: libGeoIP.so.1()(64bit) for package: nginx18-1.8.1-1.w6.x86_64 --> Running transaction check ---> Package gd.x86_64 0:2.0.35-11.el6 will be installed --> Processing Dependency: libXpm.so.4()(64bit) for package: gd-2.0.35-11.el6.x86_64 ---> Package libxslt.x86_64 0:1.1.26-2.el6_3.1 will be installed ---> Package nginx18.x86_64 0:1.8.1-1.w6 will be installed --> Processing Dependency: GeoIP for package: nginx18-1.8.1-1.w6.x86_64 --> Processing Dependency: libprofiler.so.0()(64bit) for package: nginx18-1.8.1-1.w6.x86_64 --> Processing Dependency: libGeoIP.so.1()(64bit) for package: nginx18-1.8.1-1.w6.x86_64 --> Running transaction check ---> Package libXpm.x86_64 0:3.5.10-2.el6 will be installed ---> Package nginx18.x86_64 0:1.8.1-1.w6 will be installed --> Processing Dependency: GeoIP for package: nginx18-1.8.1-1.w6.x86_64 --> Processing Dependency: libprofiler.so.0()(64bit) for package: nginx18-1.8.1-1.w6.x86_64 --> Processing Dependency: libGeoIP.so.1()(64bit) for package: nginx18-1.8.1-1.w6.x86_64 --> Finished Dependency Resolution Error: Package: nginx18-1.8.1-1.w6.x86_64 (webtatic) Requires: GeoIP Error: Package: nginx18-1.8.1-1.w6.x86_64 (webtatic) Requires: libprofiler.so.0()(64bit) Error: Package: nginx18-1.8.1-1.w6.x86_64 (webtatic) Requires: libGeoIP.so.1()(64bit) You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest [USER@BLAHBLAH ~]# | cs |
0 댓글