gpt4 book ai didi

linux - SLES 12 : Client service neither service nor target?

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:35:37 25 4
gpt4 key购买 nike

我正在使用安装了 rpm 的 SLES 12 VM。安装 rpm 时,我得到以下注释

hostname:~ # rpm -ivh BESAgent-9.5.8.38-sle11.x86_64.rpm
Preparing... ################################# [100%]
Updating / installing...
1:BESAgent-9.5.8.38-sle11 ################################# [100%]

Note: This output shows SysV services only and does not include native
systemd services. SysV configuration data might be overridden by native
systemd configuration.

If you want to list systemd services use 'systemctl list-unit-files'.
To see services enabled on particular target use
'systemctl list-dependencies [target]'.

besclient 0:off 1:off 2:on 3:on 4:off 5:on 6:off

当我尝试启动服务时,我不断收到错误

hostname:~ # service besclient start
besclient is neither service nor target!?

我认为这是因为我在安装 RPM 时收到的提示。我还注意到 systemctl list-unit-files 没有列出 besclient.service

当我尝试使用 init.d 启动服务时,我得到以下信息

hostname:~ #  /etc/init.d/besclient start
redirecting to systemctl start besclient.service
Failed to start besclient.service: Unit besclient.service failed to load: No such file or directory.

以下是操作系统版本的详细信息:

SUSE Linux Enterprise Server 12 (x86_64)
VERSION = 12
PATCHLEVEL = 2
# This file is deprecated and will be removed in a future service pack or release.
# Please check /etc/os-release for details about this release.
NAME="SLES_SAP"
VERSION="12-SP2"
VERSION_ID="12.2"
PRETTY_NAME="SUSE Linux Enterprise Server for SAP Applications 12 SP2"
ID="sles_sap"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles_sap:12:sp2"

最佳答案

您遇到的问题与在 SUSE 11 和 SUSE 12 上管理服务的不同方式有关。查看您提供的信息似乎您正在尝试安装一个包,其中包含针对 SUSE 11 的服务基于 SUSE 12 的服务器。SUSE 11.x 使用 sysv initd,SUSE 12.x 使用 systemd 进行服务管理。您应该获取支持 SUSE Linux Enterprise Server 12 的包或使用当前包中的 initd 脚本来创建您自己的服务定义的 systemd 版本。通常这很简单。 Example : https://serverfault.com/questions/690155/whats-the-easiest-way-to-make-my-old-init-script-work-in-systemd

关于linux - SLES 12 : Client service neither service nor target?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49510135/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com