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 ...
随机推荐
- 修改apache2配置,禁止目录访问+禁止访问.git文件夹
通过url访问服务器,无论是本地服务器还是远程服务器 如果你的文件根目录里有 index.html,index.php,浏览器就会显示 index.html的内容,如果没有 index.html,浏览 ...
- 读写锁StampedLock的思想
该类是一个读写锁的改进,它的思想是读写锁中读不仅不阻塞读,同时也不应该阻塞写. 读不阻塞写的实现思路: 在读的时候如果发生了写,则应当重读而不是在读的时候直接阻塞写! 因为在读线程非常多而写线程比较少 ...
- 用ps 查看线程状态
ps -eLo pid,tid,class,rtprio,ni,pri,psr,pcpu,pmem,stat,wchan:30,comm 线程相关选项: THREAD DISPLAY H Show t ...
- OperationCenter Docker运行环境及其依赖启动脚本
1.Portainer docker rm -f portainer docker run -d -p : --name portainer --restart always portainer/po ...
- tensorflow 分布式搭建
https://blog.csdn.net/qq_40652148/article/details/80467131 https://yq.aliyun.com/articles/602111 git ...
- 阶段3 1.Mybatis_10.JNDI扩展知识_1 补充-JNDI概述和原理
H:\BaiDu\黑马传智JavaEE57期 2019最新基础+就业+在职加薪\讲义+笔记+资料\主流框架\31.会员版(2.0)-就业课(2.0)-Mybatis\mybatis\mybatis_d ...
- robotframework(rf)中对时间操作的datetime库常用关键字
1.对固定日期进行操作,增加或减去单位时间或者时间段 2.对两个时间段进行操作 3.对时间格式转化,获取时间戳. 4.从完整时间中取指定年月日等 5.对时间类型进行格式化 6.获取当前时间或者指定时区 ...
- 【Hibernate】---【注解】多对多
一.核心配置文件 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-con ...
- 【Fiddler】开启手机的http或https抓包
fiddler安装 下载fiddler最新版: 默认安装: 打开fiddler工具,默认界面: 选择上方,Tools-→options General界面 HTTPS界面 CONNECTIONS,po ...
- flask-profiler, 监视端点调用并尝试进行某些分析的Flask 事件探查器
源代码名称:flask-profiler 源代码网址:http://www.github.com/muatik/flask-profiler flask-profiler源代码文档 flask-pro ...