2020年4月

接上篇,本片安装Nginx,最后顺便说下yum安装MariaDB(MySQL)和PHP调用MySQL时注意事项。

准备

假设开始目录是/home

更新yum

yum update -y

安装所需依赖

yum -y install gcc gcc-c++ automake pcre pcre-devel zlib zlib-devel openssl openssl-devel gd-devel    

如果已经按照上一篇安装过php的,只需安装以下所需依赖

yum -y install gcc gcc-c++ automake pcre pcre-devel 

- 阅读剩余部分 -

前期准备

假设开始目录在/home

更新下yum

yum update -y 

安装依赖

yum install -y \
bzip2 bzip2-devel \
libcurl-devel \
gd gd-devel \
gmp gmp-devel \
libmcrypt libmcrypt-devel \
libxml2 libxml2-devel \
xmlrpc-c xmlrpc-c-devel \
openssl openssl-devel \
readline readline-devel \
libxml2 libxml2-devel \
libxslt libxslt-devel \
zlib zlib-devel \
libevent libevent-devel \
libjpeg libjpeg-devel \
libpng libpng-devel \
freetype freetype-devel

- 阅读剩余部分 -