使用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
文章评论