源码安装LNMP+zabbix3时的编译

所缺的包都通过yum安装
[root@iZwz9f17um10wphrf38ni8Z ~]#./configure –prefix=/usr/local/php –with-mysql=/usr/local/mysql/ –enable-fpm –with-zlib –enable-mbstring –with-openssl –with-gd –enable-sockets –enable-bcmath –with-png-dir=/usr/local/include/libpng14/ –with-jpeg-dir=/usr/include/openjpeg-2.1/ –with-freetype-dir –with-gettext –with-mysqli && make && make install

[root@iZwz9f17um10wphrf38ni8Z ~]# /usr/local/php/bin/php -r ‘print_r(gd_info());’
Array
(
[GD Version] => bundled (2.1.0 compatible)
[FreeType Support] => 1
[FreeType Linkage] => with freetype
[T1Lib Support] =>
[GIF Read Support] => 1
[GIF Create Support] => 1
[JPEG Support] => 1
[PNG Support] => 1
[WBMP Support] => 1
[XPM Support] =>
[XBM Support] => 1
[JIS-mapped Japanese Font Support] =>
)

[root@iZwz9f17um10wphrf38ni8Z ~]#/usr/local/php/sbin/php-fpm -c /usr/local/php/etc/php.ini
zabbix 3

[root@iZwz9f17um10wphrf38ni8Z ~]#./configure –prefix=/usr/local/zabbix –enable-server –enable-agent –with-mysql –enable-ipv6 –with-net-snmp –with-libcurl –with-libxml2 &&make&&make install

/usr/local/mysql/bin/mysqld_safe &
/usr/local/zabbix/sbin/zabbix_server &
/usr/local/nginx/sbin/nginx

你可能感兴趣的:(服务器与存储)