"Linux Environment" Zabbix Server Installation

Source: Internet
Author: User
Tags fpm openldap

Nginx Installation

1) Source code compilation and installation

Yum install-y pcre* openssl* gcc gcc-c++ automake zlib*./configure--user=nginx--group=nginx--prefix=/usr/local/nginx --with-http_stub_status_module--with-http_ssl_module--with http_gzip_static_module--with-pcrema Ke && make install

2) Start Nginx

/usr/local/nginx/sbin/nginx-t/usr/local/nginx/sbin/nginxcurl-s http://localhost Detection

PHP Installation

1) Source code compilation and installation

Yum install libxml2-devel bzip2-devel libxml2 openldap-devel openldap./configure  --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc              --with-bz2 --with-curl --enable-ftp -- enable-sockets --disable-ipv6              --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr/local              --with-freetype-dir=/usr/local --enable-gd-native-ttf              --with-iconv-dir=/usr/local  --enable-mbstring --enable-calendar              --with-gettext --with-libxml-dir=/usr/local --with-zlib \              --with-pdo-mysql=mysqlnd --with-mysqli=mysqlnd --with-mysql=mysqlnd              --enable-dom --enable-xml -- enable-fpm --with-libdir=lib64 --enable-bcmath              --with-ldapmake && make install

2) configuration file modification

CP php.ini-production/usr/local/php/etc/php.inicp/usr/local/php/etc/php-fpm.conf.default/usr/local/php/ Php-fpm.confvim php.ini max_execution_times=300 memory_limit=128m post_max_size=16 Mupload_max_filesize=2 M max_input_time=300 Always_populate_raw_post_data=-1 Date.timezone=asia/shanghai

3) Restart PHP

/usr/local/php/sbin/php-fpmnetstat-antlp|grep PHP-FPM appears with Port 9000 indicating correct


This article from the "11365278" blog, reproduced please contact the author!

Linux Environment Zabbix Server installation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.