1、相关依赖库的安装
apt-get install build-essential
apt-get install libtool
apt-get update
apt-get install libpcre3 libpcre3-dev
apt-get install zliblg-dev
apt-get install openssl
2、安装
apt-get install nginx
3、前端项目地址配置
cd /etc/nginx/sites-enabled
![](https://i-blog.csdnimg.cn/blog_migrate/7606e1e324decfb8d90bab6369a7ebb7.png)
apt-get install build-essential
apt-get install libtool
apt-get update
apt-get install libpcre3 libpcre3-dev
apt-get install zliblg-dev
apt-get install openssl
apt-get install nginx
cd /etc/nginx/sites-enabled