环境准备:
- linux系统,redhat或者ubuntu等等
- 下载nginx包,可从官网直接下载:https://nginx.org/en/download.html
安装步骤:
- nginx makefile:
./configure - nginx 编译:
make - nginx 安装:
make install
简单命令:
nginx -c /path/to/nginx.conf 启动nginx
nginx -s reload :修改配置后重新加载生效
nginx -s stop :关闭服务