我目前在我的计算机上运行 CentOS 5.5,并且我正在尝试使用 Django、MySQL 和 Apache 设置构建服务器。
我基本上没有遇到过这些情况,每次遇到新错误时我都会在 Google 上搜索。到目前为止,答案已经出来了,但我现在卡在最后一步了。
# service httpd start
Starting httpd: httpd: apr_sockaddr_info_get() failed for jmaxime-linux
httpd: Could not reliably determine the server's fully qualified domain name,
using 127.0.0.1 for ServerName
[ OK ]
# service mysqld start
Starting MySQL: : [ OK ]
# service buildserverd start
Starting buildserverd : [ OK ]
显然一切都很顺利。但我得到了以下信息:
# service buildserverd status
python is stopped
显然我的 buildserverd 服务尚未正确启动,我不知道为什么。使此服务正常运行的依赖项是正确的,django 依赖项也是如此。
我究竟做错了什么?
笔记:
# uname -a
Linux jmaxime-linux 2.6.18-238.19.1.el5 #1 SMP Fri Jul 15 07:31:24 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
# python -V
Python 2.7.2
# httpd -v
Server version: Apache/2.2.3
Server built: May 4 2011 06:51:15
我不知道还能添加什么来让你们更容易理解。如果问题最终无法解决,我很抱歉,因为我在配置文件中犯了一些错误 :/
另外,我在 /etc/httpd/conf/httpd.conf 中添加了以下几行:
<VirtualHost *:8000>
DocumentRoot /var/www/cfgmgmt
ServerName jmaxime-linux
ErrorLog logs/cfgmgmt_error.log
TransferLog logs/cfgmgmt_access.log
SetEnv PYTHON_EGG_CACHE /tmp
AliasMatch /([^/]*\.css) /var/www/cfgmgmt/media/css/$1
AliasMatch /([^/]*\.js) /var/www/cfgmgmt/media/$1
AliasMatch /([^/]*\.png) /var/www/cfgmgmt/media/img/$1
AliasMatch /([^/]*\.gif) /var/www/cfgmgmt/media/img/$1
AliasMatch /([^/]*\.ico) /var/www/cfgmgmt/media/img/$1
Alias /media/ /var/www/cfgmgmt/media
<Directory /var/www/cfgmgmt/media>
Order deny,allow
Allow from all
</Directory>
WSGIScriptAlias / /home/jmaxime/workspace/BuildServer_mjulien/django.wsgi
<Directory /home/jmaxime/workspace/BuildServer_mjulien>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
根据要求:Apache 日志尾部:
[Sun Aug 07 04:02:03 2011] [notice] SIGHUP received. Attempting to restart
httpd: apr_sockaddr_info_get() failed for jmaxime-linux
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
谢谢。