|
很不幸,我第一次配置linux下的apache,在编译了从apache官方网站下载的http-2.0.44后,运行命令情况如下:
[root@Brain root]# cd /usr/develop/httpd-2.0.44
[root@Brain httpd-2.0.44]# ./httpd -l
Compiled in modules:
core.c
mod_access.c
mod_auth.c
mod_include.c
mod_log_config.c
mod_env.c
mod_setenvif.c
prefork.c
http_core.c
mod_mime.c
mod_status.c
mod_autoindex.c
mod_asis.c
mod_cgi.c
mod_negotiation.c
mod_dir.c
mod_imap.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_so.c
[root@Brain httpd-2.0.44]# ./httpd -h
Usage: lt-httpd [-D name] [-d directory] [-f file]
[-C "directive"] [-c "directive"]
[-k start|restart|graceful|stop]
[-v] [-V] [-h] [-l] [-L] [-t] [-S]
Options:
-D name : define a name for use in <IfDefine name> directives
-d directory : specify an alternate initial ServerRoot
-f file : specify an alternate ServerConfigFile
-C "directive" : process directive before reading config files
-c "directive" : process directive after reading config files
-e level : show startup errors of level (see LogLevel)
-E file : log startup errors to file
-v : show version number
-V : show compile settings
-h : list available command line options (this page)
-l : list compiled in modules
-L : list available configuration directives
-t -D DUMP_VHOSTS : show parsed settings (currently only vhost settings)
-S : a synonym for -t -D DUMP_VHOSTS
-t : run syntax check for config files
[root@Brain httpd-2.0.44]# ./httpd
lt-httpd: could not open document config file /usr/local/apache2/conf/httpd.conf
[root@Brain httpd-2.0.44]#
到这里就不工作了.
我把httpd-2.0.44.tar.gz重新解压到/usr/local/目录下,解压后就成了/usr/local/http-2.0.44/目录,我把它更名为/usr/local/apache2/,重新编译,但是编译后根本就没有/usr/local/apache2/conf/目录
请问哪位大侠知道我错在哪里?如何才能正确的在Linux下安装apahce? |
|