久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      談?wù)刾hp中的fastcgi和php-fpm!

      談?wù)刾hp中的fastcgi和php-fpm!

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

      PHP-CGI就是PHP實現(xiàn)的自帶的FastCGI管理器。

      FastCGI 是一個協(xié)議,它是應(yīng)用程序和 WEB 服務(wù)器連接的橋梁。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 請求轉(zhuǎn)發(fā)給 php-fpm 進(jìn)行處理。通過 netstat 命令可以看到,127.0.0.1:9000 這個端口上運行的進(jìn)程就是 php-fpm.

      談?wù)刾hp中的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

      相關(guān)教程推薦:《PHP教程》

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