Redis. The service content of the file:
[Unit]
Description=The redis - server Process Manager
Documentation=https://redis.io/
After=network. The target
[Service]
Type=forking
ExecStart=/home/iotedu/webapp/service/redis - 5.0.7/SRC/redis server/home/iotedu/webapp/service/redis - 5.0.7/redis. Conf - daemonize no
ExecStop=/home/iotedu/webapp/service/redis - 5.0.7/SRC/redis - 127.0.0.1 cli - h - p 6379 shutdown
PrivateTmp=true
[Install]
WantedBy=multi - user. Target
Set up after the systemctl start redis start the service, an error:
Warning: The unit file, The source configuration file or drop - ins of redis. Service changed on disk. Run 'daemon - reload systemctl to reload units.
Job for redis. The service failed because the control process exited with the error code.
See "systemctl status redis. Service" and "journalctl - xe" for details.
Use systemctl status redis view:
Redis. Service - The redis - server Process Manager
The Loaded: the Loaded (/usr/lib/systemd/system/redis. Service; Disabled; Vendor preset: disabled)
Active: failed (Result: exit - code) since Sat 15:21:22 2020-05-09 CST; Line 12 s
Docs: https://redis.io/
Process: 24847 ExecStart=/home/iotedu/webapp/service/redis - 5.0.7/SRC/redis server/home/iotedu/webapp/service/redis - 5.0.7/redis. Conf - daemonize no (code=exited, the status=203/EXEC)
The Main PID: 12781 (code=exited, status=217/USER)
May 09 15:21:22 localhost. Localdomain systemd [1] : Starting The redis - server Process Manager...
May 09 15:21:22 localhost. Localdomain systemd [1] : redis. Service: Control the process exited, code=exited the status=203
May 09 15:21:22 localhost. Localdomain systemd [1] : redis. Service: Failed with result 'exit - code.
May 09 15:21:22 localhost. Localdomain systemd [1] : Failed to start The redis - server Process Manager.
The great spirit show for all of you!
CodePudding user response:
First systemctl daemon - reloadIn systemctl Start