按照CentOS安装nginx的流程,把
yum -y install gcc zlib zlib-devel pcre-devel openssl openssl-devel
改成
sudo apt-get install gcc zlib zlib-devel pcre-devel openssl openssl-devel
执行,报错
‘Unable to locate package zlib’
这里ububtu没有上述的四个包,改为下面四个包
sudo apt install zlib1g
sudo apt install zlib1g-dev
sudo apt-get install libpcre3-dev
sudo apt-get install libssl-dev