-★出爺;3 发表于 2018-11-10 07:55:53

Nginx配置实战

# cat /etc/hosts  127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
  ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
  192.168.56.11 linux-node1 linux-node1.example.com
  192.168.56.12 www.test123.com linux-node2 linux-node2.example.com www.abc.org bbs.abc.org blog.abc.org
  # ping bbs.abc.org
  PING www.test123.com (192.168.56.12) 56(84) bytes of data.
  64 bytes from www.test123.com (192.168.56.12): icmp_seq=1 ttl=64 time=0.105 ms
  64 bytes from www.test123.com (192.168.56.12): icmp_seq=2 ttl=64 time=0.048 ms
  ^C
  --- www.test123.com ping statistics ---
  2 packets transmitted, 2 received, 0% packet loss, time 999ms
  rtt min/avg/max/mdev = 0.048/0.076/0.105/0.029 ms
  # ping blog.abc.org
  PING www.test123.com (192.168.56.12) 56(84) bytes of data.
  64 bytes from www.test123.com (192.168.56.12): icmp_seq=1 ttl=64 time=0.047 ms
  64 bytes from www.test123.com (192.168.56.12): icmp_seq=2 ttl=64 time=0.051 ms
  ^C
  --- www.test123.com ping statistics ---
  2 packets transmitted, 2 received, 0% packet loss, time 999ms
  rtt min/avg/max/mdev = 0.047/0.049/0.051/0.002 ms

页: [1]
查看完整版本: Nginx配置实战