8分钟用Nginx搭建一个自己的网站

视频里面的文档在https://www.jarcheng.top/knowledge/website/记得点赞哦。
如果你的系统是centos7,安装脚本是下面这个。
01:16

yum install -y wget && wget -O install.sh https://download.bt.cn/install/install_6.0.sh && sh install.sh ed8484bec
修改nginx的配置,让用户可以访问博客。
05:25

server { listen 80; server_name qifan; index index.html index.htm; location / { root /www/server/nginx/html/blog; } }
效果展示
