curl -I -m 10 -o /dev/null -s -w %{http_code}"/n" 域名 例子: vim httpstatus.sh #!/bin/bash echo -n "ple
curl -I -m 10 -o /dev/null -s -w %{http_code}"/n" 域名
例子:
vim httpstatus.sh
#!/bin/bash
echo -n "please your domain name: "
read domain
curl -I -m 10 -o /dev/null -s -w %{http_code}"/n" $domain