通常,httpd不应该被直接调用,而应该在类Unix系统中由 apachectl 调用, 在Windows NT/2000/XP/2003中作为服务运行 和 在Windows 95/98/ME中作为控制台程序运行 . 语法 httpd [ -d serverroot ] [ -f config ] [ -C directive ] [ -c directive ] [ -D parameter ] [ -e level ] [ -E file ] [ -k start|restart|graceful|stop|graceful-stop ] [ -R directory ] [ -h ] [ -l ] [ -L ] [ -S ] [ -t ] [ -v ] [ -V ] [ -X ] [ -M ...
by gyp334a - Linux文档专区 - 2009-01-14 14:42:17 阅读(1033) 回复(0)
功能说明:Apache HTTP服务器程序。 语 法:httpd [-hlLStvVX][-c指令>][-C指令>][-d服务器根目录>][-D设定文件参数>][-f设定文件>] 补充说明:httpd为Apache HTTP服务器程序。直接执行程序可启动服务器的服务。 参 数: -c指令> 在读取配置文件前,先执行选项中的指令。 -C指令> 在读取配置文件后,再执行选项中的指令。 -d服务器根目录> 指定服务器的根目录。 -D设定文件参数> 指定要传入配置文件...
#!/bin/bash # # /etc/rc.d/init.d/httpd # # Starts the httpd daemon # # chkconfig: 345 95 5 # description: Runs commands scheduled by the at command at the time \ # specified when at was run, and runs batch commands when the load \ # average is low enough. # processname: httpd # Source function library. . /etc/init.d/functions HTTPD="/usr/local/apache/bin/httpd" test -x $HTTPD || exit 0 RETVA...
AllowOverride参数就是指明Apache服务器是否去找.htacess文件作为配置文件,如果设置为none,那么服务器将忽略. htacess文件,如果设置为All,那么所有在.htaccess文件里有的指令都将被重写。对于AllowOverride,还可以对它指定如下一些能被重写的指令类型. 1 AuthConfig 允许使用所有的权限指令,他们包括AuthDBMGroupFile AuthDBMUserFile AuthGroupFile AuthName AuthTypeAuthUserFile和Require 2 FileInfo 允许使用文件控制类型...
#!/bin/bash # # Startup script for the Apache Web Server # # chkconfig: - 85 15 # description: Apache is a World Wide Web server. It is used to serve \ # HTML files and CGI. # processname: httpd # pidfile: /var/run/httpd.pid # config: /etc/httpd/conf/httpd.conf # Source function library. . /etc/rc.d/init.d/functions if [ -f /etc/sysconfig/httpd ]; then . /etc/sysconfig/httpd fi ...
#!/bin/bash # # Startup script for the Apache Web Server # # chkconfig: - 85 15 # description: Apache is a World Wide Web server. It is used to serve \ # HTML files and CGI. # processname: httpd # pidfile: /var/run/httpd.pid # config: /etc/httpd/conf/httpd.conf # Source function library. . /etc/rc.d/init.d/functions if [ -f /etc/sysconfig/httpd ]; then . /etc/sysconfig/httpd fi ...
httpd下载地址:http://httpd.apache.org/download.cgi subversion下载地址:http://subversion.tigris.org/ 我下载的是subversion-1.6.3.tar.bz2+httpd-2.2.11.tar.gz 1.先安装httpd-2.2.11.tar.gz wds@<10.54.38.18>:# tar xvjf httpd-2.2.11.tar.gz wds@<10.54.38.18>:# cd httpd-2.2.11 wds@<10.54.38.18>:# ./configure --prefix=/data1/apache2 --enable-so --enable-maintainer-mode --enable-dav <-后边这个别忘记加了...
我用service httpd status命令查看httpd的运行状态,发现用多个id号,请问怎么回事?谢谢 如:httpd (pid 2128 2127 2126 2125)正在运行。。。。。 [ 本帖最后由 beimenxingqi 于 2009-11-16 09:52 编辑 ]
httpd: Could not reliably determine the server's fully qualified domain name ,using 192.168.1.10 for servername 怎么解决????
httpd下载地址:http://httpd.apache.org/download.cgi subversion下载地址:http://subversion.tigris.org/ 我下载的是subversion-1.6.3.tar.bz2+httpd-2.2.11.tar.gz 1.先安装httpd-2.2.11.tar.gz wds@:# tar xvjf httpd-2.2.11.tar.gz wds@:# cd httpd-2.2.11 wds@:# ./configure --prefix=/data1/apache2 --enable-so --enable-maintainer-mode --enable-dav :# make && make install wds@:# 2.安装 subversion wds@:# t...
[code] RewriteCond %{HTTP_HOST} !^fully\.qualified\.domain\.name [NC] RewriteCond %{HTTP_HOST} !^$ RewriteCond %{SERVER_PORT} !^80$ RewriteRule ^/(.*) http://fully.qualified.domain.name:%{SERVER_PORT}/$1 [L,R] [/code] 虽然意思是很明显了。 请问 HTTP_HOST、SERVER_PORT等变量是在哪里定义?或者怎么知道他们的意思? 谢谢