sed -i 's#BASEDIR=/usr/local#BASEDIR=/apps/zabbix#' /etc/init.d/zabbix_server
sed -i 's#BASEDIR=/usr/local#BASEDIR=/apps/zabbix#' /etc/init.d/zabbix_agentd#修改配置文件
#vim /apps/zabbix-4.0.2/etc/zabbix_server.conf
#    DBName=zabbix
#    DBUser=zabbix
#    DBPassword=zabbix
#    DBPort=3306
echo 'DBPassword=zabbix' >>/apps/zabbix-4.0.2/etc/zabbix_server.conf
echo 'DBPort=3306' >>/apps/zabbix-4.0.2/etc/zabbix_server.conf

cesguvanb

看看能不能上传图片

logo.png