小编Max*_*ell的帖子

永久禁用初始化服务

我刚刚配置了一个运行 CentOS 6 的新 VPS,它与 Apache 一起提供。

我想禁用 Apache,因为我将使用 Nginx。

我知道我可以删除 /etc/init.d/ 中的脚本,但我不想这样做,因为它是系统附带的一个库存。我宁愿有一种优雅的方式来禁用该服务。

我以为我可以在 /etc/inittab 中放一些东西,但 inittab 包含:

# inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init. …
Run Code Online (Sandbox Code Playgroud)

httpd centos init upstart

10
推荐指数
2
解决办法
1万
查看次数

标签 统计

centos ×1

httpd ×1

init ×1

upstart ×1