systemctl enable无效,产生无效参数

时间:2018-05-22 11:10:54

标签: rabbitmq systemctl

在运行systemctl enable时,我得到:Operation failed: Invalid argument

root@1cdef67221f3:/etc/rabbitmq# systemctl enable rabbitmq-server
Operation failed: Invalid argument

以下是systemctl详细信息:

    root@1cdef67221f3:/etc/rabbitmq# systemctl --version
    systemd 204
    +PAM +LIBWRAP +AUDIT +SELINUX +IMA -SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ
    root@1cdef67221f3:/etc/rabbitmq# systemctl list-unit-files | grep enabled
    syslog.service                enabled
    remote-fs.target              enabled

这是rabbitmq的详细信息:

        root@1cdef67221f3:/etc/rabbitmq# rabbitmq-server

                  RabbitMQ 3.2.4. Copyright (C) 2007-2013 GoPivotal, Inc.
      ##  ##      Licensed under the MPL.  See http://www.rabbitmq.com/
      ##  ##
      ##########  Logs: /var/log/rabbitmq/rabbit.log
      ######  ##        /var/log/rabbitmq/rabbit-sasl.log
      ##########
                  Starting broker... completed with 0 plugins.

2 个答案:

答案 0 :(得分:0)

您可以尝试以下命令:

systemctl enable rabbitmq-server.service

答案 1 :(得分:0)

从[安装]部分中删除别名行