11 lines
688 B
Bash
11 lines
688 B
Bash
set -u
|
||||
|
|
echo "=== [A] www 响应体 ==="
|
|||
|
|
curl -s --max-time 15 -H "Host: www.ai1net.com" http://127.0.0.1:3080/portal.html; echo
|
|||
|
|
echo "=== [B] 主机 → 路由 判定(直连 3080,不绕 nginx)==="
|
|||
|
|
for h in ai1net.com www.ai1net.com guest.ai1net.com guest.alotbuy.com dsh.ai1net.com dsh.alotbuy.com; do
|
|||
|
|
printf "%-26s " "$h"
|
|||
|
|
curl -s -o /tmp/_b -w "code=%{http_code} size=%{size_download} " --max-time 15 -H "Host: $h" http://127.0.0.1:3080/
|
|||
|
|
head -c 60 /tmp/_b | tr -d '\n'; echo
|
|||
|
|
done
|
|||
|
|
echo "=== [C] 权威库实例主机名 ==="
|
|||
|
|
sudo -u postgres psql -p 15432 -d dshs -Atc "select table_name from information_schema.tables where table_schema='public' order by 1" 2>&1 | head -40
|