关闭。这个问题是off-topic .它目前不接受答案。
想改进这个问题? Update the question所以它是on-topic对于堆栈溢出。
10年前关闭。
Improve this question
实际上,我想要 WAMP 之类的东西(适用于 Windows)。 Apache 服务应始终停止。每当我需要它运行时,我都会转到“开始”菜单并将其打开。有没有办法让它在 Ubuntu 上成为可能?
最佳答案
使用以下命令从运行级别中删除 apache“自动启动”:
sudo update-rc.d apache2 remove
使用以下内容制作脚本:
#!/bin/bash
gksudo /etc/init.d/apache2 start
使其可运行
chmod 0755 apache-starter-shell-script-name
并在您想启动 apache 时运行它。
关于apache - 如何让 Apache 在 Ubuntu 上停止?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7229449/