우분투 nginx 설치

1 확인[ | ]

root@zetawiki:~# nginx -v
The program 'nginx' can be found in the following packages:
 * nginx-extras
 * nginx-full
 * nginx-light
 * nginx-naxsi

2 설치[ | ]

root@zetawiki:~# apt-get install nginx
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libgd2-noxpm libjpeg-turbo8 libjpeg8 libxslt1.1 nginx-common nginx-full
Suggested packages:
  libgd-tools
The following NEW packages will be installed:
  libgd2-noxpm libjpeg-turbo8 libjpeg8 libxslt1.1 nginx nginx-common nginx-full
0 upgraded, 7 newly installed, 0 to remove and 50 not upgraded.
Need to get 882 kB of archives.
After this operation, 2,694 kB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://kr.archive.ubuntu.com/ubuntu/ precise-updates/main libjpeg-turbo8 amd64 1.1.90+svn733-0ubuntu4.4 [112 kB]
Get:2 http://kr.archive.ubuntu.com/ubuntu/ precise-updates/main libxslt1.1 amd64 1.1.26-8ubuntu1.3 [167 kB]
Get:3 http://kr.archive.ubuntu.com/ubuntu/ precise/main libjpeg8 amd64 8c-2ubuntu7 [2,112 B]
Get:4 http://kr.archive.ubuntu.com/ubuntu/ precise/main libgd2-noxpm amd64 2.0.36~rc1~dfsg-6ubuntu2 [200 kB]
Get:5 http://kr.archive.ubuntu.com/ubuntu/ precise-updates/universe nginx-common all 1.1.19-1ubuntu0.8 [17.1 kB]
Get:6 http://kr.archive.ubuntu.com/ubuntu/ precise-updates/universe nginx-full amd64 1.1.19-1ubuntu0.8 [379 kB]
Get:7 http://kr.archive.ubuntu.com/ubuntu/ precise-updates/universe nginx all 1.1.19-1ubuntu0.8 [5,812 B]
Fetched 882 kB in 0s (1,152 kB/s)
Selecting previously unselected package libjpeg-turbo8.
(Reading database ... 93887 files and directories currently installed.)
Unpacking libjpeg-turbo8 (from .../libjpeg-turbo8_1.1.90+svn733-0ubuntu4.4_amd64.deb) ...
Selecting previously unselected package libxslt1.1.
Unpacking libxslt1.1 (from .../libxslt1.1_1.1.26-8ubuntu1.3_amd64.deb) ...
Selecting previously unselected package libjpeg8.
Unpacking libjpeg8 (from .../libjpeg8_8c-2ubuntu7_amd64.deb) ...
Selecting previously unselected package libgd2-noxpm.
Unpacking libgd2-noxpm (from .../libgd2-noxpm_2.0.36~rc1~dfsg-6ubuntu2_amd64.deb) ...
Selecting previously unselected package nginx-common.
Unpacking nginx-common (from .../nginx-common_1.1.19-1ubuntu0.8_all.deb) ...
Selecting previously unselected package nginx-full.
Unpacking nginx-full (from .../nginx-full_1.1.19-1ubuntu0.8_amd64.deb) ...
Selecting previously unselected package nginx.
Unpacking nginx (from .../nginx_1.1.19-1ubuntu0.8_all.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Processing triggers for ufw ...
Setting up libjpeg-turbo8 (1.1.90+svn733-0ubuntu4.4) ...
Setting up libxslt1.1 (1.1.26-8ubuntu1.3) ...
Setting up libjpeg8 (8c-2ubuntu7) ...
Setting up libgd2-noxpm (2.0.36~rc1~dfsg-6ubuntu2) ...
Setting up nginx-common (1.1.19-1ubuntu0.8) ...
Setting up nginx-full (1.1.19-1ubuntu0.8) ...
Setting up nginx (1.1.19-1ubuntu0.8) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

3 확인 2[ | ]

root@zetawiki:~# nginx -v
nginx version: nginx/1.1.19

4 시작 및 확인[ | ]

root@zetawiki:~# /etc/init.d/nginx start
Starting nginx: nginx.
root@zetawiki:~# netstat -tnlp | grep nginx
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      12719/nginx

5 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}