我正在尝试使用dokku将Web应用程序部署到该大学的Debian GNU / Linux 9(拉伸)服务器上。使用apt
执行任何操作或执行dokku提供的用于安装Docker的脚本后,出现了以下错误。
root@red:/var/www/webapp# dpkg -i --force-all /var/cache/apt/archives/dokku_0.12.10_amd64.deb
(Lese Datenbank ... 82219 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../dokku_0.12.10_amd64.deb ...
nginx.service is not active, cannot reload.
invoke-rc.d: initscript nginx, action "reload" failed.
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.
invoke-rc.d: initscript nginx, action "start" failed.
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2018-07-04 21:29:58 CEST; 29ms ago
Docs: man:nginx(8)
Process: 14788 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=1/FAILURE)
Process: 14785 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
Main PID: 426 (code=exited, status=0/SUCCESS)
CPU: 66ms
Jul 04 21:29:56 red nginx[14788]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
Jul 04 21:29:56 red nginx[14788]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
Jul 04 21:29:57 red nginx[14788]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
Jul 04 21:29:57 red nginx[14788]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
Jul 04 21:29:58 red nginx[14788]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
Jul 04 21:29:58 red nginx[14788]: nginx: [emerg] still could not bind()
Jul 04 21:29:58 red systemd[1]: nginx.service: Control process exited, code=exited status=1
Jul 04 21:29:58 red systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Jul 04 21:29:58 red systemd[1]: nginx.service: Unit entered failed state.
Jul 04 21:29:58 red systemd[1]: nginx.service: Failed with result 'exit-code'.
dpkg: error processing /var/cache/apt/archives/dokku_0.12.10_amd64.deb (--install):
Unterprozess neues pre-installation-Skript gab den Fehlerwert 1 zurück
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
nginx.service is not active, cannot reload.
Errors were encountered while processing:
/var/cache/apt/archives/dokku_0.12.10_amd64.deb
我已经尝试过解决apt
和nginx
的解决方案,但是没有什么真正的帮助,我不确定问题出在哪里。这些东西一无所知。