用php的官网,有很多源的,想要什么版本可以自己选一下
https://www.php.net/downloads.php
1.安装依赖包
yum -y install gcc gcc-c+php是什么意思+ libxml2-devel openssl-devel curl-devel libjpeg-devel libpng-devel libicu-devel freetype-devel openldap-devel openldap openldap-devel lphp精品源码ibtoolphp是什么意思 sqlite-devel
cp -frp /usr/lilinux系统b64/libldap*linux是什么操作系统 /usr/lib/
2创建用户组和用户
groulinux创建文件padd www
useradd -g www w系统运维包括哪些内容ww
3.安装ophp文件用什么软件打开niguruma
hphp是什么ttps://github.com/kkos/oniguruma/releases
tar -zxvf oniguruma-6.9.5.tar.gz
cd oniguruma-6.9.5
./configure --prefix=/usr --liphp文件用什么软件打开bdir=/lib64
make && make install
4.编译安装php
cd php-7.4.12
./configure --prefix=/usr/local/php --enlinuxable-fpm --with-fpm-user=www --with-fpm-group=www --enable-mysqlnd --with-mysqli=mysql系统运维面试题nd --with-pdphp精品源码o-mysql=mysqlnd --enable-mysqlnd-compression-sup系统运维面试题port --with-iconv-dir --with系统运维是干嘛的-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --wlinux是什么操作系统ith-libxml系统运维工作内容-dir --enable-xml --disable-rpath --enable-bcmath --enablinux是什么操作系统le-shmop --enable-sysvsem --enable-inline-optimization --with-curl --enable-mbregex --enable-mbstring --enable-intl --with-mcrypt --witlinux系统h-libmbfl --enable-ftp --enable-gd-php货币jis-conv --enable-gd-natphp中文网ivelinux-ttf --with-openssl --with-mhash系统/运维 --elinux虚拟机nable-pcntl --enable系统运维是干嘛的-sockets --with-xmlrpc --enable-zip --enable-系统运维工作内容soap --with-gettext --disable-fileinfo --enablinux常用命令le-opcache --with-pear --enable-maintainer-zts --with-ldaplinux创建文件=shared --enable-gd --with-jpeg --with-frlinux系统安装eetype
make &php是前端还是后端amp;& make install
5.映射全局命令
ln -sphp货币 /usr/local/php/sbin/* /usr/local/sbin/
ln -s /系统/运维usr/local/php/bin/* /usr/local/bin/
6.配php是什么置php-fpm
cp php.ini-production /usr/local/php/lib/php.ini
cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/phphpmyadminp-fpm.cphp是什么onf
cp /usr/local/phplinux必学的60个命令/etc/php-fpm.d/www.conf.default /usr/loclinux系统安装allinux重启命令/php/etc/php-fpm.d/www.conflinux重启命令
7.添加环境变量
vim /etc/profile
export PATH=$PATH:/usr/local/php/bin
source /etc/profile
8.启动
phphp是什么p-fpm
php -v
lsof -i:9000 端口启动则为正常
发表评论