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