容器技术交流

 找回密码
 立即注册
查看: 3973|回复: 3

刚买了Burst的vps,发现每个系统里都装了apache,怎么删除他?

[复制链接]
发表于 2011-4-7 18:18:56 | 显示全部楼层 |阅读模式
对centos的安装目录不太熟,
不知道apache的安装目录在那里,
查了一下

[root@216984 ~]# whereis httpd
httpd: /usr/sbin/httpd /usr/sbin/httpd.event /usr/sbin/httpd.worker /etc/httpd /usr/share/man/man8/httpd.8.gz

目录该是在
/etc/httpd

直接删除这个目录吗???

centos的开机启动项是 /etc/rc.d/rc.local  吗???
可是这个文件里好像没有apache开机启动的东东啊,我重起以后, 还是有httpd进程


[root@216984 /]# vi /etc/rc.d/rc.local

#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
~
~
~
发表于 2011-4-7 18:21:45 | 显示全部楼层
先试试yum remove apache
卸载apache

然后再安装lum

评分

1

查看全部评分

 楼主| 发表于 2011-4-7 18:28:21 | 显示全部楼层
[root@216984 ~]# yum remove apache
Loaded plugins: fastestmirror
Setting up Remove Process
No Match for argument: apache
No Packages marked for removal


好像不是yum安装的
发表于 2011-4-7 18:29:36 | 显示全部楼层
yum remove httpd
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Archiver|URLOS ( 粤ICP备18087780号 )

GMT+8, 2025-5-15 11:23 , Processed in 0.028123 second(s), 22 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表