linux下使用非root账号安装zabbix-client
使用非root账号rusky登录:
[rusky@testServer]#tar zxvf zabbix-2.4.5.tar.gz
#cd zabbix-2.4.5
编译安装:
# ./configure --prefix=/home/rusky/zabbix --enable-agent
编译正常后,会提示如下,执行make install安装即可。
......
Enable Java gateway: no LDAP support: no IPv6 support: no *********************************************************** * Now run 'make install' * * * * Thank you for using Zabbix! * * <http://www.zabbix.com> * ***********************************************************
# 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
[rusky@testServer sbin]$ pwd
/home/rusky/zabbix/sbin
[rusky@testServer sbin]$ ./zabbix_agentd start