安装cloudflare railgun过程出现的问题

● railgun.service – LSB: Railgun listener
Loaded: loaded (/etc/rc.d/init.d/railgun; bad; vendor preset: disabled)
Active: failed (Result: resources) since Fri 2019-12-20 21:03:40 CST; 1min 51s ago
Docs: man:systemd-sysv-generator(8)
Process: 4142 ExecStart=/etc/rc.d/init.d/railgun start (code=exited, status=0/SUCCESS)

railgun[4142]: Railgun successfully backgrounded, ensuring proper startup…
railgun[4142]: [FAILED]
railgun[4142]: Error starting Railgun as a daemon. Running in foreground…
su[4167]: (to railgun) root on none
railgun[4142]: Error starting: Error connecting to memcached server 127.0.0.1:11211: dial tcp 127.0.0.1:11211: connect: connection refused
railgun[4142]: [FAILED]
systemd[1]: New main PID 4169 does not exist or is a zombie.
systemd[1]: Failed to start LSB: Railgun listener.
systemd[1]: Unit railgun.service entered failed state.
systemd[1]: railgun.service failed.

研究了半天,发现是memcached没有启动。(默认已经安装上了)

用命令启动之,正常。

systemctl start memcached

systemctl enable memcached

后一个命令是设置会开启启动服务。