linux之安装nginx
2024-09-02 13:11:47
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
最新文章
- TComboBoxEx和 TComboBox
- jQuery语法
- leetcode算法思想快速一览
- 数据库操作sql【转】
- python练习程序(c100经典例11)
- UESTC_Little Deer and Blue Cat CDOJ 1025
- datatables里面的search怎么去掉?
- Collections模块下的Counter
- Postgresql数据库部署之:Postgresql 存在session 会话不能删除数据库
- 利用OpenStreetMap(OSM)数据搭建一个地图服务
- C#基础知识之属性
- 复制ASP.NET的ASHX、aspx文件的注意事项
- 获取cxgrid footer内容
- bat文件命令
- Vue, React, AngularJS, and Angular2. 我们对流行JavaScript框架们的选择
- ubuntu 安装 ftp服务
- Educational Codeforces Round 1 E. Chocolate Bar dp
- OpenGL笔记<;第一章>; 构建 GLSL class
- 【ArcGIS for SivlerLight api(3)】基础图层增删改查
- [模板]LIS(最长上升子序列)
热门文章
- Java并发包源码学习系列:阻塞队列实现之LinkedBlockingDeque源码解析
- Shiro权限项目
- Codeforces Round #660 (Div. 2) Captain Flint and Treasure 拓扑排序(按照出度、入读两边拓扑排序)
- P3399 丝绸之路(DP)
- P1091 合唱队形(LIS)
- Codeforces Round #552 (Div. 3) C. Gourmet Cat (数学,模拟)
- Codeforces ECR 83 C. Adding Powers (位运算)
- hdu5289 Assignment
- Linux 查看系统日志 ,查看服务日志
- Python 读Excel数据