zabbix 编译安装
2015-12-25 09:26
357 查看
#install lamp
yum install gcc glibc glibc-common cairo pango zlib zlib-devel freetype freetype-devel gd gd-devel -y
yum install mysql* httpd* php* --skip-broken -y
#add user for zabbix
groupadd zabbix
useradd -g zabbix zabbix
#download and install
wget http://iweb.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.2.8/zabbix-2.2.8.tar.gz tar zxvf zabbix-2.2.8.tar.gz
cd zabbix-2.2.8
./configure --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2 #zabbix_server
#./configure --enable-agent #zabbix_agent
make && make install
mysql -e "create database zabbix character set utf8 collate utf8_bin;"
mysql -e "grant all privileges on zabbix.* to 'zabbix'@'localhost' identified by 'zabbix';"
mysql -e "flush privileges;"
cd database/mysql/
mysql zabbix <schema.sql
mysql zabbix < images.sql
mysql zabbix < data.sql
#http diretory
mkdir /usr/local/apache2/htdocs/zabbix #http diretory /var/www/html
cd frontends/php
cp -a . /usr/local/apache2/htdocs/zabbix #http diretory /var/www/html
#zabbix_server configure
vim /usr/local/etc/zabbix_server.conf
DBUser=zabbix
DBPassword=zabbix
DBSocket=/tmp/mysql.sock
#zabbix_agent configure
vim /usr/local/etc/zabbix_agentd.conf
Server=127.0.0.1,192.168.199.118
ServerActive=127.0.0.1,192.168.199.118
Hostname=192.168.199.119
#service start
zabbix_server
zabbix_agentd
#service stop
killall -9 zabbix_server
killall -9 zabbix_agentd
本文出自 “ThunderMeng” 博客,请务必保留此出处http://thundermeng.blog.51cto.com/9414441/1625295
yum install gcc glibc glibc-common cairo pango zlib zlib-devel freetype freetype-devel gd gd-devel -y
yum install mysql* httpd* php* --skip-broken -y
#add user for zabbix
groupadd zabbix
useradd -g zabbix zabbix
#download and install
wget http://iweb.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.2.8/zabbix-2.2.8.tar.gz tar zxvf zabbix-2.2.8.tar.gz
cd zabbix-2.2.8
./configure --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2 #zabbix_server
#./configure --enable-agent #zabbix_agent
make && make install
mysql -e "create database zabbix character set utf8 collate utf8_bin;"
mysql -e "grant all privileges on zabbix.* to 'zabbix'@'localhost' identified by 'zabbix';"
mysql -e "flush privileges;"
cd database/mysql/
mysql zabbix <schema.sql
mysql zabbix < images.sql
mysql zabbix < data.sql
#http diretory
mkdir /usr/local/apache2/htdocs/zabbix #http diretory /var/www/html
cd frontends/php
cp -a . /usr/local/apache2/htdocs/zabbix #http diretory /var/www/html
#zabbix_server configure
vim /usr/local/etc/zabbix_server.conf
DBUser=zabbix
DBPassword=zabbix
DBSocket=/tmp/mysql.sock
#zabbix_agent configure
vim /usr/local/etc/zabbix_agentd.conf
Server=127.0.0.1,192.168.199.118
ServerActive=127.0.0.1,192.168.199.118
Hostname=192.168.199.119
#service start
zabbix_server
zabbix_agentd
#service stop
killall -9 zabbix_server
killall -9 zabbix_agentd
本文出自 “ThunderMeng” 博客,请务必保留此出处http://thundermeng.blog.51cto.com/9414441/1625295
相关文章推荐
- Shanghai
- Windows Server 2003 使用vSphere5.5连接ESXI5.5 “客户端无法向服务器发送完整的请求” 的解决办法
- Nginx实现TCP反向代理
- A10负载配置及主备手动切换命令
- Fabric自动化运维工具实现远程SSH部署及系统管理
- CentOS启动卡在开机进度条certmonger后
- InputStreamReader和BufferedReader用法及真实案例
- A Lightened CNN for Deep Face Representation
- mysql免安装版本
- web前端开发与iOS终端开发的异同[转]
- LVS+Keepalived实现四层负载及高可用
- 编译安装faac:mpeg4ip.h:126: error: new declaration ‘char* strcasestr(const char*, const char*)’
- 编译安装ffmpeg 要支持xvid、x264、mp3、ogg、amr、faac
- abstract class和interface的区别
- Cacti监控MySQL多实例
- Cacti主机模板之定制版
- ARM核心板,三星S5P4418核心板
- UltraEdit快捷键
- shell下操作快捷键
- 专注