关注各种黑科技
B站UP主,编程教学,游戏玩家,挂B,金牛座

ubuntu 安装nginx

wget http://nginx.org/download/nginx-1.10.2.tar.gz   ./configure: error: C compiler cc is not found  
apt-get install build-essential
  ./configure: error: the HTTP rewrite module requires the PCRE library.  
apt-get install libpcre3-dev
  ./configure: error: the HTTP gzip module requires the zlib library.
apt-get install zlib1g-dev
 
Configuration summary
  + using system PCRE library
  + OpenSSL library is not used
  + using builtin md5 code
  + sha1 library is not found
  + using system zlib library
  nginx path prefix: "/usr/local/nginx"
  nginx binary file: "/usr/local/nginx/sbin/nginx"
  nginx modules path: "/usr/local/nginx/modules"
  nginx configuration prefix: "/usr/local/nginx/conf"
  nginx configuration file: "/usr/local/nginx/conf/nginx.conf"
  nginx pid file: "/usr/local/nginx/logs/nginx.pid"
  nginx error log file: "/usr/local/nginx/logs/error.log"
  nginx http access log file: "/usr/local/nginx/logs/access.log"
  nginx http client request body temporary files: "client_body_temp"
  nginx http proxy temporary files: "proxy_temp"
  nginx http fastcgi temporary files: "fastcgi_temp"
  nginx http uwsgi temporary files: "uwsgi_temp"
  nginx http scgi temporary files: "scgi_temp"
   
make && make install
  启动 /usr/local/nginx/sbin/nginx    
转载请注明出处
分享到: 更多 (0)

评论 0