redis-server는 상태=227/NO_NEW_PRIVILEGES로 인해 Debian 10에서 서비스로 시작되지 않습니다.

redis-server는 상태=227/NO_NEW_PRIVILEGES로 인해 Debian 10에서 서비스로 시작되지 않습니다.

Digital Ocean 드롭릿에 Debian 10이 있는데 Redis를 서비스로 설치하고 실행하려고 하는데 NoNewPriviliges와 관련된 오류로 인해 시작되지 않습니다.

비슷한 질문을 검토했습니다.여기, 그러나 시도에는 변화가 없습니다.

저는 이것을 디버깅하는 데 정말 어려움을 겪고 있습니다. 나는 노력했다이것에 대해 읽고, 그러나 문제가 무엇인지 알 수 없습니다.

의 출력은 systemctl status redis-server.service다음과 같은 출력을 제공합니다.

● redis-server.service - Advanced key-value store
   Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2020-08-09 08:41:06 UTC; 53s ago
     Docs: http://redis.io/documentation,
           man:redis-server(1)
  Process: 9553 ExecStart=/usr/bin/redis-server /etc/redis/redis.conf (code=exited, status=227/NO_NEW_PRIVILEGES)

파일 /lib/systemd/system/redis-server.service은 다음과 같습니다.

[Unit]
Description=Advanced key-value store
After=network.target
Documentation=http://redis.io/documentation, man:redis-server(1)

[Service]
Type=forking
ExecStart=/usr/bin/redis-server /etc/redis/redis.conf
ExecStop=/bin/kill -s TERM $MAINPID
PIDFile=/run/redis/redis-server.pid
TimeoutStopSec=0
Restart=always
User=redis
Group=redis
RuntimeDirectory=redis
RuntimeDirectoryMode=2755

UMask=007
PrivateTmp=yes
LimitNOFILE=65535
PrivateDevices=yes
ProtectHome=yes
ReadOnlyDirectories=/
ReadWriteDirectories=-/var/lib/redis
ReadWriteDirectories=-/var/log/redis
ReadWriteDirectories=-/var/run/redis

NoNewPrivileges=true
CapabilityBoundingSet=CAP_SETGID CAP_SETUID CAP_SYS_RESOURCE
MemoryDenyWriteExecute=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectControlGroups=true
RestrictRealtime=true
RestrictNamespaces=true
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX

# redis-server can write to its own config file when in cluster mode so we
# permit writing there by default. If you are not using this feature, it is
# recommended that you replace the following lines with "ProtectSystem=full".
ProtectSystem=true
ReadWriteDirectories=-/etc/redis

[Install]
WantedBy=multi-user.target
Alias=redis.service

관련 정보