1 安裝[1]1 如果系統(tǒng)之前已經(jīng)通過(guò)yum安裝過(guò)了php,這里先卸載
yum remove php*
yum list insta" />

国产成人精品无码青草_亚洲国产美女精品久久久久∴_欧美人与鲁交大毛片免费_国产果冻豆传媒麻婆精东

所在位置: 首頁(yè) > 營(yíng)銷(xiāo)資訊 > 網(wǎng)站運(yùn)營(yíng) > 技術(shù):Web:PHP5.6搭建

技術(shù):Web:PHP5.6搭建

時(shí)間:2023-05-05 01:00:02 | 來(lái)源:網(wǎng)站運(yùn)營(yíng)

時(shí)間:2023-05-05 01:00:02 來(lái)源:網(wǎng)站運(yùn)營(yíng)

技術(shù):Web:PHP5.6搭建:

0 背景

在php的熱度急速下跌的今天,在php8已經(jīng)發(fā)現(xiàn)的日子,記錄php5.6的安裝似乎有點(diǎn)固執(zhí);但是也是實(shí)際需要

1 安裝[1]

  1. 1 如果系統(tǒng)之前已經(jīng)通過(guò)yum安裝過(guò)了php,這里先卸載
    yum remove php*
    yum list installed | grep php
  2. 2 安裝yum源
    yum -y install epel-release (安裝epel源)
    wget http://mirrors.163.com/.help/CentOS6-Base-163.repo (安裝163源)
    rpm –Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm (安裝remi源)
  3. 3 安裝php5.6
    yum install --enablerepo=remi --enablerepo=remi-php56 php-fpm
    yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof php-bcmath php-gd --skip-broken

2 開(kāi)機(jī)啟動(dòng)[2]

#!/bin/sh # chkconfig: 2345 15 95# description: PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation /# with some additional features useful for sites of any size, especially busier sites.# DateTime: 2016-09-20# Source function library. . /etc/rc.d/init.d/functions # Source networking configuration. . /etc/sysconfig/network # Check that networking is up. [ "$NETWORKING" = "no" ] && exit 0 #[IMPORTANT: Write Your file path]phpfpm="/usr/local/php/sbin/php-fpm" prog=$(basename ${phpfpm}) lockfile=/var/lock/subsys/phpfpmstart() { [ -x ${phpfpm} ] || exit 5 echo -n $"Starting $prog: " daemon ${phpfpm} retval=$? echo [ $retval -eq 0 ] && touch $lockfile return $retval } stop() { echo -n $"Stopping $prog: " killproc $prog -QUIT retval=$? echo [ $retval -eq 0 ] && rm -f $lockfile return $retval } restart() { configtest || return $? stop start } reload() { configtest || return $? echo -n $"Reloading $prog: " killproc ${phpfpm} -HUP RETVAL=$? echo } force_reload() { restart } configtest() { ${phpfpm} -t} rh_status() { status $prog } rh_status_q() { rh_status >/dev/null 2>&1 } case "$1" in start) rh_status_q && exit 0 $1 ;; stop) rh_status_q || exit 0 $1 ;; restart|configtest) $1 ;; reload) rh_status_q || exit 7 $1 ;; status) rh_status ;; *) echo $"Usage: $0 {start|stop|status|restart|reload|configtest}" exit 2 esac

參考

  1. ^1?https://blog.csdn.net/bjgaocp/article/details/98480920
  2. ^2?https://blog.csdn.net/lzy0613/article/details/76300371

關(guān)鍵詞:技術(shù)

74
73
25
news

版權(quán)所有? 億企邦 1997-2025 保留一切法律許可權(quán)利。

為了最佳展示效果,本站不支持IE9及以下版本的瀏覽器,建議您使用谷歌Chrome瀏覽器。 點(diǎn)擊下載Chrome瀏覽器
關(guān)閉