• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • nginx實時監視訪問狀態(ngxtop)(3)

    發表于:2014-07-08來源:不詳作者:涼白開點擊數: 標簽:軟件測試
    ngxtop 4. 注意事項 4.1 ngxtop單條命令無法執行 # ngxtop Error: Access log file or format was not set and nginx config file cannot be detected. Perhaps nginx is not in your PATH? 意識說ng

      ngxtop

      4. 注意事項 4.1 ngxtop單條命令無法執行

      # ngxtop

      Error: Access log file or format was not set and nginx

      config file cannot be detected. Perhaps nginx is not in your PATH?

      意識說nginx執行文件要加到PATH路徑中, 方法一:軟連接

      # ln -s /usr/local/nginx-1.5.2/sbin/nginx /sbin/

      方法二:修改環境變量

      # vim /etc/profile

      export PATH=$PATH:/usr/local/nginx-1.5.2/sbin

      # source /etc/profile

      方法三:指定配置文件

      # ngxtop -c /usr/local/nginx-1.5.2/conf/nginx.conf

      4.2 虛擬主機配置文件必須在nginx.conf主配置中 一般情況下,我們會將虛擬主機單獨寫到一個配置文件中,然后nginx.conf做個include。例如我們站點www.ttlsa.com 配置文件:/usr/local/nginx-1.5.2/conf/vhost/www.ttlsa.com.conf 再nginx.conf的http段中添加include vhost/*.conf 這種情況下ngxtop不支持,必須要保證所有配置都在nginx.conf中才行。不知道是否我哪里理解不對,如果是的話,知道的兄弟留言告知。本人在此感激不盡。 5. 結束 ngxtop非常實用,值得推薦。 項目地址:https://github.com/lebinh/ngxtop

    原文轉自:http://huidu.lanxijun.com/articleDetail.html?id=19619&from=huidu&platform=android

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>