6515
V2EX  ›  问与答

zabbix 使用问题?

  •  
  •   6515 · Mar 8, 2017 · 2792 views
    This topic created in 3385 days ago, the information mentioned may be changed or developed.
    尝试安装 zabbix,安装好了之后然后登陆进去,然后报错
    zabbix server is not running: the information displayed may not be current
    查看下 server 状态
    /etc/init.d/zabbix_server status
    zabbix_server dead but subsys locked
    然后查看了下日志
    24394:20170308:154434.930 using configuration file: /usr/local/zabbix/etc/zabbix_server.conf
    24394:20170308:154434.934 [Z3001] connection to database 'zabbix' failed: [1044] Access denied for user 'zabbix'@'localhost' to database 'zabbix'
    24394:20170308:154434.934 Cannot connect to the database. Exiting...
    说我 mysql 连接失败,可是我数据库是可以连上的,而且 zabbix_server.conf 配置文件 也对应写了,
    请问下怎么解决?
    ericFork
        1
    ericFork  
       Mar 8, 2017
    > 说我 mysql 连接失败,可是我数据库是可以连上的
    你是怎么连的?
    yuedingwangji
        2
    yuedingwangji  
       Mar 9, 2017
    不是有提示了么, zabbix 这个账户在 localhost 无法访问 zabbix 数据库
    julyclyde
        3
    julyclyde  
       Mar 9, 2017   ❤️ 1
    @ericFork 他显然是用 IP 地址连的啊
    这么经典的错误……

    mysql 里 @localhost 和 @127.0.0.1 是两码事
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2834 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 09:47 · PVG 17:47 · LAX 02:47 · JFK 05:47
    ♥ Do have faith in what you're doing.