用的军哥的lnmp搞好了环境,想装Zabbix6.0
看的官方教程:https://www.zabbix.com/cn/download?zabbix=6.0&os_distribution=debian&os_version=11&components=server_frontend_agent&db=mysql&ws=nginx
卡在‘在数据库主机上运行以下代码’
他让我运行mysql -uroot -p
直接报错:ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2)
然后我各种搜索,搞了3天,愣是卡在这,我草了
求mjj稍微指点下
aru 发表于 2023-8-2 21:44
mysql 没起来,检查下吧
你如果用的debian,直接 apt update && apt -y install mysql-server
...
root@ns11:~# apt update && apt -y install mysql-server
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 https://repo.zabbix.com/zabbix-agent2-plugins/1/debian bullseye InRelease
Hit:3 https://repo.zabbix.com/zabbix/6.0/debian bullseye InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package mysql-server is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'mysql-server' has no installation candidate