이번엔 NGINX 다.
몇년 전까지만 해도 apache / tomcat을 주로 썼는데 요즘엔 nginx / jboss가 대세인지 TA님 들이 이 구조를 많이 주장하시더라.
그래서 나도 내 서버에 개발환경 구축하면서 web server로 nginx를 설치해서 운용해보기로 했다.
일단 어제의 jdk... 멘탈 붕괴... x삽질... 과 같은 시간낭비를 피하고자 nginx가 설치되어 있는지 찾아보자.
[root@ip-172-31-9-0 ~]# find / -name *nginx* 조회결과 없어
[root@ip-172-31-9-0 ~]# which nginx /usr/bin/which: no nginx in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin) 훗. 없데. |
그럼 yum 으로 설치가 가능한지 보자
[root@ip-172-31-9-0 ~]# yum list | grep nginx collectd-nginx.x86_64 5.7.1-3.19.amzn1 amzn-main munin-nginx.noarch 2.0.30-5.38.amzn1 amzn-main nginx.x86_64 1:1.12.1-1.33.amzn1 amzn-main nginx-all-modules.x86_64 1:1.12.1-1.33.amzn1 amzn-main nginx-mod-http-geoip.x86_64 1:1.12.1-1.33.amzn1 amzn-main nginx-mod-http-image-filter.x86_64 1:1.12.1-1.33.amzn1 amzn-main nginx-mod-http-perl.x86_64 1:1.12.1-1.33.amzn1 amzn-main nginx-mod-http-xslt-filter.x86_64 1:1.12.1-1.33.amzn1 amzn-main nginx-mod-mail.x86_64 1:1.12.1-1.33.amzn1 amzn-main nginx-mod-stream.x86_64 1:1.12.1-1.33.amzn1 amzn-main
|
오~ 가능해. 가능해
설치 시작!!
[root@ip-172-31-9-0 ~]# yum install nginx.x86_64 일단 다운로드.. 압축 풀어야지.. Loaded plugins: priorities, update-motd, upgrade-helper amzn-main | 2.1 kB 00:00:00 amzn-updates | 2.5 kB 00:00:00 Resolving Dependencies --> Running transaction check ---> Package nginx.x86_64 1:1.12.1-1.33.amzn1 will be installed --> Processing Dependency: libprofiler.so.0()(64bit) for package: 1:nginx-1.12.1-1.33.amzn1.x86_64 --> Running transaction check ---> Package gperftools-libs.x86_64 0:2.0-11.5.amzn1 will be installed --> Processing Dependency: libunwind.so.8()(64bit) for package: gperftools-libs-2.0-11.5.amzn1.x86_64 --> Running transaction check ---> Package libunwind.x86_64 0:1.1-10.8.amzn1 will be installed --> Finished Dependency Resolution Dependencies Resolved ======================================================================================================================== Package Arch Version Repository Size ======================================================================================================================== Installing: nginx x86_64 1:1.12.1-1.33.amzn1 amzn-main 561 k Installing for dependencies: gperftools-libs x86_64 2.0-11.5.amzn1 amzn-main 570 k libunwind x86_64 1.1-10.8.amzn1 amzn-main 72 k Transaction Summary ======================================================================================================================== Install 1 Package (+2 Dependent packages) Total download size: 1.2 M Installed size: 2.9 M ------------------------------------------------ 역시나 설치할꺼야고 묻지. Is this ok [y/d/N]: y ----------------------------------------------- 진짜 설치 Downloading packages: (1/3): libunwind-1.1-10.8.amzn1.x86_64.rpm | 72 kB 00:00:00 (2/3): gperftools-libs-2.0-11.5.amzn1.x86_64.rpm | 570 kB 00:00:00 (3/3): nginx-1.12.1-1.33.amzn1.x86_64.rpm | 561 kB 00:00:00 ------------------------------------------------------------------------------------------------------------------------ Total 1.7 MB/s | 1.2 MB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : libunwind-1.1-10.8.amzn1.x86_64 1/3 Installing : gperftools-libs-2.0-11.5.amzn1.x86_64 2/3 Installing : 1:nginx-1.12.1-1.33.amzn1.x86_64 3/3 Verifying : libunwind-1.1-10.8.amzn1.x86_64 1/3 Verifying : gperftools-libs-2.0-11.5.amzn1.x86_64 2/3 Verifying : 1:nginx-1.12.1-1.33.amzn1.x86_64 3/3 Installed: nginx.x86_64 1:1.12.1-1.33.amzn1 Dependency Installed: gperftools-libs.x86_64 0:2.0-11.5.amzn1 libunwind.x86_64 0:1.1-10.8.amzn1 Complete! |
ㅎㅎ 설치는 간단하다.
어디에 설치되있는지 보자~
[root@ip-172-31-9-0 ~]# which nginx /usr/sbin/nginx
|
지금 설치한 버전이 뭔지 알고싶드면 -V 또는 -v 로 nginx 버전을 확인하자
[root@ip-172-31-9-0 nginx]# nginx -v nginx version: nginx/1.12.1 * nginx -V : Print the nginx version, compiler version, and configure script parameters. * nginx -v : Print the nginx version. man nginx 치면 나오는 설명이야.
|
이제 설정을... 해야지... ㅠㅠ
'Develope > Server' 카테고리의 다른 글
JBOSS 7.1.1 설치 및 실행 (0) | 2017.12.08 |
---|---|
NGINX 기동 및 확인 (0) | 2017.12.08 |
리눅스 JAVA 버전 확인 및 변경 (0) | 2017.12.07 |
리눅스에 JDK 1.8 설치 (0) | 2017.12.07 |
리눅스 종류, 버전 확인 (0) | 2017.12.07 |