<commit_before>---
layout: post
title:  "nginx centOS7下安装"
date:   2016-01-06 10:38:25
categories: Personal
tags: nginx
image: /assets/images/designfin.jpg
---

## 安装方式(源码编译)  

***
 *编译源码安装方式的好处*  
 
1. 可控性强，config时可根据当前系统环境优化参数，可定制组件及安装参数  
 
2. 易出错，对于初学者存在一定难度  
 
 
## 安装步骤  
 
1. 下载[nginx源码包](http://nginx.org/download/nginx-1.9.9.tar.gz)   
 
2. 解压到你希望安装的目录下  
 
3. 检查和安装依赖项  
 
  ```shell
   yum -y install gcc pcre pcre-devel zlib zlib-devel openssl openssl-devel
   ```
4. 配置  
 
 ```shell 
   configure
    ```
     
5. 编译安装  
 
 ```shell
  make && make install 
  ```
 <commit_msg>change nginx article<commit_after>---
layout: post
title:  "nginx centOS7下安装"
date:   2016-01-06 10:38:25
categories: Personal
tags: nginx
image: /assets/images/designfin.jpg
---

## 安装方式(源码编译)  

***
 *编译源码安装方式的好处*  
 
1. 可控性强，config时可根据当前系统环境优化参数，可定制组件及安装参数  
 
2. 易出错，对于初学者存在一定难度  
 
 
## 安装步骤  
 
1. 下载[nginx源码包](http://nginx.org/download/nginx-1.9.9.tar.gz)   
 
2. 解压到你希望安装的目录下  
 
3. 检查和安装依赖项  
 
  ```shell
   	 yum -y install gcc pcre pcre-devel zlib zlib-devel openssl openssl-devel
   ```

4. 配置  
 
 ```shell 
  	 configure
    ```
     
5. 编译安装  
 
 ```shell
 	 make && make install 
  ```
 
{'fraction_non_alphanumeric': 0.14214046822742474, 'fraction_numerical': 0.04180602006688963, 'mean_word_length': 2.5, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5200189', 'n_tokens_mistral': 686, 'n_tokens_neox': 702, 'n_words': 100}