- 使用apt安装最新Nginx
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:nginx/stable
sudo apt-get updatesudo
apt-get install nginx
2.安装完成后配置文件所在位置
/etc/nginx

3.添加配置文件(参考这篇文章)
https://stackoverflow.com/questions/5009324/node-js-nginx-what-now?rq=1
网友评论