我收到以下错误:
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 不存在。只有 7.2 文件夹存在,尽管我已经通过 Plesk 安装了 Php 7.4.3。
此后,我尝试在本指南的帮助下手动安装 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 新手,如果您能详细解释一下就好了。
谢谢你的时间。
谨致问候,克里斯