“vsftpd.service:cgroup为空”服务无法启动

我有一台CentOS 7.1机器,最近安装了当前没有configuration的其他服务。 我已经通过yum安装了vsftpd,但是当我启动服务时(通过systemctl ),我得到了回应:

作业vsftpd.service失败,因为控制进程退出错误代码。 有关详细信息,请参阅“systemctl status vsftpd.service”和“journalctl -xe”。

systemctl status不是特别有启发性的:

 ● vsftpd.service - Vsftpd ftp daemon Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since Tue 2017-05-02 11:17:55 BST; 49s ago Process: 111420 ExecStart=/usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf (code=exited, status=1/FAILURE) 

journalctl -xe提供了以下内容(为了简洁,删除了时间戳):

 systemd[1]: Received SIGCHLD from PID 111421 (vsftpd). systemd[1]: Child 111420 (vsftpd) died (code=exited, status=1/FAILURE) systemd[1]: Child 111420 belongs to vsftpd.service systemd[1]: vsftpd.service: control process exited, code=exited status=1 systemd[1]: vsftpd.service got final SIGCHLD for state start systemd[1]: vsftpd.service changed start -> failed systemd[1]: Job vsftpd.service/start finished, result=failed systemd[1]: Failed to start Vsftpd ftp daemon. systemd[1]: Sent message type=signal sender=n/a destination=n/a object=/org/freedesktop/systemd1 interface=org.freedesktop.systemd1.Manager member=JobRemoved cookie=9 reply_cookie=0 error=n/a systemd[1]: Sent message type=signal sender=n/a destination=n/a object=/org/freedesktop/systemd1 interface=org.freedesktop.systemd1.Manager member=JobRemoved cookie=17180 reply_cookie=0 error=n/a systemd[1]: Unit vsftpd.service entered failed state. systemd[1]: vsftpd.service failed. systemd[1]: vsftpd.service: cgroup is empty systemd[1]: Child 111421 (vsftpd) died (code=exited, status=2/INVALIDARGUMENT) 

唯一有意义的是倒数第二行vsftpd.service: cgroup is empty 。 但是在这方面我找不到任何有用的东西。 configuration文件是从yum回购默认设置。 我在testing环境中遵循这些相同的步骤,他们工作得很好。

我的问题是CentOS 7上vsftpd的默认安装需要在主机上启用IPv6。 就我而言,事实并非如此,我也没有注意到我的本地虚拟机和我们的服务提供商给了我们的区别。

在configuration文件/etc/vsftpd/vsftpd.conf更改行(靠近文件末尾):

 listen=NO listen_ipv6=YES 

改为阅读为:

 listen=YES listen_ipv6=NO 

服务现在开始!