smu*_*che 8 linux centos apache-2.2
我正在运行安装了 Apache 的 CentOS。它会自动启动(脚本在 /etc/init.d 中)。由于这是一个独立的数据库服务器,我不需要运行 Apache。如何禁用启动?只是删除/etc/init.d 中的文件?
Kyl*_*ndt 20
# chkconfig <servicename> off
然后验证:
chkconfig --list | grep <servicename>
因此chkconfig httpd off,您可能想要阅读有关man init. 验证应返回httpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off。如果您想在不重新启动 run 的情况下停止它/etc/init.d/httpd stop。所有这些都需要使用 root 权限来完成。
| 归档时间: |
|
| 查看次数: |
17065 次 |
| 最近记录: |