久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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)站

      php-fpm 重啟失敗怎么辦

      php-fpm重啟失敗的解決辦法:1、查看一下對應(yīng)的nginx的配置文件為“root@example:/# vim /etc/nginx/sites-enabled/example.conf”;2、通過“service php7.0-fpm restart”命令重啟即可。

      php-fpm 重啟失敗怎么辦

      本教程操作環(huán)境:ubuntu 16.04系統(tǒng)、php7.0版、DELL G3電腦

      php-fpm 重啟失敗怎么辦?

      在 Ubuntu 服務(wù)器上重啟 php-fpm失敗

      在 Ubuntu 服務(wù)器上修改過 PHP 配置文件后,想重啟 php-fpm ,結(jié)果出現(xiàn)了這樣的問題:

      root@example:/# service php-fpm restart php-fpm: unrecognized service
      登錄后復(fù)制

      查看一下對應(yīng)服務(wù):

      root@example:/# service --status-all | grep -i fpm [ ? ]  aliyun-rdate [ ? ]  console-setup [ ? ]  dns-clean [ ? ]  irqbalance [ ? ]  killprocs [ ? ]  kmod [ ? ]  mysql [ ? ]  networking [ ? ]  ondemand [ + ]  php5-fpm [ + ]  php7.0-fpm [ ? ]  pppd-dns [ ? ]  rc.local [ ? ]  sendsigs [ ? ]  umountfs [ ? ]  umountnfs.sh [ ? ]  umountroot
      登錄后復(fù)制

      原來之前的人給服務(wù)器裝了兩個版本的 php-fpm ,而且都不名字都不叫 php-fpm ,所以我光打個 php-fpm 系統(tǒng)是不認(rèn)識的。

      查看一下對應(yīng)的 nginx 的配置文件:

      root@example:/# vim /etc/nginx/sites-enabled/example.conf 1 server { 2         listen 80; 3         server_name abc.example.com; 4         root /mnt/www/example; 5         index index.php index.html; 6 7         location ~ .php$ { 8                 fastcgi_pass unix:/run/php/php7.0-fpm.sock; 9                 fastcgi_index index.php; 10                 include fastcgi_params; 11         } 12 13         location / { 14                 if (!-e $request_filename) { 15                         rewrite ^(.*)$ /index.php?s=$1 last; 16                         break; 17                 } 18         } 19 20 }
      登錄后復(fù)制

      它監(jiān)聽的是 php7.0-fpm , 所以只需重啟這個就行:

      root@example:/etc/nginx/sites-enabled# service php7.0-fpm restart php7.0-fpm stop/waiting php7.0-fpm start/running, process 2807 root@example:/etc/nginx/sites-enabled#
      登錄后復(fù)制

      推薦學(xué)習(xí):《PHP視頻教程》

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