php 常用记录

https://medoo.lvtao.net/   连接库的

查看进程关系 linux:  ps -axjf|grep php-swoole-zookeeper

php安装
-------------------
1、首先安装 EPEL 源:

yum install epel-release
安装 REMI 源:

yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm  
2、安装 Yum 源管理工具:

yum install yum-utils
3、安装 PHP7.3:

yum install -y php74-php-fpm php74-php-cli php74-php-bcmath php74-php-gd php74-php-json php74-php-mbstring php74-php-mcrypt php74-php-mysqlnd php74-php-opcache php74-php-pdo php74-php-pecl-crypto php74-php-pecl-mcrypt php74-php-pecl-geoip php74-php-pecl-swoole php74-php-recode php74-php-snmp php74-php-soap php74-php-xmll  php74-libxml php74-simplexml php74-php-devel php74-php-xml
安装完成后最好重启一下计算机,不然有可能无法启动php
设置开机启动、运行服务:

systemctl enable php73-php-fpm
systemctl start php73-php-fpm



pecl安装
//php版本 > 7
$ wget http://pear.php.net/go-pear.phar
$ php go-pear.phar

//php版本 < 7
$ yum install php-pear
//否则会报错PHP Parse error:  syntax error, unexpected //'new' (T_NEW) in /usr/share/pear/PEAR/Frontend.php on //line 91

猜你喜欢

转载自blog.csdn.net/oqzuser12345678999q/article/details/107151239
今日推荐