Shell学习成果之一键自动安装PHP7.3
系统:CentOS7.7.1908
PHP:
*********************************************************************START****************************************************************************
#!/bin/bash
#auto install php
#by 网络虾米哥 2019-11-20
yum -y install gcc gcc-c++ make zlib zlib-devel pcre pcre-devel libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers
wget -c http://mirrors.sohu.com/php/php-7.3.9.tar.bz2 && tar -jxvf php-7.3.9.tar.bz2 && cd php-7.3.9 &&./configure --prefix=/usr/local/php7 --with-config-file-path=/usr/local/php7/etc
if [ $? -eq 0 ];then
make ZEND_EXTRA_LIBS="-liconv" &&make install
echo -e "33[32mThe php server isntall successfully!33[0m"
else
echo -e "33[32mThe php server install Failed,Please check it.33[0m"
exit
fi
************************************************************************END***************************************************************************
以上是 Shell学习成果之一键自动安装PHP7.3 的全部内容, 来源链接: utcz.com/z/510960.html