下载地址
https://openresty.org/en/download.html
我们解压后点击文件>window powershell运行>./nginx 启动
精简后的样子
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name localhost;
location / {
root html;
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}
本文介绍了如何从OpenResty的官方网站下载并安装OpenResty,提供了详细的解压及运行步骤。通过在Windows PowerShell中运行特定命令来启动Nginx服务,展示了OpenResty精简配置示例,包括worker_processes、worker_connections等关键参数设置。
1320

被折叠的 条评论
为什么被折叠?



