http://emilientaque.fr/2010/01/how-to-disable-apache2-from-running-on-startup/
How to disable apache2 from running on startup
I was trying to remove the following warning from passenger-memory-stats, I had to install apache2 but without running it :
*** WARNING: The Apache executable cannot be found.
Please set the APXS2 environment variable to your 'apxs2' executable's filename,
or set the HTTPD environment variable to your 'httpd' or 'apache2' executable's filename.
# To stop apache2 for this session only:
sudo /etc/init.d/apache2 stop
# To remove apache2 permanently from startup scripts:
sudo update-rc.d apache2 remove
# To reinstate apache2 in the startup scripts:
sudo update-rc.d apache2 defaults
分享到:
相关推荐
This shows how to disable control alt and delete by tricking the computer into thinking that the screensaver is running.
As there are a lot questions about "how to disable home button in android?" on Stack Overflow, such as how to disable home button in android? Android - Is It possible to disable the click of home ...
后仿
2. **移除或注释服务**:打开该文件,找到`service hvdcp_opti /system/bin/hvdcp_opti`这一行,可以将其删除或使用`#`符号进行注释处理。例如: ``` # service hvdcp_opti /system/bin/hvdcp_opti class main ...
2. Visual Basic编程:利用VB语法编写控制窗口行为的代码。 3. GUI控件的编程:理解和操作VB中的控件对象,如Form和Module。 4. 文件和资源管理:理解不同类型的项目文件及其作用。 5. 用户界面设计:通过Form1.frm...
Severity Code Description ... To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 解决方案:更改预处理定义 右击项目名,选择Properties 在c/c++下选择Preprocessor 点击图
- 通过 `svcadm` 命令管理服务状态,例如:`svcadm enable apache2` 用于启动服务,`svcadm disable apache2` 用于关闭服务。 - 使用 `svcs -l apache2` 查看服务的状态和详细信息。 接下来是 MySQL 的安装: 1....
Apache Log4j2 紧急缓解措施 Apache Log4j2 是一个流行的 Java 日志记录工具,但最近出现了严重的安全漏洞, Apache Log4j2 紧急缓解措施旨在帮助开发者尽快修复该漏洞,避免攻击者的攻击。 一、修改启动脚本 在...
docudel.zip This example shows how to clear the document history on the start menu.<END><br>2 , BatteryAPIdemo.zip This example demonstrates how to "To get information about the battery status ...
- Updated license management, in an attempt to remove a rare crash on startup. Release 5.3 build 1012.0002 WIN32 release 31 October 2007 - New build of Rebooter (64-bit Windows correction). - ...
How to enable and disable autocorrect keywords with syntax highlighting Insert Menu Commands UltraEdit includes several special insert functions under the Insert menu. You can use these functions to ...
This paper will present a complete overview of PatchGuard mecanisms, from the initialization to the Blue Screen Of Death, and insights about how we implemented a driver able to disable it. Especially,...
使用 `tar jxvf httpd-2.2.2.tar.bz2` 命令来解压下载的Apache 2.2安装包。接下来进入解压后的目录 `httpd-2.2.0`。 2. **修改源码中的最大线程数和客户端数目** 在 `server/mpm/worker/worker.c` 文件中,将...
在本文中,我们将深入探讨如何在Linux环境下安装Apache并配置中文目录支持,同时解决在添加模块和使用mod_encoding模块过程中可能遇到的问题。Apache HTTP Server是一个广泛使用的开源Web服务器,其可扩展性和灵活性...
please read the document "upgrading_to_v4.txt" before you begin working on your existing projects. Note about "Property does not exist" errors: Since all demos were developed with the latest ...
The boot.ini option /3GB was created for those cases where systems actually support greater than 2 GB of physical memory and an application can make use of it This capability allows memory intensive ...
yum install httpd -y --disablerepo=* --enablerepo=apache ``` 5. **配置Apache**:安装完成后,需要对Apache进行基本配置。主要的配置文件是 `/etc/httpd/conf/httpd.conf`,在这里可以设置监听端口、日志位置...
虽然文章未详述具体步骤,但遵循上述SMF命令原理,可以通过`svcadm enable apache`启动Apache服务,`svcadm disable apache`关闭服务,以及`svcs apache`查看服务状态。 #### 结论 面对Apache在Solaris环境中的...
2. **Apache安装**: - 在RHEL7系统中,可以使用`yum -y install httpd`命令来安装Apache服务器。确保系统的软件源能够访问到最新的版本,如`http://updates.redhat.com`或`http://www.apache.org`。 3. **Apache...