Setting up nginx-full (1.6.2-5+deb8u1) ...
Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript nginx, action "start" failed.
dpkg: error processing package nginx-full (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of nginx:
nginx depends on nginx-full (>= 1.6.2-5+deb8u1) | nginx-light (>= 1.6.2-5+deb8u1) | nginx-extras (>= 1.6.2-5+deb8u1); however:
Package nginx-full is not configured yet.
Package nginx-light is not installed.
Package nginx-extras is not installed.
nginx depends on nginx-full (<< 1.6.2-5+deb8u1.1~) | nginx-light (<< 1.6.2-5+deb8u1.1~) | nginx-extras (<< 1.6.2-5+deb8u1.1~); however:
Package nginx-full is not configured yet.
Package nginx-light is not installed.
Package nginx-extras is not installed.
dpkg: error processing package nginx (--configure):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.19-18+deb8u3) ...
Processing triggers for systemd (215-17+deb8u3) ...
Errors were encountered while processing:
nginx-full
nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)
以上是运行sudo apt-get install nginx时给出的错误。我尝试删除apache和nginx并重新安装,但它也会出现同样的错误。
答案 0 :(得分:4)
我遇到了同样的问题。 我没有Apache,没有其他东西挡住我的端口80。 我无法用
安装nginxsudo apt-get install nginx
也不是
sudo apt-get install nginx-common nginx-full
一周之后,我偶然发现了这个小博客:https://etc.banana.fish/?p=75
在这篇博客中,解决方案是:
sudo apt-get install nginx-common
listen [::]:80 default_server;
(我是使用root用户创建的)sudo apt-get update
然后sudo apt-get upgrade
。sudo apt-get install nginx-full
并且它有效了!后来当我输入我的远程服务器的IP时,我可以看到nginx的Titlescreen!
答案 1 :(得分:3)
你没有发布systemctl status nginx.service
的输出,所以这可能不对,但我遇到了这个问题,因为我有一个旧的nginx安装,我已经忘记了。
所以,我清除了nginx并重新安装:
apt-get purge nginx-full nginx-common
apt-get install nginx-full
然后我收到了另一个错误,得到了详细信息:systemctl status nginx.service
就我而言
nginx:[emerg] bind()到[::]:80失败(98:地址已在使用中)
所以我有另一个Web服务器在端口80上侦听。
要修复,我编辑了默认的nginx网站nano /etc/nginx/sites-available/default
并删除了端口80上的监听。
我只需要SSL,所以:
server {
listen 443 ssl;
//rest of config....
}
答案 2 :(得分:2)
帮助我:
public void load(View view) {
ObjectInput in;
List<MyStack> surf= null;
try {
in = new ObjectInputStream(new FileInputStream("Scan%05d.data"));
surf= (List<MyStack>) in.readObject();
in.close();
} catch (Exception e) {e.printStackTrace();}
Model model= new Model(surf);
Intent intent = new Intent(this, EditorPresenter.class);
intent.putExtra("model", model);
startActivity(intent);
}
答案 3 :(得分:0)
我在ubuntu16 Amazon EC2实例上安装nginx时遇到了类似的问题,原因似乎是我在我的安全组设置下摆弄了入站端口 理想情况下,他们应该: HTTP TCP 80 0.0.0.0/0 和
HTTP TCP 80 :: / 0
我出于某种原因错误地删除了其中一个,当我修复了所有内容已经排序时