nginx 提供静态内容
nginx.conf
worker_processes 1; events { worker_connections 1024; } http { server { location / { root /data/www; } location /images/ { root /data; } } }
重新载入配置文件:
/usr/local/nginx/sbin/nginx -s reload # 重新载入配置文件
访问:
http://loc168/ http://loc168/images/example.png http://loc168/images/example2.png
创建资源: