微拓扑

  • Home
  • Archives
  • Tags
  • Wall
微拓扑
Another bloody day.
  1. 首页
  2. IT
  3. 正文

Debian7 VestaCP下设置Longview

11/04/2014 666点热度 0人点赞 0条评论

linode_longview

使用VestaCP的VPS需要修改一点配置才能使用Linode的Longview

通过查找得知VestaCP已经开启了apache的server-status功能。配置文件在这里/etc/apache2/mods-enabled/status.conf 端口为8081

[email protected]:/home/admin/conf/web# cat /etc/apache2/mods-enabled/status.conf
Listen 127.0.0.1:8081
<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
    Allow from all
</Location>
[email protected]:/home/admin/conf/web#

编辑/etc/linode/longview.d/Apache.conf 使之修改为

location http://127.0.0.1:8081/server-status?auto

重启Apache和Longview Agent服务

service apache2 restart 
service longview restartp

Longview Apache就能工作了

Longview Nginx的设置

编辑/home/admin/conf/web/nginx.conf

在底部加入:

server {
    listen 127.0.0.1:80;
    server_name 127.0.0.1;
    location /nginx_status {
        stub_status on;
        allow 127.0.0.1;
        deny all;
    }
}

重启Nginx和Longview Agent服务

service nginx restart
service longview restart

 

标签: Debian 7 Longview VestaCP
最后更新:16/04/2014

kyaky

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

取消回复

COPYRIGHT © 2021 vtp.me. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang