我使用的是安装了rpm的SLES 12虚拟机。在安装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"发布于 2018-04-05 19:11:58
您遇到的问题与在SUSE 11和SUSE 12上管理服务的方式不同有关。查看您提供的信息,您似乎正在尝试在基于SUSE 12的服务器上安装一个包含针对SUSE 11的服务的软件包。SUSE 11.x使用sysv initd,SUSE 12.x使用systemd进行服务管理。您应该获得一个支持SUSE Linux Enterprise Server12的包,或者使用当前包中的initd脚本创建您自己的systemd版本的服务定义。通常,它是非常直接的。Example:https://serverfault.com/questions/690155/whats-the-easiest-way-to-make-my-old-init-script-work-in-systemd
发布于 2020-07-23 02:34:17
该问题与可在您的BES安装文件夹中找到的操作站点报头文件(actionsite.afxm)相关。将actionsite报头复制到Linux BES客户端(报头包含配置、许可证和安全信息)。报头应该命名为"actionsite.afxm“,因此将其重命名为"actionsite.afxm”,并将其放在以下位置: /etc/opt/BESClient/actionsite.afxm。
# ls /etc/opt/BESClient/actionsite.afxm
/etc/opt/BESClient/actionsite.afxm
# service besclient start
# systemctl status besclient.service
● besclient.service - LSB: Start BESClient daemon
Loaded: loaded (/etc/init.d/besclient; bad; vendor preset: disabled)
Active: active (running) since...
Docs: man:systemd-sysv-generator(8)
Process: 35168 ExecStart=/etc/init.d/besclient start (code=exited, status=0/SUCCESS)
Tasks: 4 (limit: 512)
CGroup: /system.slice/besclient.service
├─35178 /opt/BESClient/bin/BESClient
└─35179 /opt/BESClient/bin/BESClient -RPMHelperhttps://stackoverflow.com/questions/49510135
复制相似问题