centos 安装PHP环境
安装PHP7.2
dnf module list php
dnf module reset php
dnf module enable php:7.2
dnf install -y php php-opcache php-gd php-curl php-mysqlnd
php -v
安装pcntl和posix扩展
yum install php-process
检查WORKERMAN 环境
curl -Ss http://www.workerman.net/check.php | php
安装pecl扩展
yum install php-pear php-devel
安装event扩展
yum install libevent-devel -y
安装bcmath扩展
yum search bcmath(先查找,按找到的名称安装)
yum install php-bcmath
安装REDIS扩展
yum install php-redis
安装ZIP扩展
yum install php-pecl-zip
yum install php-mbstring
安装REDIS
yum install redis
sudo systemctl enable --now redis(启动)
sudo systemctl status redis(查看运行状态)
安装mysql
yum install mysql-server
mysqladmin --version
systemctl start mysqld
systemctl enable mysqld
systemctl status mysqld
安装nginx
yum install nginx
sudo systemctl enable nginx
sudo systemctl start nginx
sudo systemctl status nginx(可以看到config文件所在位置)