링크 ux 서비스의 nginx

1606 단어 linuxnginxtengine
시스템 환경:
[root@nginx ~]# cat /etc/redhat-release
CentOS release 6.5 (Final)
[root@nginx ~]# uname -a
Linux nginx 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
[root@nginx ~]# lsb_release -a
LSB Version:    :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description:    CentOS release 6.5 (Final)
Release:    6.5
Codename:   Final

설치 시작:
[root@nginx ~]# useradd www -s /sbin/nologin
[root@nginx ~]# yum -y install pcre pcre-devel gcc openssl-devel curl curl-devel
[root@nginx ~]# mkdir soft
[root@nginx ~]# cd soft
[root@nginx soft]# wget http://tengine.taobao.org/download/tengine-2.0.1.tar.gz
[root@nginx soft]# tar xf tengine-2.0.1.tar.gz
[root@nginx soft]# cd tengine-2.0.1
[root@nginx tengine-2.0.1]# ./configure --user=www --group=www --prefix=/usr/local/nginx
[root@nginx tengine-2.0.1]# make -j 2 && make install
[root@nginx tengine-2.0.1]# /usr/local/nginx/sbin/nginx
[root@nginx tengine-2.0.1]# netstat -tulnpan |grep nginx
tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LISTEN      4207/nginx  
[root@nginx tengine-2.0.1]# curl -I http://127.0.0.1/
HTTP/1.1 200 OK
Server: Tengine/2.0.1
Date: Sat, 12 Apr 2014 08:41:54 GMT
Content-Type: text/html
Content-Length: 555
Last-Modified: Sat, 12 Apr 2014 08:39:58 GMT
Connection: keep-alive
ETag: "5348fbde-22b"
Accept-Ranges: bytes

이 글 은 "devops" 블 로그 에서 나 왔 습 니 다. 전 재 를 사절 합 니 다!

좋은 웹페이지 즐겨찾기