景辰 發表於 2020-3-14 13:45:00

Debian 下安装 Nginx

<p>Debian 下安装 Nginx 非常容易.</p>
<pre><code class="language-shell">apt update
apt install nginx
</code></pre>
<p>输入以下命令查看是否可以正常访问, 顺便验证下安装是否成功.</p>
<pre><code>curl -I 127.0.0.1
</code></pre>
<p>若输出类似如下内容, 那么说明安装没问题咯.</p>
<pre><code>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
</code></pre>


</div>
<div id="MySignature" role="contentinfo">
    [支持/订阅](https://afdian.com/a/taadis)作者,以获得更多服务.<br><br>
来源:https://www.cnblogs.com/taadis/p/12491816.html
頁: [1]
查看完整版本: Debian 下安装 Nginx