Job for redis.service failed because the control process exited with error code. See “systemctl stat

tags: redis

[root@ebs-65684 bin]# systemctl start redis.service
Job for redis.service failed because the control process exited with error code. See "systemctl status redis.service" and "journalctl -xe" for details.
[root@ebs-65684 bin]# systemctl status redis.service
● redis.service - redis-server
   Loaded: loaded (/etc/systemd/system/redis.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2020-07-27 22:20:04 EDT; 19s ago
  Process: 21499 ExecStart=/usr/local/redis/bin/redis-server /usr/local/redis/bin/redis.conf (code=exited, status=1/FAILURE)

Jul 27 22:20:04 ebs-65684 systemd[1]: Starting redis-server...
Jul 27 22:20:04 ebs-65684 redis-server[21499]: 21499:C 27 Jul 2020 22:20:04.806 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
Jul 27 22:20:04 ebs-65684 redis-server[21499]: 21499:C 27 Jul 2020 22:20:04.806 # Redis version=5.0.3, bits=64, commit=00000000, modified=0, pid=21499, just started
Jul 27 22:20:04 ebs-65684 redis-server[21499]: 21499:C 27 Jul 2020 22:20:04.806 # Configuration loaded
Jul 27 22:20:04 ebs-65684 redis-server[21499]: 21499:M 27 Jul 2020 22:20:04.808 * Increased maximum number of open files to 10032 (it was originally set to 1024).
Jul 27 22:20:04 ebs-65684 redis-server[21499]: 21499:M 27 Jul 2020 22:20:04.809 # Could not create server TCP listening socket 127.0.0.1:6379: bind: Address already in use
Jul 27 22:20:04 ebs-65684 systemd[1]: redis.service: control process exited, code=exited status=1
Jul 27 22:20:04 ebs-65684 systemd[1]: Failed to start redis-server.
Jul 27 22:20:04 ebs-65684 systemd[1]: Unit redis.service entered failed state.
Jul 27 22:20:04 ebs-65684 systemd[1]: redis.service failed.

Note this: could not create server tcp listenging socket 127.0.0.1:6379: bind: address already in use

[root@ebs-65684 bin]# ./redis-cli
127.0.0.1:6379> shutdown
not connected> exit

Jul 27 22:37:13 ebs-65684 systemd[1]: Failed to start redis-server.
Jul 27 22:37:13 ebs-65684 systemd[1]: Unit redis.service entered failed state.
Jul 27 22:37:13 ebs-65684 systemd[1]: redis.service failed.

[root@ebs-65684 /]#  vi /etc/systemd/system/redis.service
[root@ebs-65684 /]# systemctl start redis.service
Warning: redis.service changed on disk. Run 'systemctl daemon-reload' to reload units.
^C
[root@ebs-65684 /]# systemctl daemon-reload

 

[Unit]
Description=redis-server
After=network.target

[Service]
#Type=forking
#PIDFile=/var/run/redis/redis.pid
ExecStart=/usr/local/redis/bin/redis-server /usr/local/redis/bin/redis.conf
User=redis
Group=redis
#PrivateTmp=true

[Install]
WantedBy=multi-user.target


 

Intelligent Recommendation

Job for docker.service failed because the control process exited with error code. See systemctl sta

The docker startup error is: [root@iz8vb4rhbik3h93v48ztfvz docker]# systemctl restart docker.service Job for docker.service failed because the control process exited with error code. See "systemc...

Job for jenkins.service failed because the control process exited with error code. See "systemctl st

systemctl status jenkins.service I see the reason because: Solution: Solution: 1> View current Java environment variables echo $JAVA_HOME 2> Copy the Java environment variable address, edit the ...

Job for network.service failed because the control process exited with error code. See “systemctl st

Virtual machine networking issues Restart the network card and report the following error: Job for network.service failed because the control process exited with error code. See “systemctl statu...

Job for jenkins.service failed because the control process exited with error code. See “systemctl st

Record a Jenkins startup error Jenkins has been booting up all the time, and the boot access failed today, so check it out and try to restart: Reported the above error, prompt to use the command:syste...

More Recommendation

Job for tomcat.service failed because the control process exited with error code. See “systemctl sta

CentOS 7 Configures Tomcat Self-Start Times The following error usesystemctl status tomcat.serviceCommand view error message The error message is lacking the Java_Home or JRE_HOME environment variable...

Solve Job for Docker.service Failed Because The Control Process Exited with error code. See "Systemctl S

Installing the installation of Docker Docker daemon in Ubuntu16.04 can't afford it, and report the following error: Job for docker.service failed because the control process exited with error code. Se...

Job for smbd.service failed because the control process exited with error code. See “systemctl statu

error One step one-step detection error At this time, I found that the problem of the configuration file is not set. Re-modify the configuration file At this time, I found it. then Enough...

Job for mysqld.service failed because the control process exited with error code. See “systemctl sta

Remember the server being attacked Since Ali Cloud has reminded my server being attacked, some ports have been banned, so I log in to the Ali Cloud web page to restart the ECS instance, the result. . ...

Job for nginx.service failed because the control process exited with error code. See “systemctl ....

Nginx abnormal Job for nginx.service failed because the control process exited with error code. See “systemctl status nginx.service” and “journalctl -xe” for details. Nginx Nor...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top