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
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...
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 ...
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...
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...
Report error Solve the problem This way is OK....
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...
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...
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...
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. . ...
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...