#!/bin/bash
# Specific version number
PHP_V=7.4.2
TMP_DIR=/tmp
INSTALL_DIR=/usr/local
function install_php() {
cd $TMP_DIR
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-${PHP_V}.tar.bz2 &&
tar -jxvf php-${PHP_V}.tar.bz2 && cd php-${PHP_V} &&
mv php-${PHP_V} $INSTALL_DIR/php
cd $INSTALL_DIR/php;
./configure --prefix=$INSTALL_DIR/php --with-config-file-path=$INSTALL_DIR/php/etc
sleep 1s;
if [ $? -eq 0 ];then
make ZEND_EXTRA_LIBS="-liconv" &&make install
echo -e " 33[32m PHP Service installed successfully ! 33[0m"
else
echo -e " 33[32m PHP Service installation failed , Please check the configuration file ! 33[0m"
exit
fi
}
install_php
当前位置:网站首页>Centos7 one click compilation and installation of PHP script
Centos7 one click compilation and installation of PHP script
2022-07-02 10:03:00 【KentBryce】
边栏推荐
- 2837xd code generation - stateflow (4)
- ZK configuration center -- configuration and use of config Toolkit
- Junit4运行mvn test 测试套件升级方案
- Bugkuctf-web16 (backup is a good habit)
- 渗透测试的介绍和防范
- QT QLabel样式设置
- YOLO物体识别,生成数据用到的工具
- 2837xd code generation module learning (3) -- IIC, ECAN, SCI, watchdog, ECAP modules
- [ue5] animation redirection: how to import magic tower characters into the game
- 滲透測試的介紹和防範
猜你喜欢
In SQL injection, why must the ID of union joint query be equal to 0
Alibaba cloud Prometheus monitoring service
Blender multi lens (multi stand) switching
PI control of three-phase grid connected inverter - off grid mode
【虚幻】自动门蓝图笔记
2837xd code generation module learning (3) -- IIC, ECAN, SCI, watchdog, ECAP modules
阿里云短信服务
Navicat remote connection MySQL reports an error 1045 - access denied for user 'root' @ '222.173.220.236' (using password: yes)
Image recognition - data annotation
滲透測試的介紹和防範
随机推荐
Web security and defense
[ue5] blueprint making simple mine tutorial
Mobile mall app solution: how much is it to make an app? Detailed explanation of APP mall development content
2837xd code generation - Summary
职业规划和发展
上班第一天的报错(Nessus安装winpcap报错)
Data insertion in C language
Image recognition - Data Acquisition
Save video opencv:: videowriter
Vs+qt set application icon
MySQL transaction
【UE5】动画重定向:如何将幻塔人物导入进游戏玩耍
[Yu Yue education] University Physics (Electromagnetics) reference materials of Taizhou College of science and technology, Nanjing University of Technology
Mixed development of uni app -- Taking wechat applet as an example
Mysql索引
kinect dk 获取CV::Mat格式的彩色RGB图像(openpose中使用)
2837xd Code Generation - Supplement (1)
Attack and defense world web advanced area unserialize3
Error reporting on the first day of work (incomplete awvs unloading)
Share a blog (water blog)