????ngxtop

????3.2 ??????????IP

????# ngxtop -c /usr/local/nginx-1.5.2/conf/nginx.conf top remote_addr

????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