由买买提看人间百态

topics

全部话题 - 话题: apachectl
(共0页)
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里面设置久可以了
c***c
发帖数: 21374
3
pathtoapache/apachectl -stop先
然后用rpm删除就可以了
rpm类似windows里面的卸载,很方便
t*****t
发帖数: 72
4
来自主题: BuildingWeb版 - Apache设置更新一问
我改了httpd.conf文件,要如何使更新的服务器设置生效?
apachectl stop
apachectl start
执行上面两个命令够吗?还是其它什么操作?多谢指教。。。
c*****m
发帖数: 1160
5
找到这个回答:
As noted by arco444, you can use apachectl -S to display an overview of the
VirtualHosts currently running from the configs, and apachectl -M to display
all currently loaded modules - I'm not aware of a tool to display the
verbose output of all configs parsed (and which order they were parsed in)
at launch of httpd, but I would recommend that you familiarise yourself with
the general structure of the httpd config files.
要不我自己做一个,也不太难。
r*****r
发帖数: 397
6

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,
r*****r
发帖数: 397
7
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,
r*****r
发帖数: 397
8
The problem is I installed from source.That will be more complicated.
r*****r
发帖数: 397
9
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.
l**u
发帖数: 35
10
even you build it from source, you can get in the source
directory and make uninstall. That should work.
r*****r
发帖数: 397
11
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
t*****t
发帖数: 72
12
来自主题: BuildingWeb版 - apache问题请教
【 以下文字转载自 Linux 讨论区 】
发信人: tecplot (_____), 信区: Linux
标 题: apache问题请教
发信站: BBS 未名空间站 (Tue Aug 23 14:42:09 2005), 转信
我原来的计算机上系统自带的Apache在下面这个目录:
/usr/sbin, 开的服务进程叫 httpd-perl
后来我自己又安装了Apache2在 /usr/local/apache2
所有的设置文件都在这个目录底下。我可以通过stop
httpd-perl, 再用apachectl start启动新的apache2。
我现在希望Linux启动的时候直接运行我自己安装的apache2
而不是系统原来的那个,请教如何设置?多谢
我的系统是Mandrake 10.0.....
a**********k
发帖数: 1953
13
来自主题: EmergingNetworking版 - 关于url access control的问题 (转载)
Try
/etc/init.d/httpd reload
or
apachectl -k graceful
So existing open connections will not be aborted.
You may also try something more sophisticated if you
are versed in PHP etc. Good luck.
l******n
发帖数: 17
14
来自主题: Unix版 - Tomcat 3.1 + apache 1.3.9一问
安装tomcat3.1 + apache 1.3.9
现在两个分别都能单独运行
但在合起来时,把tomcat.conf
Include到http.conf里后,httpd
就"can not be started"了。我
怀疑是mod_jserv.so有问题,可是
它是我用apxs在tomcat3.1 src下
编译通过的,用apachectl configtest
检查httpd.conf报告syntax OK.
另,我的apache是支持DSO没问题的。
我重新compile了tomcat3.0, 3.2beta1
的mod_jserv.so,甚至重编了ApacheJserv
的mod_jserv.so来代替,都不行。
Solaris 8
哪里的问题。。。。急死
(共0页)