nginx安装

来源:互联网 发布:网络公选课答案智慧树 编辑:程序博客网 时间:2024/06/16 02:35

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

checking for OS + Linux 3.13.0-32-generic x86_64checking for C compiler ... found + using GNU C compiler + gcc version: 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3) checking for gcc -pipe switch ... found……  一长串checkingchecking for md5 in system md library ... not foundchecking for md5 in system md5 library ... not foundchecking for md5 in system OpenSSL crypto library ... not foundchecking for sha1 in system md library ... not foundchecking for sha1 in system OpenSSL crypto library ... not foundchecking for zlib library ... foundcreating objs/MakefileConfiguration 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"

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

root@ubuntu:/usr/local/nginx/sbin# ps -ef |grep nginxroot     19874     1  0 19:44 ?        00:00:00 nginx: master process ./nginxnobody   19875 19874  0 19:44 ?        00:00:00 nginx: worker process

这里写图片描述
说明安装成功

0 0
原创粉丝点击