二、解壓.tar.gz檔案
三、安裝依賴
四、新增使用者組
五、進入php-7.3.8目錄下,執行./configure
六、編譯和安裝
七、配置php環境變數
八、複製php.ini
九、php -v檢視版本
yum -y install wget pcre pcre-devel openssl openssl-devel libicu-devel autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel ncurses ncurses-devel curl curl-devel krb5-devel libidn libidn-devel openldap openldap-devel nss_ldap jemalloc-devel cmake boost-devel bison automake libevent libevent-devel gd gd-devel libtool* libmcrypt libmcrypt-devel mcrypt mhash libxslt libxslt-devel readline readline-devel gmp gmp-devel libcurl libcurl-devel openjpeg-devel gdbm-devel#新增組
groupadd www
#新增使用者
useradd -g www www
.
/configure --prefix=
/usr/local/php/php73 --
with
-config-file-path=
/usr/local/php/php73/etc --
with
-apxs2=
/usr/bin/apxs --
with
-fpm-user=www --
with
-fpm-group=www --
with
-mysqli=mysqlnd --
with
-pdo-mysql=mysqlnd --
with
-iconv-dir --
with
-freetype-dir --
with
-jpeg-dir --
with
-png-dir --
with
-zlib --
with
-libxml-dir --
with
-ldap=shared --
with
-gdbm --
with
-pear --
with
-gettext --
with
-curl --
with
-xmlrpc --
with
-openssl --
with
-mhash --
with
-gd --enable-fpm --enable-mysqlnd --enable-mysqlnd-compression-support --enable-xml --enable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --enable-mbregex --enable-mbstring --enable-intl --enable-ftp --enable-gd-jis-conv --enable-pcntl --enable-sockets --enable-zip --enable-soap --enable-fileinfo --enable-opcache --enable-maintainer-zts
1、configure: error: cannot find ldap libraries in /usr/lib
複製
cp -frp /usr/lib64/libldap*
.tar.gz
解壓
tar zxvf libzip-
1.5.2
.tar.gz
進入目錄
cd libzip-
1.5.2
編譯安裝
.0-rc5.tar.gz解壓
tar zxf cmake-
3.10
.0-rc5.tar.gz
進入目錄
cd cmake-
3.10
.0-rc5
編譯安裝
.
/bootstrap
gmake
gmake install
檢視cmake版本出錯:cmake error:could not find cmake_root!!!
執行命令
hash -r
vi /etc/ld.so.conf
新增如下幾行
/usr/local/lib64
/usr/local/lib
/usr/lib
/usr/lib64
:wq #儲存退出
使之生效
ldconfig -v
make && make install
編輯profile
vim /etc/profile
在profile檔案末尾新增如下內容:
export
path
=$path
:/usr/local/php7/bin #這一步可以讓我們全域性使用php命令
讓修改後的profile生效
source /etc/profile
cp php.ini-development /server/php/lib/php.ini
php -v
出現版本號即為安裝成功
php
7.3.8
(cli)
(built: nov 19
201914:
26:58)
(zts
)(c)
1997
-2018 the php group
zend engine v3.
3.8,
(c)1998
-2018 zend technologies
Centos7 7安裝docker記錄
如果之前安裝過docker,需要解除安裝 sudo yum remove docker docker client docker client latest docker common docker latest docker latest logrotate docker logrotate do...
centos7 7安裝部署docker
系統版本 centos linux release 7.7.1908 core 核心版本 3.10.0 1062.el7.x86 64 更新yum源和docker源 root k8s docker yum.repos.d rm rf etc yum.repos.d 刪除所有預設的源 root k8s...
Centos7 7之離線安裝kubectl
centos7.7,kubernates 1.13.5.我的centos7.7上已經安裝了kubernates 1.13.5,但是沒有kubectl命令,手動安裝 瀏覽器中訪問得到的最新的穩定版本,但是我們需要的版本是1.13.5,之後將kubectl檔案傳到伺服器上,chmod x kubectl...