正常
[[email protected] ~]# ifconfig eth0 Link encap:Ethernet HWaddr 00:50:56:9B:78:E1 inet addr:10.12.27.122 Bcast:10.12.27.255 Mask:255.255.255.0 inet6 addr: fe80::250:56ff:fe9b:78e1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:299742 errors:0 dropped:0 overruns:0 frame:0 TX packets:266270 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:63599985 (60.6 MiB) TX bytes:67034157 (63.9 MiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:239 errors:0 dropped:0 overruns:0 frame:0 TX packets:239 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:16736 (16.3 KiB) TX bytes:16736 (16.3 KiB)
- main {}
- 对任何功能生效
- http
- web有效
- server
- upstream
- loaction
- 可以是http子段
- 相当于httpd的document
- 反向代理
- 可以是http子段
- http字段
- mail
- 邮件生效
配置文件
server { listen 80; server_name localhost; #charset koi8-r; #access_log logs/host.access.log main; location / { root web/html;#页面文件根目录 index index.html index.htm;#默认首页 }
时间: 2024-10-01 00:06:18