当前位置: 首页 > 后端技术 > PHP

nginx和php和zabbix

时间:2023-03-29 23:49:30 PHP

1.编译安装NGINXsshzabbix@192.168.8.143cd/home/zabbix/softs/nginx-1.10.3./configure--prefix=/home/zabbix/nginx-1.10.3\--pid-path=/tmp/nginx/nginx.pid\--with-http_ssl_module\--user=zabbix\--group=zabbix\--with-pcre\--with-stream\--with-stream_ssl_module\--without-mail_pop3_module\--没有-mail_imap_module\--without-mail_smtp_module--with-stream=dynamic\makemakeinstallln-s/home/zabbix/nginx-1.10.3/home/zabbix/nginx/home/zabbix/nginx/sbin/nginx-sreloadcurlhttp://localhost:8000/2.编译安装PHPsurootyuminstallepel-releaseyumupdateyuminstall-ylibxml2libxml2-develphp-bcmathphp-mbstringphp-net-socketphp-gdphp-xmlphp5-domphp-xmlwriterphp-xmlreaderphp-ctypephp-sessionphp-gettextyum安装-yopensslopenssl-develcurl-devellibjpeg-devellibpng-develfreetype-devellibmcrypt-develphp-ctypephp-sessionphp-gettextpcrepcre-develyum安装php-xmlperl-DBIphp-bcmathphp-mbstringsuzabbixcd/home/zabbix/softs/php-7.1.3./con图--with-oci8=shared,instantclient,/usr/lib/oracle/12.2/client64/lib\--prefix=/home/zabbix/php-7.1.3\--with-config-file-path=/home/zabbix/php-7.1.3/etc\--with-config-file-scan-dir=/home/zabbix/php-7.1.3/etc/php.d\--with-mcrypt=/usr/包括\--enable-mysqlnd\--with-mysqli\--with-pdo-mysql\--enable-fpm\--with-fpm-user=zabbix\--with-fpm-group=zabbix\--with-gd\--with-iconv\--with-zlib\--enable-xml\--enable-shmop\--enable-sysvsem\--enable-inline-optimization\--enable-mbregex\--enable-mbstring\--enable-ftp\--enable-gd-native-ttf\--with-openssl\--enable-pcntl\--enable-sockets\--with-xmlrpc\--enable-zip\--enable-soap\--without-pear\--with-gettext\--enable-session\--with-curl\--with-jpeg-dir\--with-freetype-dir\--enable-opcache\--enable-bcmathmakemakeinstallln-s/home/zabbix/php-7.1.3/etc/home/zabbix/phpcd/home/zabbix/php/etccp/home/zabbix/softs/php-7.1.3/php.ini*./cpphp-fpm.conf.defaultphp-fpm.confcpphp-fpm.d/www.conf.defaultphp-fpm.d/www.confcd/home/zabbix/php/bincp/home/zabbix/softs/php-7.1.3/sapi/fpm/init.d.php-fpm./php-fpmchmod+xphp-fpm./php-fpmstart3.配置ZabbixWeb3.1。将Zabbix前端文件复制到NGINX目录下,配置nginx.conf.sshzabbix@192.168.8.141scp-r/home/zabbix/soft/zabbix-3.2.4/frontends/php192.168.8.143:/home/zabbix/nginx/html/Zabbix3.2.页面端配置浏览器打开ZabbixWeb->http://192.168.8.143:8000/Zab..。