/usr/local/php/bin/phpize(编译后的)
./configure --with-php-config=/usr/local/php/bin/php-config
make && make install (make 可以得到so路径/usr/local/php/lib/php/extensions/no-debug-zts-20100525/)
把so路径下文件拷贝到 extension路径下/usr/local/php/lib/php/extensions
vim php.ini (/usr/loacal/php/etc/php.ini)
extension=bcmath.so(echo "extension=bcmath.so" >> /usr/local/php/etc/php.ini)
重启apache
2.gettext安装方法
cd ext/gettext
/usr/local/php/bin/phpize
./configur –with-php-config=/usr/local/php/bin/php-config
make && make install(make 可以得到so路径/usr/local/php/lib/php/extensions/no-debug-zts-20100525/)
vim php.ini (/usr/loacal/php/etc/php.ini)
extension=gettxt.so(echo "extension=gettext.so" >> /usr/local/php/etc/php.ini)
apachectl start
安装zabbix的一些组件
*安装iksemel ##:library and header files. Required to enable Jabber messaging.
shell>cd /usr/local/src
shell>gunzip iksemel-1.4.tar.gz && tar –xvf iksemel-1.4.tar
shell>cd iksemel-1.4
shell>./configure
shell>make && make install
shell>updatedb
11
shell>locate libiksemel.so.3
/usr/local/iksemel/lib/libiksemel.so.3
shell>ln –s /usr/local/iksemel/lib/libiksemel.so.3 /lib/ ##:创建一个软链接到/lib/目录下
*安装OpenIPMI ##:Required for IPMI support
shell>cd /usr/local/src
shell>gunzip OpenIPMI-2.0.19.tar.gz && tar –xvf OpenIPMI-2.0.19.tar
shell>cd OpenIPMI-2.0.19
shell>./configure
shell>make && make install
*安装net-snmp ##:library and header files. Required for SNMP support.
shell>cd /usr/local/src
shell>gunzip net-snmp-5.3.4.tar.gz && tar –xvf net-snmp-5.3.4.tar
shell>cd net-snmp-5.3.4
shell>.configure
shell>make && make install
*安装libcurl ##:library and header files. Required for WEB monitoring module.
shell>cd /usr/local/src
shell>gunzip curl-7.24.0.tar.gz && tar –xvf curl-7.24.0.tar
shell>cd curl-7.24.0
shell>./configure
shell>make && make install
*安装fping ##:Required for ICMP ping items
shell>cd /usr/local/src
shell>gunzip fping-3.0.tar.gz && tar –xvf fping-3.0.tar
shell>cd fping-3.0
shell>./configure
shell>make && make install
2) 安装ZABBIX
*For Mysql
shell>/usr/local/mysql/bin/mysql –u root -p #如果没有定义环境变量要打全路径
mysql>grant all privileges on zabbix.* to 'zabbix'@'localhost' identified by 'mycreativepassword'; ##:替换mycreativepassword为想要设置的密码,保留引号
mysql>quit;
shell>cd /usr/local/src/zabbix-2.0.5/database/mysql #导入sql数据
shell>cat p_w_picpaths.sql| /usr/local/mysql/bin/mysql –uzabbix –pzabbix zabbix
shell>cat data.sql | /usr/local/mysql/bin/mysql –uzabbix –pzabbix zabbix
shell>cd /usr/local/src/zabbix-2.0.5/