nginx安装

WBOY
풀어 주다: 2016-07-28 08:26:31
원래의
1036명이 탐색했습니다.

下载稳定版
http://nginx.org/en/download.html
解压:tar -zxvf nginx-1.10.1.tar.gz
cd nginx-1.10.1/
./configure

<code>checking <span>for</span> OS
 + Linux <span>3.13</span><span>.0</span>-<span>32</span>-generic x86_64
checking <span>for</span> C compiler <span>...</span> found
 + using GNU C compiler
 + gcc version: <span>4.8</span><span>.4</span> (Ubuntu <span>4.8</span><span>.4</span>-2ubuntu1~<span>14.04</span><span>.3</span>) 
checking <span>for</span> gcc -pipe <span>switch</span><span>...</span> found
……  一长串checking
checking <span>for</span> md5 <span>in</span> system md <span>library</span><span>...</span> not found
checking <span>for</span> md5 <span>in</span> system md5 <span>library</span><span>...</span> not found
checking <span>for</span> md5 <span>in</span> system OpenSSL crypto <span>library</span><span>...</span> not found
checking <span>for</span> sha1 <span>in</span> system md <span>library</span><span>...</span> not found
checking <span>for</span> sha1 <span>in</span> system OpenSSL crypto <span>library</span><span>...</span> not found
checking <span>for</span> zlib <span>library</span><span>...</span> found
creating objs/Makefile

Configuration summary
  + using system PCRE <span>library</span>
  + OpenSSL <span>library</span> is not used
  + using builtin md5 code
  + sha1 <span>library</span> is not found
  + using system zlib <span>library</span>  nginx path prefix: <span>"/usr/local/nginx"</span>
  nginx binary file: <span>"/usr/local/nginx/sbin/nginx"</span>
  nginx modules path: <span>"/usr/local/nginx/modules"</span>
  nginx configuration prefix: <span>"/usr/local/nginx/conf"</span>
  nginx configuration file: <span>"/usr/local/nginx/conf/nginx.conf"</span>
  nginx pid file: <span>"/usr/local/nginx/logs/nginx.pid"</span>
  nginx error log file: <span>"/usr/local/nginx/logs/error.log"</span>
  nginx http access log file: <span>"/usr/local/nginx/logs/access.log"</span>
  nginx http client request body temporary files: <span>"client_body_temp"</span>
  nginx http proxy temporary files: <span>"proxy_temp"</span>
  nginx http fastcgi temporary files: <span>"fastcgi_temp"</span>
  nginx http uwsgi temporary files: <span>"uwsgi_temp"</span></code>
로그인 후 복사

make install
切到
nginx binary file: “/usr/local/nginx/sbin/nginx”
执行./nginx

<code>root<span>@ubuntu</span><span>:/usr/local/nginx/sbin</span><span># ps -ef |grep nginx</span>
root     <span>19874</span><span>1</span><span>0</span><span>19</span><span>:</span><span>44</span> ?        <span>00</span><span>:</span><span>00</span><span>:</span><span>00</span><span>nginx:</span> master process ./nginx
nobody   <span>19875</span><span>19874</span><span>0</span><span>19</span><span>:</span><span>44</span> ?        <span>00</span><span>:</span><span>00</span><span>:</span><span>00</span><span>nginx:</span> worker process</code>
로그인 후 복사

 nginx安装
说明安装成功

').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

以上就介绍了 nginx安装,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

관련 라벨:
원천:php.cn
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
인기 튜토리얼
더>
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿