1、安装nginx所需环境  
a)  PCRE pcre-devel 安装
# yum install -y pcre pcre-devel
b)  zlib 安装
# yum install -y zlib zlib-devel
c) OpenSSL 安装
# yum install -y openssl openssl-devel
2、安装Nginx
a) 进入/usr/local/src目录,解压nginx源码包并进入
# tar -zxvf nginx-1.12.1.tar.gz
# cd nginx-1.12.1
b)  使用默认配置
# ./configure
c)  编译、安装
# make
# make install
d) 启动nginx
# cd /usr/local/nginx/sbin/
# ./nginx
 
其它命令
# ./nginx -s stop
# ./nginx -s quit
# ./nginx -s reload
e)  查看nginx的版本及模块
/usr/local/nginx/sbin/nginx -V

最新文章

  1. TComboBoxEx和 TComboBox
  2. jQuery语法
  3. leetcode算法思想快速一览
  4. 数据库操作sql【转】
  5. python练习程序(c100经典例11)
  6. UESTC_Little Deer and Blue Cat CDOJ 1025
  7. datatables里面的search怎么去掉?
  8. Collections模块下的Counter
  9. Postgresql数据库部署之:Postgresql 存在session 会话不能删除数据库
  10. 利用OpenStreetMap(OSM)数据搭建一个地图服务
  11. C#基础知识之属性
  12. 复制ASP.NET的ASHX、aspx文件的注意事项
  13. 获取cxgrid footer内容
  14. bat文件命令
  15. Vue, React, AngularJS, and Angular2. 我们对流行JavaScript框架们的选择
  16. ubuntu 安装 ftp服务
  17. Educational Codeforces Round 1 E. Chocolate Bar dp
  18. OpenGL笔记<第一章> 构建 GLSL class
  19. 【ArcGIS for SivlerLight api(3)】基础图层增删改查
  20. [模板]LIS(最长上升子序列)

热门文章

  1. Java并发包源码学习系列:阻塞队列实现之LinkedBlockingDeque源码解析
  2. Shiro权限项目
  3. Codeforces Round #660 (Div. 2) Captain Flint and Treasure 拓扑排序(按照出度、入读两边拓扑排序)
  4. P3399 丝绸之路(DP)
  5. P1091 合唱队形(LIS)
  6. Codeforces Round #552 (Div. 3) C. Gourmet Cat (数学,模拟)
  7. Codeforces ECR 83 C. Adding Powers (位运算)
  8. hdu5289 Assignment
  9. Linux 查看系统日志 ,查看服务日志
  10. Python 读Excel数据