-
编译安装
./configure --prefix=/usr/local/src/php --with-config-file-path=/usr/local/src/php/ --with-gd --with-png-dir=/usr/local/libpng --with-jpeg-dir=/usr/local/jpeg --with-freetype-dir=/usr/local/freetype --with-xpm-dir=/usr/ --with-vpx-dir=/usr/local/libvpx/ --with-zlib-dir=/usr/local/zlib --with-iconv --enable-libxml --enable-xml --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --enable-opcache --enable-mbregex --enable-fpm --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-mcrypt --with-curl --enable-ctype --with-pdo-pgsql --with-pgsql=/opt/PostgreSQL --with-ldap make make install
-
php.ini 文件修改参数如下:
372 max_execution_time = 300 393 memory_limit = 128M 660 post_max_size = 16M 792 upload_max_filesize = 2M 382 max_input_time = 300 910 date.timezone = PRC
-
启动php服务
service php-fpm status
-
php-fpm 参数学习
本文配置是为了安装zabbix服务器,中间步骤:略。
PHP安装
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
推荐阅读更多精彩内容
- 最近公司已大牛离职,本人临时从当了一下运维完成后台相关应用从aws迁移到腾讯云上,由于机器不多久没有搞自动安装什么...
- 一、查看 PHP 是否安装 二、安装 PHP(7.0 版本) step1:下载 PHP 安装包 step2:解压安...