0
点赞
收藏
分享

微信扫一扫

nginx 安装及配置

小月亮06 2022-02-15 阅读 37

nginx配置

1. 安装

安装文档

2. http模块配置

http{

	upstream a{
	}
	# root 表示http://localhost/ 查找html下的index.html页面
	# root /usr/local/index 也可以用全路径
	server {
		listen 80
		location / {
			
			root index.html
		}
	}
	
}

举报

相关推荐

0 条评论