久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網
      最全最豐富的資訊網站

      如何搭建靜態(tài)站點

      如何搭建靜態(tài)站點

      搭建靜態(tài)站點

      (推薦教程:nginx教程)

      配置如下:

      # 虛擬主機server塊 server {     # 端口     listen   8080;     # 匹配請求中的host值     server_name  localhost;          # 監(jiān)聽請求路徑     location / {         # 查找目錄         root /source;         # 默認查找         index index.html index.htm;     } }

      相關字段

      • server 配置虛擬主機的相關參數,可以有多個

      • server_name 通過請求中的host值,找到對應的虛擬主機的配置

      • location 配置請求路由,處理相關頁面情況

      • root 查找資源的路徑

      配置完成后執(zhí)行 nginx -t 命令,查看是否有錯誤,如果出現如下提示,就表示成功了。

      nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful

      然后執(zhí)行 nginx -s reload 命令更新Nginx配置文件

      這時候打開瀏覽器 輸入 localhost:8080 應該就能看到你的頁面了

      • nginx -t 檢查配置文件是否有語法錯誤

      • nginx -s reload 向主進程發(fā)送信號,重新加載配置文件

      • nginx -s stop 快速關閉

      • nginx -s quit 等待工作進程處理完成后關閉

      贊(0)
      分享到: 更多 (0)
      網站地圖   滬ICP備18035694號-2    滬公網安備31011702889846號