centos 에 ngxtop 설치
소스 설치 방법
# wget https://github.com/lebinh/ngxtop/archive/master.zip -O ngxtop-master.zip |
# unzip ngxtop-master.zip |
# cd ngxtop-master |
# python setup.py install |
... aaaa .... |
Finished processing dependencies for ngxtop==0.0.1 |
ngxtop 설치
pip
install
ngxtop
pip 없으면 yum install python-pip 로 설치
python-php 없으면
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
실행
# ngxtop -c /usr/local/nginx-1.5.2/conf/nginx.conf
# ngxtop -c /usr/local/nginx-1.5.2/conf/nginx.conf top remote_addr
# ngxtop |
Error: Access log file or format was not set and nginx |
config file cannot be detected. Perhaps nginx is not in your PATH?
방법 1
ln -s /usr/local/nginx-1.5.2/sbin/nginx /sbin/
방법 2
|