Memcached service error: cannot read file data: Error 21

when compiling and installing memcached, I was prompted that the libevent library could not be found, so the problem that the libevent library could not be found was solved through soft links. Error occurs when recompiling and installing memcached, starts, prompting: cannot read file data: Error 21

[root@iZj6c0du2yloe6yh4292lkZ /]-sharp /usr/local/bin/memcached -P /tmp/memcached.pid -d -m 20 -p 11211 -u root
/usr/local/bin/memcached: error while loading shared libraries: /lib64/libevent-2.1.so.6: cannot read file data: Error 21
[root@iZj6c0du2yloe6yh4292lkZ ~]-sharp systemctl status memcached.service
 memcached.service - SYSV: The memcached daemon is a network memory cache service.
   Loaded: loaded (/etc/rc.d/init.d/memcached; bad; vendor preset: disabled)
   Active: failed (Result: exit-code) since Wed 2018-05-02 14:42:55 CST; 17s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 14855 ExecStart=/etc/rc.d/init.d/memcached start (code=exited, status=1/FAILURE)

May 02 14:42:55 iZj6c0du2yloe6yh4292lkZ systemd[1]: Starting SYSV: The memcached da....
May 02 14:42:55 iZj6c0du2yloe6yh4292lkZ systemd[1]: memcached.service: control proc...1
May 02 14:42:55 iZj6c0du2yloe6yh4292lkZ systemd[1]: Failed to start SYSV: The memca....
May 02 14:42:55 iZj6c0du2yloe6yh4292lkZ systemd[1]: Unit memcached.service entered ....
May 02 14:42:55 iZj6c0du2yloe6yh4292lkZ memcached[14855]: Starting memcached: chown:ry
May 02 14:42:55 iZj6c0du2yloe6yh4292lkZ systemd[1]: memcached.service failed.
May 02 14:42:55 iZj6c0du2yloe6yh4292lkZ memcached[14855]: /bin/bash: memcached: comm...
May 02 14:42:55 iZj6c0du2yloe6yh4292lkZ memcached[14855]: [FAILED]
Hint: Some lines were ellipsized, use -l to show in full.
[root@iZj6c0du2yloe6yh4292lkZ ~]-sharp journalctl -xe
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit session-968.scope has finished starting up.
-- 
-- The start-up result is done.
May 02 14:42:45 iZj6c0du2yloe6yh4292lkZ systemd-logind[491]: New session 968 of user root.
-- Subject: A new session 968 has been created for user root
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/multiseat
-- 
-- A new session with the ID 968 has been created for the user root.
-- 
-- The leading process of the session is 14829.
May 02 14:42:45 iZj6c0du2yloe6yh4292lkZ systemd[1]: Starting Session 968 of user root.
-- Subject: Unit session-968.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit session-968.scope has begun starting up.
May 02 14:42:45 iZj6c0du2yloe6yh4292lkZ sshd[14829]: pam_unix(sshd:session): session opened for user root by (uid=0)
May 02 14:42:55 iZj6c0du2yloe6yh4292lkZ polkitd[478]: Registered Authentication Agent for unix-process:14849:48744428 (system bus name :1.1964 [/usr/bin/pkttyagent 
May 02 14:42:55 iZj6c0du2yloe6yh4292lkZ systemd[1]: Starting SYSV: The memcached daemon is a network memory cache service....
-- Subject: Unit memcached.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit memcached.service has begun starting up.
May 02 14:42:55 iZj6c0du2yloe6yh4292lkZ polkitd[478]: Unregistered Authentication Agent for unix-process:14849:48744428 (system bus name :1.1964, object path /org/f
May 02 14:42:55 iZj6c0du2yloe6yh4292lkZ systemd[1]: memcached.service: control process exited, code=exited status=1
May 02 14:42:55 iZj6c0du2yloe6yh4292lkZ systemd[1]: Failed to start SYSV: The memcached daemon is a network memory cache service..
-- Subject: Unit memcached.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit memcached.service has failed.
-- 
-- The result is failed.
May 02 14:42:55 iZj6c0du2yloe6yh4292lkZ systemd[1]: Unit memcached.service entered failed state.
May 02 14:42:55 iZj6c0du2yloe6yh4292lkZ memcached[14855]: Starting memcached: chown: cannot access  "/var/run/memcached" : No such file or directory
May 02 14:42:55 iZj6c0du2yloe6yh4292lkZ systemd[1]: memcached.service failed.
May 02 14:42:55 iZj6c0du2yloe6yh4292lkZ memcached[14855]: /bin/bash: memcached: command not found
May 02 14:42:55 iZj6c0du2yloe6yh4292lkZ memcached[14855]: [FAILED]
Mar.07,2021

Library is wrong. Recompile and install

Menu