#!/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】
边栏推荐
- QT qlabel style settings
- Sil/pil test of matlab code generation
- Blender multi lens (multi stand) switching
- 2837xd code generation - stateflow (3)
- [ue5] two implementation methods of AI random roaming blueprint (role blueprint and behavior tree)
- Career planning and development
- Data insertion in C language
- 2837xd 代碼生成——補充(1)
- 【UE5】动画重定向:如何将幻塔人物导入进游戏玩耍
- ICLR 2022: how does AI recognize "things I haven't seen"?
猜你喜欢
Fragmenttabhost implements the interface of housing loan calculator
TD联合Modelsim进行功能仿真
2837xd 代码生成——补充(1)
Illusion -- Animation blueprint, state machine production, character walking, running and jumping action
UE5——AI追逐(蓝图、行为树)
2837xd 代码生成——总结篇
Required request body is missing: (cross domain problem)
Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedd
Image recognition - data annotation
2837xd代码生成模块学习(3)——IIC、eCAN、SCI、Watchdog、eCAP模块
随机推荐
Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedd
UE5——AI追逐(藍圖、行為樹)
Memories of a chat
Skywalking theory and Practice
[ue5] two implementation methods of AI random roaming blueprint (role blueprint and behavior tree)
Data insertion in C language
[ue5] blueprint making simple mine tutorial
Navicat remote connection MySQL reports an error 1045 - access denied for user 'root' @ '222.173.220.236' (using password: yes)
阿里云短信服务
三相逆变器离网控制——PR控制
Personal experience & blog status
2837xd code generation - stateflow (3)
保存视频 opencv::VideoWriter
The road is blocked and long, and the line is coming
MySQL index
2837xd Code Generation - Supplement (1)
BugkuCTF-web24(解题思路及步骤)
ue虚幻引擎程序化植物生成器设置——如何快速生成大片森林
Read 30 minutes before going to bed every day_ day3_ Files
Minimum number of C language