ubuntu13.10에 nginx 설치

설치 자체는 굉장히 간단함.

apache2 같은게 설치되어 있다면 충돌문제가 있을지 모르니 우선 제거한다.

ubuntu@ip-172-31-27-91:~$ sudo apt-get purge apache2*
Reading package lists... Done
Building dependency tree       
Reading state information... Done
... ...
Package 'python-apache-openid' is not installed, so not removed
Package 'rt4-apache2' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.

ubuntu@ip-172-31-27-91:~$ sudo apt-get install nginx
Reading package lists... Done
Building dependency tree       
Reading state information... Done
nginx is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.

설치 끝... 미리 설치해뒀었다...

하여간 설치가 되었으니 잘 도는지 확인.

ubuntu@ip-172-31-27-91:~$ sudo service nginx start
 * Starting nginx nginx 

그 다음에 public ip로 되부에서 확인하든가 로컬에서 확인이 가능하면 확인해 본다. 나는 ec2에 설치한거라 로컬로는 확인이 불가해서 내 피씨의 브라우저에서 elastic IP로 접속 시도.


위와 같은 화면이 나오면 성공.

댓글 없음:

댓글 쓰기