Ruby 用 Ping 来检查机器和服务的状态 2015/11/06 14577 require 'ping' puts "Pong!" if Ping.pingecho('localhost', 5)