nginx下载、windows系统安装、设置欢迎页
来源:互联网 发布:移动网络玩lol哪个区 编辑:程序博客网 时间:2024/05/13 14:24
下载地址
http://nginx.org/en/download.html
我下载的是nginx-1.10.1版本,官方说是最新稳定版
解压到文件夹;我解压到D盘目录下,并重命名文件夹为nginx
双击nginx.exe启动
访问locahost
该页面为默认页面,可以根据具体需求修改;
1、修改默认网页内容 - nginx/html/index.html
2、修改配置路径 - nginx/conf/nginx.conf,root后面的html可以改为自己的网页存放路径;如"d:/ershuai;",index后面的内容是路径下网页名称
(默认配置是 html路径下的index.html,如果没有index.html再去找index.htm)
nginx域名配置 http://blog.csdn.net/shuai825644975/article/details/51799193
相关命令
1、启动:
C:\server\nginx-1.0.2>start nginx
或
C:\server\nginx-1.0.2>nginx.exe
注:建议使用第一种,第二种会使你的cmd窗口一直处于执行中,不能进行其他命令操作。
2、停止:
C:\server\nginx-1.0.2>nginx.exe -s stop
或
C:\server\nginx-1.0.2>nginx.exe -s quit
注:stop是快速停止nginx,可能并不保存相关信息;quit是完整有序的停止nginx,并保存相关信息。
3、重新载入Nginx:
C:\server\nginx-1.0.2>nginx.exe -s reload
当配置信息修改,需要重新载入这些配置时使用此命令。
4、重新打开日志文件:
C:\server\nginx-1.0.2>nginx.exe -s reopen
5、查看Nginx版本:
C:\server\nginx-1.0.2>nginx -v
nginx: nginx version: nginx/1.0.2
或
C:\server\nginx-1.0.2>nginx -V
nginx: nginx version: nginx/1.0.2
nginx: TLS SNI support enabled
nginx: configure arguments: --builddir=objs.msvc8 --crossbuild=win32 --with-debug --prefix= --conf-path=conf/nginx.conf --pid-path=logs/nginx.pid --http-log-path=logs/access.log --error-log-path=logs/error.log --sbin-path=nginx.exe --http-client-body-temp-path=temp/client_body_temp --http-proxy-temp-path=temp/proxy_temp --http-fastcgi-temp-path=temp/fastcgi_temp --with-cc-opt=-DFD_SETSIZE=1024 --with-pcre=objs.msvc8/lib/pcre-7.9 --with-zlib=objs.msvc8/lib/zlib-1.2.3 --with-select_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_stub_status_module --with-http_flv_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-mail --with-ipv6 --with-openssl=objs.msvc8/lib/openssl-0.9.8r --with-openssl-opt=enable-tlsext --with-http_ssl_module --with-mail_ssl_module
注:v只是简单显示版本信息,V不但显示版本信息,还显示配置参数信息。
6、测试或载入指定配置文件:
测试配置文件
C:\server\nginx-1.0.2>nginx.exe -t -c conf/default.conf
nginx: the configuration file C:\server\nginx-1.0.2/conf/default.conf syntax isok
nginx: configuration file C:\server\nginx-1.0.2/conf/default.conf test is successful
载入指定配置文件
C:\server\nginx-1.0.2>start nginx.exe -c conf/default.conf
- nginx下载、windows系统安装、设置欢迎页
- windows系统下载安装Redmine
- NGINX之linux系统下载安装并配置nginx
- windows将nginx安装为系统服务
- 各种windows系统安装文件下载
- HTTP服务器 nginx for windows下载 详细安装与配置
- Nginx系统学习篇(3)--linux环境下载安装
- 下载和安装Nginx
- Nginx下载安装
- nginx 下载安装
- nginx在linux和windows系统上的编译安装
- windows系统下安装配置 Nginx 的常见问题
- nginx for windows下载地址
- nginx windows安装入门
- windows XP安装nginx
- windows下安装nginx
- windows下安装nginx
- windows下安装nginx
- js实现异步跨域上传
- Java基础之控制流语句(一)
- 西安尚学堂告诉你java开发为什么不要过分依赖框架
- 色度4:2:0
- [BZOJ4520][CQOI2016] K远点对 - KD-tree
- nginx下载、windows系统安装、设置欢迎页
- 内存溢出原因及解决方案
- Android UI线程和非UI线程
- PHP笔记(碎片代码) - 选择MySQL数据库
- 启动v4.DialogFragmet触发RuntimeException:Unable to stop activity
- svn清理失败(clean up失败)的解决方法
- 互联网+SC联盟解决大学生五大难题!
- 让DIV水平和垂直居中
- Guava库学习:学习使用Preconditions工具类进行代码的校验