前几天更新 nginx 后,我无法再启动它。即使我重新安装它,apt-get purge nginx-full -y && apt-get autoremove -y && apt-get install nginx-full
它也根本无法启动。这是我运行上述命令时收到的消息:
https://pastebin.com/Sus4CdFY(因为我需要将反垃圾邮件外包)
当我运行这个时systemctl status nginx.service
我得到了这个:
● 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 Mon 2020-01-20 19:12:50 CET; 3min 7s ago
Docs: man:nginx(8)
Main PID: 13451 (code=exited, status=0/SUCCESS)
Jan 20 19:12:50 myServer systemd[1]: Starting A high performance web server and a reverse proxy server...
Jan 20 19:12:50 myServer nginx[7110]: nginx: [emerg] dlopen() "/usr/share/nginx/modules/ngx_http_auth_pam_module.so" failed (/usr/share/nginx/modules/ngx_http_auth_pam_module.so: cannot open shared object file: No such file or directory) in /etc/nginx/modules-enabled/50-mod-http-auth-pam.conf:1
Jan 20 19:12:50 myServer nginx[7110]: nginx: configuration file /etc/nginx/nginx.conf test failed
Jan 20 19:12:50 myServer systemd[1]: nginx.service: Control process exited, code=exited status=1
Jan 20 19:12:50 myServer systemd[1]: nginx.service: Failed with result 'exit-code'.
Jan 20 19:12:50 myServer systemd[1]: Failed to start A high performance web server and a reverse proxy server.
我正在使用带有 apache2 和 nginx 的 Plesk。顺便提一下,已经访问过以下帖子: Ubuntu 16.04 安装 Nginx 出错 卸载 nginx 的最佳方法是什么 如何修复 nginx 包?
dpkg-deb:错误:粘贴子进程被信号终止(管道断裂)(我用它来更新 nginx,我用 替换了 nvidia 行nginx-core_1.14.0-0ubuntu1.7_amd64.deb
)
我希望你们中一些善良的绅士或女士能够帮助我。