1. 程式人生 > >Nginx技術詳解(2)

Nginx技術詳解(2)

web服務器 nginx

部署一個Web站點:

服務器準備:node0

IP:192.168.10.3


進入/application/nginx/html/下把index.html文件刪除:

rm -rf /application/nginx/html/index.html

創建index.html文件,並追加文本:

echo ‘Hello,welcome to Nginx!‘ > /application/nginx/html/index.html #創建並追加

cat /application/nginx/html/index.html #查看index.html文件的內容

Hello,welcome to Nginx!

curl http://192.168.10.3 #訪問並測試

Hello,welcome to Nginx!


本文出自 “帥帥的小哥哥” 博客,請務必保留此出處http://xvjunjie.blog.51cto.com/12360960/1955105

Nginx技術詳解(2)