PHP-FPM

作者: 肥四_F4 | 来源:发表于2020-05-28 14:00 被阅读0次
    [root@web01 ~ 13:43:25]# cat /etc/php-fpm.d/www.conf
    [www]
    user = www
    group = www
    listen = 127.0.0.1:9000
    listen.allowed_clients = 127.0.0.1
    pm = dynamic
    pm.max_children = 50
    pm.start_servers = 5
    pm.min_spare_servers = 5
    pm.max_spare_servers = 35
    slowlog = /var/log/php-fpm/www-slow.log
    php_admin_value[error_log] = /var/log/php-fpm/www-error.log
    php_admin_flag[log_errors] = on
    php_value[soap.wsdl_cache_dir]  = /var/lib/php/wsdlcache
    

    找相应的行进行修改

    [root@web01 ~ 14:00:14]# cat /etc/php.ini
    session.save_handler = redis  
    session.save_path = "tcp://172.16.1.51:6379?weight=1&timeout=2.5"
    

    相关文章

      网友评论

          本文标题:PHP-FPM

          本文链接:https://www.haomeiwen.com/subject/ttpnohtx.html