|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
环境 centos6.10
内核:2.6.32-754.29.1.el6.x86_64
python 2.6.6
[/b]
安装步骤
yum -y install epel-release
yum -y install python-pip
yum install python-setuptools
pip install ngxtop
问题描述:
执行ngxtop总是报如下错误,在网上找了很久也没有解决这个问题。
[root@localhost ~]# ngxtop
Traceback (most recent call last):
File "/usr/bin/ngxtop", line 7, in <module>
from ngxtop.ngxtop import main
File "/usr/lib/python2.6/site-packages/ngxtop/ngxtop.py", line 77, in <module>
from config_parser import detect_log_config, detect_config_path, extract_variables, build_pattern
File "/usr/lib/python2.6/site-packages/ngxtop/config_parser.py", line 8, in <module>
from pyparsing import Literal, Word, ZeroOrMore, OneOrMore, Group, \
File "/usr/lib/python2.6/site-packages/pyparsing.py", line 6897
name: getattr(__diag__, name) for name in __diag__._all_names
^
SyntaxError: invalid syntax
|
|