php - apache2 服务重新启动失败 - 无法启动 apache2.service:未找到单元
问题描述
当我尝试重新启动 apache 服务器时,我得到了以下响应。
重定向到 /bin/systemctl start apache2.service
无法启动 apache2.service:未找到单元。
解决方案
您正在使用不同的 apache 服务。
如果您使用相同的服务,请运行它。
systemctl restart httpd
或者
apachectl restart
推荐阅读
- django - 我无法在 Django 项目中创建迁移应用程序名称
- geoserver - 为什么geoserver中的栅格数据是空白的?
- python - 在后台运行 python 脚本后得到提示
- java - 从相机或画廊拍摄图像并在活动中显示
- c# - 会话变量不为 Chrome/Android 存储
- python - 使用 json.dump 时附加日期和时间戳?
- omnet++ - 快速模式下的模拟需要大量时间
- javascript - 如何一次显示一个警报?
- docker - Owncloud docker 容器未运行(执行格式错误)
- c# - 使用 Web.config 转换删除 appSettings 部分中的属性