久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網
      最全最豐富的資訊網站

      談談php中的fastcgi和php-fpm!

      談談php中的fastcgi和php-fpm!

      fastcgi 是一個與平臺無關,與語言無關,任何語言只要按照它的接口來實現,就能實現自己語言的fastcgi能力和web server 通訊。

      PHP-CGI就是PHP實現的自帶的FastCGI管理器。

      FastCGI 是一個協議,它是應用程序和 WEB 服務器連接的橋梁。Nginx 并不能直接與 PHP-FPM 通信,而是將請求通過 FastCGI 交給 PHP-FPM 處理。

       location ~ .php$ {     try_files $uri /index.php =404;     fastcgi_pass 127.0.0.1:9000;     fastcgi_index index.php;     fastcgi_buffers 16 16k;     fastcgi_buffer_size 32k;     fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;     include fastcgi_params; }

      這里 fastcgi_pass 就是把所有 php 請求轉發(fā)給 php-fpm 進行處理。通過 netstat 命令可以看到,127.0.0.1:9000 這個端口上運行的進程就是 php-fpm.

      談談php中的fastcgi和php-fpm!

      開啟php-fpm方式:

      # nohup /usr/sbin/php-fpm -R >/dev/null 2>&1 &

      查看php運行目錄命令:

      which php /usr/bin/php

      重啟php-fpm:

      /etc/init.d/php-fpm restart

      相關教程推薦:《PHP教程》

      贊(0)
      分享到: 更多 (0)
      網站地圖   滬ICP備18035694號-2    滬公網安備31011702889846號