Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Haoke98/nginx-windows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nginx-Windows

简体中文 | English

Nginx高性能的HTTP和反向代理web服务器的Windows平台版本和相关配置

版本:1.18.0

stars star license

软件架构

软件架构说明

安装教程

1. 直接下载下来压缩包解压缩 或者 git clone
2. 修改conf目录里的nginx.conf

使用教程

Nginx相关命令

3.启动:

Windows:
start nginx
Linux/Mac:
nginx -s start

2.验证配置文件的准确性:

nginx -t

3.配置文件修改重载:

nginx -s reload

4.快速停止或关闭:

nginx -s stop

5.正常停止或关闭

nginx -s quit

6.查看nginx版本号

nignx -V

7.查看帮助信息

nginx -h

8.打开日志文件

nginx -s reopen

9.彻底杀掉nginx进程

Linux/Unix
ps -aux | grep nginx
kill -9 PID

[^PID]为Nginx进程ID

Windows:
taskkill /IM nginx.exe /F

修改Window上的Hosts文件

系统中找到Hosts文件

地址:C:\Windows\System32\drivers\etc

stars

快速生效host文件的修改

ipconfig /flushdns

报错解答

报错1:

    nginx: [emerg] CreateDirectory() "E:\myProjects\nginx-windows/temp/client_body_temp" failed (3: The system cannot find the path specified)

原因:

    因为nginx被安装在了中文目录,或者路径中有中文汉字,所以nginx没法自己自动地在根目录创建temp文件夹

解决:

    自己在nginx根目录手动创建一个temp目录

框架杰出贡献者

萨达木·沙地克
Sadam·Sadik

联系我们

  • 请我们喝杯咖啡,支付后联系 QQ 1903249375 邀请您进入讨论群(由于用户数较多,如果您打赏后未通过好友请求,请在支付宝支付页面选择联系商家),不管您请还是不请,您都可以享受到开源的代码,感谢您的支持和信任,群内提供 基础版本、开发工具自动配置教程及项目开发文档。

常见问题汇总

  1. Windows上的80端口被占用问题
  2. 你可以 https://gitee.com/explore 这个地址来了解 Gitee 上的优秀开源项目
  3. GVP 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
  4. Gitee 官方提供的使用手册 https://gitee.com/help
  5. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 https://gitee.com/gitee-stars/

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published