httpd 的优雅重启,由 Chef 配置
graceful restart of httpd, configured by Chef
我通过社区 httpd 配方配置 httpd
与 Chef。
https://github.com/chef-cookbooks/httpd
httpd_service "default" do
action [:create, :start]
end
执行完上面的代码后,sudo service httpd-default graceful
报错如下:
httpd: apr_sockaddr_info_get() failed for web01
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
httpd not running, trying to start
(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
sudo service httpd-default status
说 httpd 是 运行.
如何优雅地手动重启 httpd?
我的目标服务器是 CentOS 6.6.
sudo apachectl -f /etc/httpd-default/conf/httpd.conf -k graceful
这个命令解决了我的问题。
我通过社区 httpd 配方配置 httpd
与 Chef。
https://github.com/chef-cookbooks/httpd
httpd_service "default" do
action [:create, :start]
end
执行完上面的代码后,sudo service httpd-default graceful
报错如下:
httpd: apr_sockaddr_info_get() failed for web01
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
httpd not running, trying to start
(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
sudo service httpd-default status
说 httpd 是 运行.
如何优雅地手动重启 httpd? 我的目标服务器是 CentOS 6.6.
sudo apachectl -f /etc/httpd-default/conf/httpd.conf -k graceful
这个命令解决了我的问题。