您的位置:首页 > 运维架构 > Nginx

Nginx技术详解(2)

2017-08-14 00:00 330 查看
部署一个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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  服务器 Web Nginx