linux Nginx 的安装
确保安装了 gcc,openssl-devel,pcre-devel,zilb-devel
下载官网:http://nginx.org/
[root@localhost tools]#
wget http://nginx.org/download/nginx-1.6.3.tar.gz
--2017-10-21
10:43:52--
http://nginx.org/download/nginx-1.6.3.tar.gz
Resolving nginx.org...
95.211.80.227, 206.251.255.63, 2001:1af8:4060:a004:21::e3, ...
Connecting to
nginx.org|95.211.80.227|:80... connected.
HTTP request sent,
awaiting response... 302 Found
Location:
http://101.247.192.67/files/32230000052D57CD/nginx.org/download/nginx-1.6.3.tar
.gz
[following]--2017-10-21 10:43:53--
http://101.247.192.67/files/32230000052D57CD/nginx.org/download/
nginx-1.6.3.tar.gzConnecting
to 101.247.192.67:80... connected.
HTTP request sent,
awaiting response... 200 OK
Length: 805253 (786K)
[application/octet-stream]
Saving to:
“nginx-1.6.3.tar.gz”
100%[===============================================>]
805,253 840K/s in 0.9s
2017-10-21 10:43:54
(840 KB/s) - “nginx-1.6.3.tar.gz” saved [805253/805253]
[root@localhost tools]#
ls
nginx-1.6.3.tar.gz
[root@localhost tools]#
mkdir -p /application/nginx
[root@localhost tools]#
ls
nginx-1.6.3.tar.gz
[root@localhost tools]#
tar -zxf nginx-1.6.3.tar.gz
[root@localhost tools]#
ls
nginx-1.6.3 nginx-1.6.3.tar.gz
[root@localhost tools]#
cd nginx-1.6.3
[root@localhost nginx-1.6.3]# useradd nginx -s
/sbin/nologin -M
[root@localhost
nginx-1.6.3]# ./configure \
> --with-http_stub_status_module
\
>
--prefix=/application/nginx \
>
--with-http_gzip_static_module \
> --user=nginx \
> --group=nginx \
[root@localhost
nginx-1.6.3]# make&&make install
[root@localhost nginx]#
ln -s /application/nginx /application/nginx-1.6.3
[root@localhost
application]# /application/nginx/sbin/nginx -t
nginx: the
configuration file /application/nginx/conf/nginx.conf syntax is ok
nginx: configuration
file /application/nginx/conf/nginx.conf test is successful
[root@localhost
application]# /application/nginx/sbin/nginx
[root@localhost /]# lsof -i :80
COMMAND PID USER
FD TYPE DEVICE SIZE/OFF NODE
NAME
nginx 6125 root
6u IPv4 22127
0t0 TCP *:http (LISTEN)
nginx 6126 nginx 6u
IPv4 22127 0t0
TCP *:http (LISTEN)
#--with-http_stub_status_module 可以启用 nginx 的 nginxstauts 功能,以监控 nginx 当前状态
linux Nginx 的安装的更多相关文章
- 11 linux nginx上安装ecshop 案例
一: nginx上安装ecshop 案例 (1)解压到 nginx/html下 浏览器访问:127.0.0.1/ecshop/index.php 出现错误:not funod file 原因:ngin ...
- linux——nginx的安装及配置
目录 1. 在Linux上安装nginx 2. 配置nginx反向代理 1. 在Linux上安装ngix 1.1 在以下网页下载nginx的tar包,并将其传到linux中 http://nginx. ...
- [linux] [nginx] 一键安装web环境全攻略phpstudy版,超详细!
找到运行中的服务器(实例). 打开这个主要是看它的IP,是公网ip,公网ip,公网ip,重要的事情说三遍. 接下来我们可以不用在阿里云上操作了,直接用客户端操作,这两个客户端就是Xshell 5和Xf ...
- [linux] Nginx编译安装错误error: the HTTP rewrite module requires the PCRE library
nginx编译错误: 执行如下命令安装缺少的文件即可
- Linux Nginx环境安装配置redmine3.1
作者博文地址:https://www.cnblogs.com/liu-shuai/ 环境: CentOS-6.5+Nginx-1.8.0+Redmine-3.1.1+Ruby-2.0 1.配置环境 1 ...
- Linux(Centos)之安装Nginx及注意事项
1.Nginx的简单说明 a. Nginx是一个高性能的HTTP和反向代理服务器,也是一个IMAP/POP3/SMTP服务器,期初开发的目的就是为了代理电子邮件服务器室友:Igor Sysoev开发 ...
- linux/centos下安装nginx(rpm安装和源码安装)详细步骤
Centos下安装nginx rpm包 ...
- Linux下Nginx的安装、升级及动态添加模块
系统基于ubuntu server 14.04.4 amd64 安装 第一步 下载并解压Nginx压缩包 从Nginx官网下载Nginx,或者在Linux上执行wget http://nginx.or ...
- Linux下,Nginx的安装、升级及动态添加模块
系统基于ubuntu server 14.04.4 amd64 安装 第一步 下载并解压Nginx压缩包 从Nginx官网下载Nginx,或者在Linux上执行wget http://nginx.or ...
随机推荐
- WebClient上传下载文件,小白篇
WebClient的上传文件一直报错,各种百度各种稀奇古怪的东西,终于百度到一篇小白学习篇 转自: https://www.cnblogs.com/cncc/p/5722231.html 使用C#We ...
- python学习之路(25)
继承和多态 在OOP程序设计中,当我们定义一个class的时候,可以从某个现有的class继承,新的class称为子类(Subclass),而被继承的class称为基类.父类或超类(Base clas ...
- 5-1 Django的路由层(urlconf)
URL配置(URLconf)就像Django 所支撑网站的目录.它的本质是URL与要为该URL调用的视图函数之间的映射表:你就是以这种方式告诉Django,对于客户端发来的某个URL调用哪一段逻辑代码 ...
- linux 简单命令说明
1.df -h 查看磁盘占用及挂载情况 挂载磁盘 如下: mount /dev/sda1 /boot 取消挂载的磁盘 umount /boot 2.dh -sh 查看当前目录占用文件大小 dh -sh ...
- Ajax监测开始执行及结束执行
特别提示:本人博客部分有参考网络其他博客,但均是本人亲手编写过并验证通过.如发现博客有错误,请及时提出以免误导其他人,谢谢!欢迎转载,但记得标明文章出处:http://www.cnblogs.com/ ...
- kurento搭建以及运行kurento-hello-world
搭建环境的系统是ubuntu 1.kurento服务器搭建 运行如下脚本即可完成安装 #!/bin/bash echo "deb http://ubuntu.kurento.org trus ...
- 初识Nginx及其LNMP搭建
Nginx介绍 nginx www服务软件 俄罗斯人开发 开源 性能很高 web产品 大小780k c语言开发 本身是一款静态www软件,不能解析php jsp .do 最大特点 静态小文件(1m), ...
- 阶段3 1.Mybatis_09.Mybatis的多表操作_8 mybatis多对多操作-查询角色获取角色下所属用户信息
一个角色对应多个用户 生成getter和setter 查看两个表的数据 中间表定义了谁有角色,谁没有角色 根据中间表的关系,最终查询出来的列表的数据样子.这需要两个左外链接才能实现功能. 第一个左外链 ...
- JVM监控工具之JVisualVM
一.简介 JVisualVM是Netbeans的profile子项目,已在JDK6.0 update 7 中自带(bin/jvisualvm.exe),能够监控线程,内存情况,查看方法的CPU时间和内 ...
- javascript 访问 webservice
xml: <?xml version="1.0" encoding="UTF-8"?> <boolean xmlns="http:/ ...