- nginx安装
sudo apt-get install nginx
- nginx 简单配置
vim /etc/nginx/sites-available/default
server {
listen 80 default_server;
listen [::]:80 default_server;
#root /var/www/html;
root /home/qtimes/test/dist; #此目录存放显示内容
}
- nginx生效
sudo nginx -c /etc/nginx/nginx.conf
sudo nginx -s reload
标签:default,sudo,server,nginx,ubuntu,80,安装,listen
From: https://www.cnblogs.com/wanqieddy/p/17592733.html