打开nginx.conf 找到第一个 server { } 添加: server { listen 8099;# 访问端口号 server_name (你的主机IP) localhost;# 你的服务器名称(访问名称) root F:\Nginx_text;# 你需要在 NGINX 服务器上放置的文件目录 #autoindex for nginx location ~ ^(.*)/$ { ...
下载Nginx文件 本机的版本为:nginx-1.24.0http://nginx.org/download/nginx-1.24.0.zip 配置nginx.conf文件 配置内容如下: server{# 服务监听端口、绑定 IP、监听方式的配置listen8000;listenlocalhost:8080;# 定义了服务器块(server block)的域名server_namelocalhost;# 匹配路径location/files {# 重置当前文件的...
1.官网下载http://nginx.org/en/download.html windows使用的为 nginx-1.14.0.zip 2.先解压缩到任意位置, 解压缩后应该为如下文件 3.双击nginx.exe文件,打开任务管理器,应当看见如下内容,代表启动成功 4.在conf文件夹下有一个nginx.conf文件 #user nobody; worker_processes 1; #error_log logs/error.log;...
nginx/Windows runs as a standard console application (not a service), and it can be managed using the following commands: 意思是说:nginx / Windows作为标准控制台应用程序(不是服务)运行,可以使用以下命令进行管理: nginx -s stop fast shutdown nginx -s quit graceful shutdown nginx -s reload chang...
# 重新加载Nginx服务命令 F:GX ginx-1.16.1>nginx.exe -s 重新加载 F:GX ginx-1.16.1> Web 浏览器访问验证:在这里,我创建了一个新的“测试”。“F:gxchiron”目录下的TXT”文件,用于提前测试。访问地址:http://ip:port 当心: 1、目录名和文件名要使用英文字符才能正常下载; ...
1. 下载安装包:http://nginx.org/download/nginx-1.9.15.zip 2. 解压缩 3. 修改配置文件nginx.conf,在server部分添加以下内容 location /tools { alias E:\Tools; allow all; autoindex on; } 效果如下: 4. 启动服务:E:\Tools\Nginx\nginx-1.9.15>start nginx.exe ...
重新加载nginx服务 # 重新加载nginx服务命令f:\gx\nginx-1.16.1>nginx.exe -s reloadf:\gx\nginx-1.16.1> AI代码助手复制代码 web浏览器访问验证:此处我提前在"f:\gx\chiron"目录下,新建了一个"test.txt"文件做测试访问地址: 注意: 1. 目录名与文件名要求使用英文字符才能正常下载; ...
打开nginx.conf 找到第一个 server { } 添加: server { listen8099;# 访问端口号server_name (你的主机IP) localhost;# 你的服务器名称(访问名称)root F:\Nginx_text;# 你需要在 NGINX 服务器上放置的文件目录#autoindex for nginxlocation ~ ^(.*)/${ ...
下载Nginx,打开网站http://nginx.org/en/download.html 选择windows版本下载成功后打开目录,在conf目录下打开nginx.conf...
官网下载windows版本的nginx 地址:http://nginx.org/en/download.html 管理nginx服务命令 start nginx #启动nginxnginx.exe -s reload #重新启动nginxnginx.exe -s stop #关闭nginx 具体步骤 1、更改C:\Software\nginx-1.24.0\conf\nginx.conf文件内容(如下) ...