windows上用Nginx搭建Axure原型展示服务器
2021/7/23 7:09:05
本文主要是介绍windows上用Nginx搭建Axure原型展示服务器,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
一、下载Nginx的安装包
http://nginx.org/en/download.html
二、解压到你自己想放置软件的目录中
看自己的需要
三、修改配置文件
C:\workingSoftWare\nginx-1.21.0\conf\nginx.conf
四、修改nginx的端口号,端口号看你自己的需求,要开放给别人访问,记得搞定防火墙
server { listen 8001; server_name localhost;
五、修改文件放置的根目录
location / { root C:\yuanxing;
六、添加文件显示代码,不添加就看不见放进去的不同版本文件夹(默认会去找index.html、start.html...)
location / { root C:\yuanxing; autoindex on; //这3行代码是控制要不要显示文件,文件大小之类的 autoindex_exact_size on; autoindex_localtime on; index index.html index.htm; }
七、配置好了就,启动客户端
也可以用,命令 shift +右键 打开命令行
开启: start nginx 关闭: nginx.exe -s stop 修改配置要 关闭在 启用。
这篇关于windows上用Nginx搭建Axure原型展示服务器的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-03-29fail2ban nginx
- 2024-03-18install nginx proxy manager
- 2024-01-2444从零开始用Rust编写nginx,命令行参数的设计与解析及说明
- 2024-01-22比Nginx更好用的Gateway!
- 2024-01-17nginx daemon off
- 2023-12-30Nginx Vhost Traffic Status 是什么意思-icode9专业技术文章分享
- 2023-12-26使用nginx搭建creates.io镜像(稀疏索引)
- 2023-11-18centos7编译安装Nginx教程。
- 2023-11-02nginx启动命令和停止命令
- 2023-10-25Centos7系统Nginx负载均衡如何安装和配置?