将AEM6.3设置为服务Linux Redhat 7.3版
我正在尝试将AEM6.3环境设置为服务,并遵循以下步骤。但是有一些问题- 我有RedHat 7.3版linux服务器。 我正在参考将AEM6.3设置为服务Linux Redhat 7.3版,aem,redhat,systemd,Aem,Redhat,Systemd,我正在尝试将AEM6.3环境设置为服务,并遵循以下步骤。但是有一些问题- 我有RedHat 7.3版linux服务器。 我正在参考 aem文件(/usr/bin/aem) !/bin/bash aem.system(/etc/systemd/system)(找不到system.d,因此放置了此文件systemd) [单位] Description=Adobe体验管理器 [Service] Type=simple ExecStart=/usr/bin/aem start ExecStop=/us
[Service]
Type=simple
ExecStart=/usr/bin/aem start
ExecStop=/usr/bin/aem stop
ExecReload=/usr/bin/aem restart
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
#chmod u+rwx /usr/bin/aem
#chmod u+rwx /etc/systemd/system/aem.system
#cd /etc/systemd/system
#systemctl enable aem.system
#systemctl enable aem.system
**Failed to execute operation: No such file or directory**
我是不是走错了一步
谢谢 将自定义单位文件放置在
/etc/systemd/system
中是正确的,因为这是所有解包文件的位置。但是,您的文件实际上应该称为aem.service
。据我所知,systemd不会拾取以.system
结尾的文件。另一方面:那些过于宽松的文件系统权限确实是不必要的,755应该足够了
另外:如果确实存在链接指南中建议的
/etc/init.d/aem6
文件,systemd的SysV兼容层应该能够读取和启用systemctl中的一个,现在aem6是您需要做的一切。您将自定义单元文件放置在/etc/systemd/system
中是正确的,因为这是所有解包文件的位置。但是,您的文件实际上应该称为aem.service
。据我所知,systemd不会拾取以.system
结尾的文件。另一方面:那些过于宽松的文件系统权限确实是不必要的,755应该足够了
另外:如果真的有一个/etc/init.d/aem6
文件,正如链接指南所建议的那样,systemd的SysV兼容层应该能够在中读取该文件,并且systemctl enable——现在aem6
就是您需要做的一切
#systemctl enable aem.system
**Failed to execute operation: No such file or directory**