1.官网下载源码
http://nginx.org/en/download.html
2.编译nginx
😃绿色安装
mkdir install
./configure --prefix=$PWD/install/webserver/nginx --with-http_stub_status_module --with-http_ssl_module
make -j12
make install
3.运行nginx
sudo ./nginx # 启动 Nginx
sudo ./nginx -s reload # 重新载入配置文件
sudo ./nginx -s reopen # 重启 Nginx
sudo ./nginx -s stop # 停止 Nginx
4.配置nginx
vim conf/nginx.conf
未完待续...