debian
1.安装nginx
apt-get install nginx
设置开机启动:
systemctl enable nginx
2.配置nginx
配置文件地址:/etc/nginx/sites-enabled/default
默认网页地址(可在配置文件中查看):/var/www/html
https://baijiahao.baidu.com/s?id=1650170269926650594&wfr=spider&for=pc
原文:https://www.cnblogs.com/wintertone/p/12630041.html