Debian 下安装 Nginx

Debian 下安装 Nginx 非常容易.

apt update
apt install nginx

输入以下命令查看是否可以正常访问, 顺便验证下安装是否成功.

curl -I 127.0.0.1

若输出类似如下内容, 那么说明安装没问题咯.

HTTP/1.1 200 OK
Server: nginx/1.10.3
Date: Sat, 14 Mar 2020 05:36:45 GMT
Content-Type: text/html
Content-Length: 612
Last-Modified: Sat, 14 Mar 2020 05:36:27 GMT
Connection: keep-alive
ETag: "5e6c6d5b-264"
Accept-Ranges: bytes
posted @ 2020-03-14 13:45  taadis  阅读(4392)  评论(0编辑  收藏  举报