#!/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 代码生成——补充(1)
- Mobile mall app solution: how much is it to make an app? Detailed explanation of APP mall development content
- QT QLabel样式设置
- Ue5 - ai Pursuit (Blueprint, Behavior tree)
- 【UE5】蓝图制作简单地雷教程
- BugkuCTF-web16(备份是个好习惯)
- 2837xd code generation module learning (3) -- IIC, ECAN, SCI, watchdog, ECAP modules
- Mixed development of uni app -- Taking wechat applet as an example
- Read 30 minutes before going to bed every day_ day4_ Files
- 【虚幻】自动门蓝图笔记
猜你喜欢
![[ue5] animation redirection: how to import magic tower characters into the game](/img/a0/084381493cbc3992b61ef1b8ffce36.png)
[ue5] animation redirection: how to import magic tower characters into the game

YOLO物体识别,生成数据用到的工具

BugkuCTF-web21(详细解题思路及步骤)

2837xd code generation module learning (4) -- idle_ task、Simulink Coder

PI control of grid connected inverter (grid connected mode)

2837xd Code Generation - Supplement (1)

kinect dk 获取CV::Mat格式的彩色RGB图像(openpose中使用)

The latest progress and development trend of 2022 intelligent voice technology

2837xd code generation - Supplement (2)

Junit4 runs MVN test test suite upgrade scheme
随机推荐
ue虚幻引擎程序化植物生成器设置——如何快速生成大片森林
QT QLabel样式设置
About the college entrance examination
[ue5] two implementation methods of AI random roaming blueprint (role blueprint and behavior tree)
阿里云Prometheus监控服务
Inverter Simulink model -- processor in the loop test (PIL)
2837xd 代碼生成——StateFlow(4)
MySQL index
Navicat remote connection MySQL reports an error 1045 - access denied for user 'root' @ '222.173.220.236' (using password: yes)
Read Day5 30 minutes before going to bed every day_ All key values in the map, how to obtain all value values
2837xd code generation module learning (1) -- GPIO module
C language: making barrels
TD联合Modelsim进行功能仿真
职业规划和发展
渗透测试的介绍和防范
Typora installation package sharing
QT信号槽总结-connect函数错误用法
阿里云短信服务
This monitoring system makes workers tremble: turnover intention and fishing can be monitored. After the dispute, the product page has 404
2837xd code generation - stateflow (4)