linux下使用非root账号安装zabbix-client
使用非root账号rusky登录:
[[email protected]]#tar zxvf zabbix-2.4.5.tar.gz
#cd zabbix-2.4.5
编译安装:
# ./configure --prefix=/home/rusky/zabbix --enable-agent
# make install
修改配置文件:
cd /home/rusky/zabbix
$ ls
bin etc lib sbin share
vi ./etc/zabbix_agentd.conf
PidFile=/home/dingyu/zabbix_agentd.pid
LogFile=/home/dingyu/zabbix/zabbix_agentd.log
Server=zabbix服务器IP
ServerActive=zabbix服务器IP
Hostname=本机IP
启动zabbix-agend
[[email protected] sbin]$ pwd
/home/rusky/zabbix/sbin
[[email protected] sbin]$ ./zabbix_agentd start
时间: 2024-11-09 02:42:22