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 ...
随机推荐
- Django REST framework的解析器与渲染器
解析器 解析器的作用 解析器的作用就是服务端接收客户端传过来的数据,把数据解析成自己可以处理的数据.本质就是对请求体中的数据进行解析. 在了解解析器之前,我们要先知道Accept以及ContentTy ...
- vue根据参数不同的路由跳转以及name的作用
最近在做VUE路由跳转根据参数的值不同但是跳转的是同一个路由的功能.点击左边的目录,根据目录ID跳转不同的列表.如下图. 路由跳转的代码: this.$router.push({path: '/RFI ...
- material of DeepLearning
下面这个链接是深度学习相关的资料,内含很多dl的链接资料: http://blog.csdn.net/augusdi/article/details/20238157 MIT Deep Learnin ...
- MYSQL,分别用一条语句交换两列的值与两行的值
测试表: CREATE TABLE `test` ( `id` ) NOT NULL AUTO_INCREMENT, `name` ) NOT NULL, ` DEFAULT CHARSET=utf8 ...
- 为什么我上传了flv或MP4文件到服务器,可输入正确地址通过http协议来访问总是出现“无法找到该页”的404错误呢
常用MIME类型(Flv,Mp4的mime类型设置) 也许你会在纳闷,为什么我上传了flv或MP4文件到服务器,可输入正确地址通过http协议来访问总是出现“无法找到该页”的404错误呢?这就表明mp ...
- rocketMQ 通信协议格式
rocketMQ 使用 netty 通信,端对端的通信,为了避免粘包.分包,需要指定发送数据的边界. 使用的解码器是 LengthFieldBasedFrameDecoder // org.apach ...
- k8s集群上线web静态网站
环境准备 一台部署节点,一台master节点,还有两台节点node1,node2 完好的k8s集群环境 思路1: 在node1和node2节点上通过宿主机与容器之间目录映射和端口映射上线静态网站(或动 ...
- HTML5——添加新元素 新元素 Canvas SVG MathML 黑客帝国特效
为HTML添加新元素 添加新元素 + 该元素定义样式 <!DOCTYPE html> <html> <head> <meta charset=&quo ...
- 【ABAP系列】SAP ABAP 运算符
公众号:SAP Technical 本文作者:matinal 原文出处:http://www.cnblogs.com/SAPmatinal/ 原文链接:[ABAP系列]SAP ABAP 运算符 前 ...
- C语言实现单链表
大二学习数据结构和算法啦,因为之前用Java语言实现过,所以理解起来还是比较轻松,就是理解指针与结构体的运用.废话不多说,上代码! 初始化 typedef struct Node { int data ...