WEB服务器Nginx WINDOWS最简部署

作者阿里云代理 文章分类 分类:linux图文教程 阅读次数 已被围观 770
  • 下载

http://nginx.org/en/download.html

  • 解压
  • 运行

nginx.exe

  • 打开网页

http://localhost/

  • 查看配置文件

conf\nginx.conf

 server {  listen       80;  server_name  localhost;   #charset koi8-r;   #access_log  logs/host.access.log  main;   location / {  root   html;  index  index.html index.htm;  }

这里的/,指的是目录html

本公司销售:阿里云新/老客户,只要购买阿里云,即可享受折上折优惠!>

我有话说: