当前位置:首页 > 系统 > Windows2019安装nginx

Windows2019安装nginx

系统4年前 (2019-11-07)

Windows2019安装nginx

windows2019不使用iis,安装nginx提供http下载服务,并注册为系统服务


Windows2019安装nginx

http://nginx.org/en/download.html 下载nginx/Windows


解决windows nginx中文路径乱码

Windows2019安装nginx

控制面板--区域--管理--非Unicode程序的语言--更改系统区域设置


Windows2019安装nginx

勾选Beta版:使用Unicode UTF-8提供全球语言支持,确定


Windows2019安装nginx

重启系统


Windows2019安装nginx

解压后打开E:\nginx\conf\nginx.conf 修改需要提供http的路径,设置charset解决中文路径乱码、404和An error occurred错误


Windows2019安装nginx

打开目录浏览autoindex功能,加入

	autoindex on;
	autoindex_exact_size off;
	autoindex_localtime on;


服务注册工具下载 Windows2019安装nginx nginx.zip

修改nginx服务注册配置文件,修改为对应路径

<service>
    <id>nginx</id>
    <name>nginx</name>
    <description>nginx web server</description>
    <logpath>E:\nginx\logs\</logpath>
    <logmode>roll</logmode>
    <depend></depend>
    <executable>E:\nginx\nginx.exe</executable>
    <stopexecutable>E:\nginx\nginx.exe -s stop</stopexecutable>
</service>


cmd下将nginx注册为系统服务

注册 winsw.exe install nginx
拆卸 winsw.exe uninstall nginx


Windows2019安装nginx

注册正常


Windows2019安装nginx

启动服务


Windows2019安装nginx

打开浏览器测试,打开中文路径,路径下包含中文文件,正常不报错


本站所有文章均可随意转载,转载时请保留原文链接及作者。

本文链接:https://www.vos.cn/os/364.html

相关文章

删除WIN10自带APP

删除WIN10自带APP

如果不是安装LTSB版本的WIN10,自带的APP对我来说根本用不上文件路径位于 C:\WINDOWS\SystemApps此时需要用到Windows PowerShell,以管理员身份运行...

windows2008 IIS配置FTP功能

windows2008 IIS配置FTP功能

不想安装第三方ftp服务端应用,因为需求很简单,用iis支持的ftp就够用先服务器管理器-本地用户和组中,添加一个用户名和密码先在IIS中添加功能,把FTP功能勾选上进行安装安装好后确定新建FTP站点...

CentOS7 搭建LNMP

CentOS7 搭建LNMP

使用CentOS 1708,其实就是RHEL 7.4,使用YUM搭建LNMP环境(Linux、Nginx、MariaDB、PHP),全部使用新版组件,比如Nginx 1.12.2、MariaDB 10...

windows下cmd加代理

windows下cmd加代理

就算使用shadowsock全局模式,脚本里wget仍然无法自动走代理,下载速度很慢脚本中需要设置一下set http_proxy=http://127.0.0.1:1080 &n...

CentOS 7.6安装SQL Server 2019

CentOS 7.6安装SQL Server 2019

CentOS 7.6安装SQL Server 2019预览版安装SQL Servercurl -o /etc/yum.repos.d/mssql-server.repo ...

Windows Server 2019  NTP服务器

Windows Server 2019 NTP服务器

Windows Server 2019  Datacenter搭建NTP服务器搜索输入gpedit.msc本地组策略编辑器--计算机配置--管理模板--系统--Windows时间服务--时间...