hoangdangninh
7/13/2017 - 6:46 AM

check if http service is on port 80 by wget

check if http service is on port 80 by wget

# Should print back status 200 if exists
wget --spider -S "http://localhost" 2>&1 | awk '/HTTP\// {print $2}'