【发布时间】:2011-09-16 19:02:56
【问题描述】:
我正在使用fabric远程启动micro aws服务器,安装git和git存储库,调整apache配置,然后重启服务器。
如果在任何时候,从我发布的 fabfile 要么
sudo('service apache2 restart') 或 run('sudo service apache2 restart') 或停止然后启动,命令显然运行,我得到响应表明 apache 已启动,例如
[ec2-184-73-1-113.compute-1.amazonaws.com] sudo: service apache2 start
[ec2-184-73-1-113.compute-1.amazonaws.com] out: * Starting web server apache2
[ec2-184-73-1-113.compute-1.amazonaws.com] out: ...done.
[ec2-184-73-1-113.compute-1.amazonaws.com] out:
但是,如果我尝试连接,则连接被拒绝,如果我 ssh 进入服务器并运行
sudo service apache2 status 它说“Apache is NOT running”
在 sshed 时,如果运行
sudo service apache start,服务器已启动,我可以连接了。有没有其他人经历过这个?或者是否有人对我可以查看的位置、日志文件等有任何提示,以了解发生了什么。 apache2/error.log、syslog 或 auth.log 中没有任何内容。
这没什么大不了的,我可以解决它。我只是不喜欢这种无声的失败。
【问题讨论】:
-
这根本没有帮助,但我已经看到与 memcached 完全相同的行为
标签: ssh ubuntu-10.04 python-2.6 fabric apache2.2