debian 上的多个 apache 实例使用多实例脚本错误

问题描述

我正在尝试在 debian 上安装第二个 apache 实例。我使用了多实例脚本。在安装过程中,它说:

root@nextcloudpi:/usr/share/doc/apache2/examples# sudo sh setup-instance suitecrm2
Setting up /etc/apache2-suitecrm2 ...
systemd is in use,no init script installed
use the '[email protected]' service to control your new instance
sample commands:
systemctl start [email protected]
systemctl enable [email protected]
Setting up symlinks: a2enmod-suitecrm2 a2dismod-suitecrm2 a2ensite-suitecrm2 a2dissite-suitecrm2 a2enconf-suitecrm2 a2disconf-suitecrm2 apache2ctl-suitecrm2
Setting up /etc/logrotate.d/apache2-suitecrm2 and /var/log/apache2-suitecrm2 ...
Setting up /etc/default/apache-htcacheclean-suitecrm2
root@nextcloudpi:/usr/share/doc/apache2/examples# sudo systemctl edit apache2.service

所以 systemd 正在使用中,我在 init.d 中没有得到服务文件 当我尝试启动代码中提到的服务时,它说没有 apache2-suitecrm2.service。

我如何创建一个正确的 init.d 文件来启动服务,或者我如何停止 systemd 的工作以使其不被使用并且允许创建第二个实例的脚本放置脚本。

谢谢

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)