鱼C论坛

 找回密码
 立即注册
查看: 2319|回复: 1

centos6.10 安装 ngxtop报错?

[复制链接]
发表于 2020-5-8 17:49:07 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
环境 centos6.10
内核:2.6.32-754.29.1.el6.x86_64
python 2.6.6



安装步骤
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


想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2020-5-23 18:20:04 | 显示全部楼层
没有centos6环境,无法确认 上面显示语法错误,应该跟python有关  另外 centos7不香吗,可以考虑使用centos7了
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-3-28 17:43

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表