收到「無法啟動高效能 Web 伺服器和反向代理伺服器」。 redis安裝後

收到「無法啟動高效能 Web 伺服器和反向代理伺服器」。 redis安裝後

我收到以下錯誤:

Processing triggers for ureadahead (0.100.0-21) ...
N: Ignoring file 'plesk.list.ai_back' in directory '/etc/apt/sources.list.d/' as it has an invalid filename 

我遵循了這個指南: https://wp-rocket.me/blog/redis-object-caching/

但隨後出現了這個錯誤: sudo echo "extension=redis.so" > /etc/php/7.x/apache2/conf.d/redis.ini -> 錯誤:沒有這樣的檔案或目錄 我試著開啟 7.4、7.4.3 和 7.2,但是他們都不存在。

我不明白為什麼 7.4.3 不存在。儘管我已經透過 Plesk 安裝了 Php 7.4.3,但僅存在 7.2 資料夾。

之後我嘗試在本指南的幫助下手動安裝 7.4.3: https://joshtronic.com/2013/06/18/installing-php-redis-a-php-extension-for-redis/ 我剛剛換了版本。

之後我在嘗試透過終端機重新啟動 nginx 時收到以下錯誤:

root@MyName-plesk-ubuntu:/etc/php# /etc/init.d/nginx restart
[....] Restarting nginx (via systemctl): nginx.serviceJob for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.
 failed!

這是 nginx.service 輸出

    root@MyName-plesk-ubuntu:~# 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-03-23 08:29:07 UTC; 2h 17min ago
     Docs: man:nginx(8)
  Process: 18211 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)

Mar 23 08:29:07 MyName-plesk-ubuntu.local systemd[1]: Starting A high performance web server and a reverse proxy server...
Mar 23 08:29:07 MyName-plesk-ubuntu.local nginx[18211]: nginx: [warn] duplicate value "TLSv1" in /etc/nginx/conf.d/ssl.conf:1
Mar 23 08:29:07 MyName-plesk-ubuntu.local nginx[18211]: nginx: [warn] duplicate value "TLSv1.1" in /etc/nginx/conf.d/ssl.conf:1
Mar 23 08:29:07 MyName-plesk-ubuntu.local nginx[18211]: nginx: [warn] duplicate value "TLSv1.2" in /etc/nginx/conf.d/ssl.conf:1
Mar 23 08:29:07 MyName-plesk-ubuntu.local nginx[18211]: nginx: [emerg] "ssl_prefer_server_ciphers" directive is duplicate in /etc/nginx/conf.d/ssl.conf:3
Mar 23 08:29:07 MyName-plesk-ubuntu.local nginx[18211]: nginx: configuration file /etc/nginx/nginx.conf test failed
Mar 23 08:29:07 MyName-plesk-ubuntu.local systemd[1]: nginx.service: Control process exited, code=exited status=1
Mar 23 08:29:07 MyName-plesk-ubuntu.local systemd[1]: nginx.service: Failed with result 'exit-code'.
Mar 23 08:29:07 MyName-plesk-ubuntu.local systemd[1]: Failed to start A high performance web server and a reverse proxy server.

我需要刪除那個雙倍的檔案或重新命名嗎?我是linux新手,如果能詳細解釋一下就好了。

謝謝你的時間。

最好的問候,克里斯

相關內容