linux:安装php56
差别
这里会显示出您选择的修订版和当前版本之间的差别。
| 两侧同时换到之前的修订记录前一修订版后一修订版 | 前一修订版 | ||
| linux:安装php56 [2019/10/30 19:51] – zhangguo | linux:安装php56 [2026/10/13 22:51] (当前版本) – 外部编辑 127.0.0.1 | ||
|---|---|---|---|
| 行 5: | 行 5: | ||
| 删除旧php包 | 删除旧php包 | ||
| - | < | + | |
| + | ```bash | ||
| yum remove php.x86_64 php-cli.x86_64 php-common.x86_64 php-gd.x86_64 php-ldap.x86_64 php-mbstring.x86_64 php-mcrypt.x86_64 php-mysql.x86_64 php-pdo.x86_64 | yum remove php.x86_64 php-cli.x86_64 php-common.x86_64 php-gd.x86_64 php-ldap.x86_64 php-mbstring.x86_64 php-mcrypt.x86_64 php-mysql.x86_64 php-pdo.x86_64 | ||
| - | </ | + | ``` |
| 配置epel源 | 配置epel源 | ||
| - | < | + | |
| + | ```bash | ||
| yum install -y epel-release | yum install -y epel-release | ||
| wget -O / | wget -O / | ||
| - | </ | + | ``` |
| 配置remi源 | 配置remi源 | ||
| - | < | + | |
| + | ```bash | ||
| rpm -ivh http:// | rpm -ivh http:// | ||
| - | </ | + | ``` |
| 安装php5.6.x | 安装php5.6.x | ||
| - | < | + | |
| - | 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 | + | ```bash |
| - | </ | + | 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-fpm | 安装php-fpm | ||
| - | < | + | |
| - | yum install --enablerepo=remi --enablerepo=remi-php56 php-fpm | + | ```bash |
| - | </ | + | yum install --enablerepo=remi --enablerepo=remi-php56 php-fpm |
| + | ``` | ||
| 配置开机启动服务 | 配置开机启动服务 | ||
| - | < | + | |
| + | ```bash | ||
| # | # | ||
| chkconfig php-fpm on | chkconfig php-fpm on | ||
| # | # | ||
| / | / | ||
| - | </ | + | ``` |
| 查看是否安装成功 | 查看是否安装成功 | ||
| - | < | + | |
| + | ```bash | ||
| ps -ef | grep php | ps -ef | grep php | ||
| netstat -anp | grep 9000 | netstat -anp | grep 9000 | ||
| - | </code> | + | ``` |
| + | |||
| + | |||
| + | |||
| + | |||
| + | ```bash | ||
| + | /sbin/ | ||
| + | / | ||
| + | ``` | ||
linux/安装php56.1572436310.txt.gz · 最后更改: (外部编辑)
