您好,登錄后才能下訂單哦!
安裝完P(guān)HP后,自身有啟動(dòng)腳本,比如本人安裝路徑為:/usr/local/php
源碼路徑為:/usr/local/src/php-5.4.38
[root@lnmp ~]# cp /usr/local/src/php-5.4.38/sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm
[root@lnmp ~]# chmod +x /etc/init.d/php-fpm #賦予執(zhí)行權(quán)限
[root@lnmp ~]# chkconfig --add php-fpm
[root@lnmp ~]# service php-fpm status
php-fpm is stopped
[root@lnmp ~]# service php-fpm start
Starting php-fpm done
本人由于之前是通過(guò)[root@lnmp ~]# /usr/local/php/sbin/php-fpm 已經(jīng)開(kāi)啟php,此時(shí)如果報(bào)錯(cuò)
[root@lnmp ~]# /etc/init.d/php-fpm start
Starting php-fpm [23-Mar-2015 19:51:10] ERROR: unable to bind listening socket for address '127.0.0.1:9000': Address already in use (98)
[23-Mar-2015 19:51:10] ERROR: FPM initialization failed
failed
[root@lnmp ~]# /etc/init.d/php-fpm stop
Gracefully shutting down php-fpm . done
[root@lnmp ~]# /etc/init.d/php-fpm start
Starting php-fpm done
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。