今天終于把zabbix的安裝搞定了,通過網(wǎng)頁配置zabbix時成艘,一直報(bào)錯PHP gd JPEG image support missing和PHP gd freetype support missing.
檢查jpeg和freetype開發(fā)庫都已經(jīng)安裝弥激,并且php編譯安裝時也已經(jīng)帶上--with-jpeg-dir和--with-freetype-dir參數(shù)。
后來終于找到原因:php自帶的gd庫并不支持jpeg和freetype护糖,所以需要源碼編譯安裝libgd并設(shè)置支持jpeg和freetype:? ./configure --with-freetype --with-jpeg
libgd安裝完后栏笆,重新編譯安裝php,重啟php-fpm,zabbbix網(wǎng)頁配置前檢查終于通過!