久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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亂碼的解決辦法:首先拷貝配置文件;然后制作fpm啟動服務;接著修改php-fpm文件;最后重啟“/etc/init.d/php-fpmrestart”即可。

      如何解決php-fpm亂碼問題

      推薦:《PHP視頻教程》

      php-fpm可執(zhí)行文件出現(xiàn)亂碼的解決方法

      配置php-fpm

      默認php安裝目錄:/usr/local/php

      先拷貝配置文件,在進行編輯

      代碼如下:

      cp/usr/local/php/etc/php-fpm.conf.default->/usr/local/php/etc/php-fpm.conf vi/usr/local/php/etc/php-fpm.conf

      制作fpm啟動服務

      復制下面的代碼,vi/etc/init.d/php-fpm,保存

      代碼如下:

      #!/bin/bash #php-fpmStartupscriptforphp-fpm,aFastCGIimplementation #thisscriptwascreatedbytonyat2010.07.21,basedonjackbillow'snginxscript. #itisv.0.0.1version. #ifyoufindanyerrorsonthisscripts,pleasecontacttony. #bysendingmailtotonytzhouatgmaildotcom. # #chkconfig:-8515 #description:php-fpmisanalternativeFastCGIimplementation,withsomeadditionalfeaturesusefulforsitesofanysize,especiallybusiersites. # #processname:phpfpm #pidfile:/usr/local/php/var/run/phpfpm.pid #config:/usr/local/php/etc/phpfpm.conf phpfpm=/usr/local/php/sbin/php-fpm config=/usr/local/php/lib/php.ini pid=/usr/local/php/var/run/php-fpm.pid RETVAL=0 prog="phpfpm" #Sourcefunctionlibrary. ./etc/rc.d/init.d/functions #Sourcenetworkingconfiguration. ./etc/sysconfig/network #Checkthatnetworkingisup. [${NETWORKING}="no"]&&exit0 [-x$phpfpm]||exit0 #Startphpfpmdaemonsfunctions. start(){ if[-e$pid];then echo"phpfpmisalreadyrunning...." exit1 fi echo-n$"Starting$prog:" daemon$phpfpm-c${config} RETVAL=$? echo [$RETVAL=0]&&touch/var/lock/subsys/phpfpm return$RETVAL } #Stopphpfpmdaemonsfunctions. stop(){ echo-n$"Stopping$prog:" killproc$phpfpm RETVAL=$? echo [$RETVAL=0]&&rm-f/var/lock/subsys/phpfpm/var/run/phpfpm.pid } #reloadphpfpmservicefunctions. reload(){ echo-n$"Reloading$prog:" #kill-HUP`cat${pid}` killproc$phpfpm-HUP RETVAL=$? echo } #Seehowwewerecalled. case"$1"in start) start ;; stop) stop ;; reload) reload ;; restart) stop start ;; status) status$prog RETVAL=$? *) echo$"Usage:$prog{start|stop|restart|reload|status|help}" exit1 esac exit$RETVAL chmod+x/etc/rc.d/init.d/php-fpm#添加執(zhí)行權限 chkconfigphp-fpmon#設置開機啟動

      啟動/etc/init.d/php-fpmstart

      停止/etc/init.d/php-fpmstop

      重啟/etc/init.d/php-fpmrestart

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