nginx安装
程序员文章站
2022-05-21 22:52:01
...
下载稳定版
http://nginx.org/en/download.html
解压:tar -zxvf nginx-1.10.1.tar.gz
cd nginx-1.10.1/
./configure
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_64
checking 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
…… 一长串checking
checking for md5 in system md library... not found
checking for md5 in system md5 library... not found
checking for md5 in system OpenSSL crypto library... not found
checking for sha1 in system md library... not found
checking for sha1 in system OpenSSL crypto library... not found
checking for zlib library... found
creating objs/Makefile
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"
make install
切到
nginx binary file: “/usr/local/nginx/sbin/nginx”
执行./nginx
root@ubuntu:/usr/local/nginx/sbin# ps -ef |grep nginx
root 198741019:44 ? 00:00:00nginx: master process ./nginx
nobody 1987519874019:44 ? 00:00:00nginx: worker process
说明安装成功
以上就介绍了 nginx安装,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。
推荐阅读
-
python安装setuptools的方法
-
sublime text3的package control安装失效的解决方法(插件安装包管理)
-
dell c1100 安装系统(进入bios、超线程、磁盘阵列等设置方法)
-
win8系统IE10无法安装支付宝插件导致淘宝帐号不能登录
-
illegal opcode 红屏报错(hp 360 G6安装win2003)问题解决方法
-
mysql8.0.11 winx64手动安装配置教程
-
windows10+mysql8.0.11zip安装教程详解
-
hadoop入门之通过页面验证hadoop是否安装成功的方法
-
eclipse安装pydev插件步骤(图文)
-
eclipse和myeclipse安装教程及eclipse汉化教程(图文)