1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37

1.下载nginx:
porschan@porschan-virtual-machine:~$ wget http://nginx.org/download/nginx-1.14.2.tar.gz

2.解压nginx:
porschan@porschan-virtual-machine:~$ tar -xzf nginx-1.14.2.tar.gz

目录:
auto - 辅助configure文件提供服务
CHANGES - 版本特性历史
CHANGES.ru - 版本特性历史(俄罗斯语言)
conf - configure 的demo
configure - 配置文件
contrib - 脚本(nginx 语法标色)
html - 50x错误跳转页面和首页
LICENSE
man - 帮助文件
README
src - 源代码
objs - 中间文件

3.cp -r contrib/vim/* ~/.vim/

(未成功)sudo cp -r /contrib/vim/* ~/.vim/

4.查看安装情况:
porschan@porschan-virtual-machine:~/nginx-1.14.2$ ./configure --help | more
with(默认不添加)、without(默认添加)

5.编译:
porschan@porschan-virtual-machine:~/nginx-1.14.2$ ./configure --help | more

6.
./configure --prefix=/home/geek/nginx

7.
make && make install