在 Solaris 上编译 Zabbix 1.8.4

2011-3-18 Jerry 软件

OS: Solaris 10 Generic_137112-07,预先安装 CoolStack 1.3.1
Zabbix version: 1.8.4

1. 下载

# wget http://prdownloads.sourceforge.net/zabbix/zabbix-1.8.tar.gz?download

# tar zxf zabbix-1.8.tar.gz

# cd zabbix-1.8

2. 创建 Zabbix 用户组和用户

# groupadd zabbix

# useradd -g zabbix zabbix

3. 创建 Zabbix MySQL 数据库

MySQL > create database zabbix character set utf8;

MySQL > grant all on zabbix.* to zabbix@localhost identified by 'zabbix';

# mysql –u root -p zabbix < create/schema/mysql.sql

# mysql –u root -p zabbix < create/data/data.sql

# mysql –u root -p zabbix < create/data/images_mysql.sql

4. 编译 Zabbix Server

# PATH=/opt/coolstack/mysql_32bit/bin:\

/usr/bin:\

/usr/sbin:\

/usr/local/bin:\

/usr/sfw/bin:\

/usr/sbin:\

/opt/coolstack/bin

# export PATH

# LDFLAGS=" -L/opt/coolstack/lib"

# export LDFLAGS

# CFLAGS=" -I/opt/coolstack/include/curl"

# export CFLAGS

# LD_LIBRARY_PATH="/opt/coolstack/lib":\

/opt/coolstack/mysql_32bit/lib/mysql

# export LD_LIBRARY_PATH

# cd /export/home/zabbix/zabbix-1.8.4/

# ./configure \

--enable-server \

--with-mysql \

--with-net-snmp \

--prefix=/opt/zabbix \

--with-libcurl=/opt/coolstack/bin/curl-config

# make

# make install

标签: zabbix Solaris


发表评论:

Powered by emlog sitemap