Nginx的使用
来源:互联网 发布:数据库物理设计图visio 编辑:程序博客网 时间:2024/06/07 02:28
Nginx可作为web服务器,反向代理服务器,电子邮件代理服务器.
一 安装nginx
1.yum -y install pcre-devel openssl openssl-devel
2.到官方网站下载Nginx并安装
http://nginx.org/en/download.html
3.启动nginx
# /usr/local/nginx/sbin/nginx
4.访问http://localhost.
二 .查看nginx配置文件地址
1.执行 /usr/local/nginx/sbin/nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
可知默认的配置文件是/usr/local/nginx/conf/nginx.conf
2 执行 /usr/local/nginx/sbin/nginx -v 查看版本
3 执行 /usr/local/nginx/sbin/nginx -V 查看版本和配置文件
4. /usr/local/nginx/sbin/nginx -s reload 重新load配置文件
5 /usr/local/nginx/sbin/nginx -t 检查配置文件是否正确
三 nginx配置文件
配置文件结构
... #全局块events { #events块 ...}http #http块{ ... #http全局块 server #server块 { ... #server全局块 location [PATTERN] #location块 { ... } location [PATTERN] { ... } } server { ... } ... #http全局块}
- Nginx的基本使用
- nginx的log使用
- nginx变量的使用
- Nginx的使用入门
- 【nginx】的基本使用
- nginx proxy的使用
- nginx gzip 的使用
- Nginx的使用
- 关于nginx的使用
- nginx的使用
- Nginx的入门使用
- nginx的使用经历
- nginx的使用
- Nginx的简单使用
- nginx的使用
- Nginx的入门使用
- Nginx的使用
- Nginx的 NginxHttpMemcModule的使用
- [gridview] -- Column源码
- C++ primer学习之类型转换(1) 隐式转换
- pdf阅读器与迅捷pdf编辑器的使用方法
- 浅析软件产品生命周期的重要角色
- 算法训练 摆动序列
- Nginx的使用
- for循环中的++i和i++(摘抄总结)
- webgis里对于有收缩框的布局地图显示的问题
- 搭建测试环境
- Cloudera Manager、CDH零基础入门、线路指导
- 蓝桥杯 算法提高 队列操作
- AWK的神技
- 复制Assets文件到SD卡
- [gridview] -- ActionColumn源码