r*****r 发帖数: 397 | 1 【 以下文字转载自 Linux 讨论区,原文如下 】
发信人: ruisher (aa), 信区: Linux
标 题: start apache server , httpd? apachectl?
发信站: Unknown Space - 未名空间 (Wed Sep 22 23:42:02 2004) WWW-POST
Kind of confuse.There are two httpd.conf file,
one is in /etc/httpd/conf/httpd.conf
one is in /usr/loca/apache2/conf/httpd.conf
which one should I configure, or both?
When I try to start the apache server, what's the difference between
apachectl start
httpd start?
Looks when I start with httpd, it fails and told me can't bind to the a | c***c 发帖数: 21374 | 2
系统默认的Apache配置文件,一般情况下都是自动启动(默认安装如此)
这个配置文件没启用
httpd是服务,apachectl是启动httpd服务的文件名称
你是不是自己又安装了一次apache?
cgi目录随便指定,在httpd.conf里面设置久可以了
【在 r*****r 的大作中提到】 : 【 以下文字转载自 Linux 讨论区,原文如下 】 : 发信人: ruisher (aa), 信区: Linux : 标 题: start apache server , httpd? apachectl? : 发信站: Unknown Space - 未名空间 (Wed Sep 22 23:42:02 2004) WWW-POST : Kind of confuse.There are two httpd.conf file, : one is in /etc/httpd/conf/httpd.conf : one is in /usr/loca/apache2/conf/httpd.conf : which one should I configure, or both? : When I try to start the apache server, what's the difference between : apachectl start
| r*****r 发帖数: 397 | 3
Maybe, how can I get rid one ?At first, I installed as a general user, then i
reinstalled as root.I guess.Is there any trouble?
Now, when I want to httpd start, I got the error,
(98)Address already in use: make_sock: could not bind to address 127.0.0.1:80
no listening sockets available, shutting down
But when I ps -ef |grep apache, there is no process. What's wrong?
address,
【在 c***c 的大作中提到】 : : 系统默认的Apache配置文件,一般情况下都是自动启动(默认安装如此) : 这个配置文件没启用 : httpd是服务,apachectl是启动httpd服务的文件名称 : 你是不是自己又安装了一次apache? : cgi目录随便指定,在httpd.conf里面设置久可以了
| r*****r 发帖数: 397 | 4 Hi, you are right.
I checked
$ /usr/local/apache2/bin/httpd -v
Server version: Apache/2.0.50
Server built: Sep 7 2004 23:50:34
$ /usr/sbin/httpd -v
Server version: Apache/2.0.40
Server built: Sep 4 2002 17:20:34
Is there any trouble?How can I uninstall one of them?How can I fix the
problem?
Thanks very much.
address, | c***c 发帖数: 21374 | 5 pathtoapache/apachectl -stop先
然后用rpm删除就可以了
rpm类似windows里面的卸载,很方便
【在 r*****r 的大作中提到】 : Hi, you are right. : I checked : $ /usr/local/apache2/bin/httpd -v : Server version: Apache/2.0.50 : Server built: Sep 7 2004 23:50:34 : $ /usr/sbin/httpd -v : Server version: Apache/2.0.40 : Server built: Sep 4 2002 17:20:34 : Is there any trouble?How can I uninstall one of them?How can I fix the : problem?
| r*****r 发帖数: 397 | 6 The problem is I installed from source.That will be more complicated.
【在 c***c 的大作中提到】 : pathtoapache/apachectl -stop先 : 然后用rpm删除就可以了 : rpm类似windows里面的卸载,很方便
| r*****r 发帖数: 397 | 7 When I downloaded the tar file and I installed from source, it automaically
goes to /usr/local/apache2 directory.
The older version goes to /etc/httpd, I guess somebody else installed it in
the lab. It's build from rpm, if I rm the rpm, is there any trouble?
Or maybe better to remove my own version, I just worried i installed from
source, may not easy to uninstall.
【在 c***c 的大作中提到】 : pathtoapache/apachectl -stop先 : 然后用rpm删除就可以了 : rpm类似windows里面的卸载,很方便
| l**u 发帖数: 35 | 8 even you build it from source, you can get in the source
directory and make uninstall. That should work.
【在 r*****r 的大作中提到】 : When I downloaded the tar file and I installed from source, it automaically : goes to /usr/local/apache2 directory. : The older version goes to /etc/httpd, I guess somebody else installed it in : the lab. It's build from rpm, if I rm the rpm, is there any trouble? : Or maybe better to remove my own version, I just worried i installed from : source, may not easy to uninstall.
| r*****r 发帖数: 397 | 9 When I installed from source, I specified /usr/local/apache, can i just delte
the whole directory apache?
I found my machine is running very slow now, is that mean I didn' t configure
the apache correctly?
automaically
in
【在 l**u 的大作中提到】 : even you build it from source, you can get in the source : directory and make uninstall. That should work.
|
|