首页 > 其他 > 详细

nginx安装失败后重新安装

时间:2018-04-11 17:59:00      阅读:290      评论:0      收藏:0      [点我收藏+]
ubuntu安装nginx,由于80端口已经被占用,sudo apt-get install nginx安装一半异常退出,报错误:
dpkg: error processing package nginx (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
nginx-core
nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)

再往上查询会看到错误
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)

修复办法:
1.将80端口解绑,已占用的程序改用其他端口,将提示的错误解决后

2.运行以下命令卸载一半的安装:
sudo apt-get remove nginx*
sudo apt-get autoremove

  1. sudo apt-get install nginx即可重新安装

nginx安装失败后重新安装

原文:http://blog.51cto.com/hjun169/2097061

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!