|  |      1Momostudent      2019-11-20 14:07:53 +08:00 截图看不到 ,为什么不是  sudo  apt-get install  nginx 或者编译安装 | 
|  |      2PolarisTime OP @Momostudent #1 apt-get 和 apt 都执行过了 报错如下 root@raspberrypi:~/lnmp1.6# apt-get install nginx Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package nginx 编译安装还没有试 我看了下网上的教程都是一键 apt install nginx | 
|  |      3ysc3839      2019-11-20 14:25:47 +08:00 有执行 apt update 吗? | 
|  |      5ysc3839      2019-11-20 14:28:41 +08:00 用的是什么发行版?有可能这个发行版不带 nginx ? | 
|  |      6momocraft      2019-11-20 14:29:24 +08:00 这是什么发行版 raspbian? | 
|  |      7PHPer233      2019-11-20 14:49:40 +08:00 via iPhone nginx 不在官方软件仓库里,需要安装 nginx 自己的仓库, To set up the apt repository for stable nginx packages, run the following command: echo "deb http://nginx.org/packages/debian `lsb_release -cs` nginx" \ | sudo tee /etc/apt/sources.list.d/nginx.list | 
|  |      8PolarisTime OP |