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 ...
随机推荐
- Jmeter -- 上下文关联(JSON提取器)
目标: 将请求A响应数据的部分内容提取出来,保存成变量供后续请求使用(用在返回格式为json的HTTP请求中) 步骤: 1. 添加JSON Extractor后置处理器 add --> post ...
- UIImage非正方形图片如何剪切为正方形
有时候项目里做头像上传时候,必须要把用户从相册或是相机里的选择的图片剪切为指定大小的图片,遇到太大,太小或是太长的图片就需coregraphic来对图片进行剪切 废话不多说,直接上代码 /** * 剪 ...
- C/C++题库
1.下面的代码输出什么?为什么? void foo(void) { unsigned int a = 6; int b = -20; (a+b > 6)?puts(“>6”):puts(“ ...
- Windows系统安装分盘
按shift + F10 打出dos窗口
- HTTPS 证书制作及使用
一 证书的制作 进入jdk/bin,使用keytools.exe制作证书. 1.创建keystore 创建一个别名为serverkeystore的证书,该证书存放在名为server.keystore的 ...
- 杂项-PIN:百科
ylbtech-杂项-PIN:百科 个人身份识别码(英语:Personal identification number,缩写为 PIN),又译为用户个人识别号码,常被称为PIN码(PIN number ...
- WPF WebBrowser 加载 html ,出现安全警告, 运行 脚本和 activeX 控件,
对于你的问题,只需要在你的HTML首行添加如下代码即可隐藏安全提示条: <!-- saved from url=(0014)about:internet --> 还有一个可选方案是使用Wi ...
- WebMvcConfigurerAdapter详解和过时后的替代方案
一.什么是WebMvcConfigurerAdapter Spring内部的一种配置方式采用JavaBean的形式来代替传统的xml配置文件形式进行针对框架个性化定制 二.WebMvcConfigur ...
- 【HANA系列】SAP HANA SQL获取当前月的第一天
公众号:SAP Technical 本文作者:matinal 原文出处:http://www.cnblogs.com/SAPmatinal/ 原文链接:[HANA系列]SAP HANA SQL获取当前 ...
- springboot(3) 页面到服务器
第一讲实现了spring boot 环境的下载及配置. 第二讲实现了,从服务器,到页面. 第三讲打算从页面到服务器. 比如,我们希望 从页面,点击一个按钮,传递信息到服务器. 就拿传递用户名和密码来简 ...