docker下debian8编译安装nginx+php

2024-04-15 12:36

本文主要是介绍docker下debian8编译安装nginx+php,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

--------------nginx 也可以apt安装

10 cd /work/

12 tar -zxvf nginx-1.12.1.tar.gz

13 mkdir libs

14 cd nginx-1.12.1

19 apt-get install gcc libpcre3 libpcre3-dev libssl-dev automake autoconf libtool make

30 ./configure --prefix=/work/libs/nginx-1.12.1 --with-pcre --with-http_ssl_module

36 make

37 make install

38 cd /work/libs/nginx-1.12.1/sbin/

43 ./nginx

php7.2

9 tar -zxvf php-7.2.7.tar.gz

11 cd php-7.2.7

13 apt-get install gcc libpcre3 libpcre3-dev libssl-dev automake autoconf libtool make libbz2-dev libjpeg-dev libxml2 libxml2-dev libpcre3-dev libpng12-dev libgd2-xpm-dev libmhash-dev libtidy-dev libmcrypt-dev libxpm-dev libxpm curl libcurl4-gnutls-dev libbz2-dev libjpeg-dev libxml2 libxml2-dev libpcre3-dev libpng12-dev libgd2-xpm-dev libmhash-dev libtidy-dev libmcrypt-dev libxpm-dev libxpm curl libcurl4-gnutls-dev libxml2 libxml2-dev openssl libbz2-dev libjpeg-dev curl libcurl4-gnutls-dev libpng12-dev libfreetype6-dev libreadline-dev librecode-dev libtidy-dev libxslt1-dev

apt-get install gcc libpcre3 libpcre3-dev libssl-dev automake autoconf libtool make libbz2-dev libjpeg-dev libxml2 libxml2-dev libpcre3-dev libpng12-dev libgd2-xpm-dev libmhash-dev libtidy-dev libmcrypt-dev libbz2-dev libjpeg-dev libxml2 libxml2-dev libpcre3-dev libpng12-dev libgd2-xpm-dev libmhash-dev libtidy-dev libmcrypt-dev curl libxml2 libxml2-dev openssl libbz2-dev libjpeg-dev curl libpng12-dev libfreetype6-dev libreadline-dev librecode-dev libtidy-dev libxslt1-dev

find / -name libssl.so

ln -s /usr/lib/x86_64-linux-gnu/libssl.so /usr/lib/

14 ./configure --prefix=/work/libs/php-7.2.9 --enable-fpm --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-mhash --with-openssl --with-zlib --with-bz2 --with-curl --with-libxml-dir --with-gd --with-jpeg-dir --with-png-dir --with-zlib --enable-mbstring --enable-sockets --with-iconv-dir --with-xsl --enable-zip --with-pcre-dir --with-pear --enable-session --enable-xml --with-freetype-dir --enable-gd-jis-conv --enable-inline-optimization --enable-shared --enable-bcmath --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-mbregex --enable-pcntl --with-xmlrpc --with-gettext --enable-exif --with-readline --with-recode --with-tidy

$ ./configure --prefix=/usr/local/libmcrypt --disable-posix-threads --build=i686-pc-linux

make && make install

-----------php5.3

60 tar -zxvf php-5.3.29.tar.gz

61 cd php-5.3.29

93 apt-get install libbz2-dev libjpeg-dev libxml2 libxml2-dev libpcre3-dev libpng12-dev

98 apt-get install libgd2-xpm-dev libmhash-dev libtidy-dev libmcrypt-dev

103 apt-get install libxpm-dev

104 apt-get install libxpm curl libcurl4-gnutls-dev

119 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.6.5.tar.gz

125 tar -zxvf freetype-2.6.5.tar.gz

126 cd freetype-2.6.5

131 ./configure

132 make

133 make install

157 tar -jxvf gmp-6.1.2.tar.bz2

161 ./configure

162 make

163 make install

169 apt-get install libreadline6 libreadline6-dev

178 tar -zxvf libiconv-1.15.tar.gz

179 cd libiconv-1.15

180 ./configure

181 make

182 make install

208 tar -zxvf openssl-1.0.2l.tar.gz

209 cd openssl-1.0.2l

210 ./config

211 make

212 make install

ln -sf /usr/include/freetype2 /usr/include/freetype2/freetype

sudo apt-get install libgmp-dev sudo apt-get install libgmp3-dev ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h

213 cd ..

214 cd php-5.3.29

./configure --prefix=/work/libs/php-5.3.29 --enable-fpm --enable-bcmath --with-gd --enable-gd-native-ttf --with-mysql=mysqlnd --with-gd --with-png-dir --with-curl --with-bz2 --with-freetype-dir --with-iconv-dir --with-zlib-dir --enable-soap --with-pear=PREFIX/pear --enable-gd-native-ttf --enable-mbstring --enable-exif --disable-cgi --enable-cli --with-jpeg-dir --enable-bcmath --enable-sockets --disable-ipv6 --with-mcrypt=/usr/local/libmcrypt/ --enable-mysqlnd --with-mysqli=mysqlnd --disable-mysqlnd-compression-support --with-pdo-mysql=mysqlnd --with-openssl --enable-bcmath --enable-calendar --enable-ftp --with-gettext --with-gmp --enable-mbstring --with-zlib --enable-zip --enable-sockets --enable-shmop --with-readline --enable-sqlite-utf8 --enable-pcntl

219 make

220 make install

224 cp php.ini-development /work/libs/php-5.3.29/lib/php.ini

225 vi /work/libs/php-5.3.29/lib/php.ini

date.timezone = PRC

226 cp /work/libs/php-5.3.29/etc/php-fpm.conf.default /work/libs/php-5.3.29/etc/php-fpm.conf

227 vi /work/libs/php-5.3.29/etc/php-fpm.conf

9002

230 tar -zxvf php-5.6.30.tar.gz

231 cd php-5.6.30

232 history

233 ./configure --prefix=/work/libs/php-5.6.30 --enable-fpm --enable-bcmath --with-gd --enable-gd-native-ttf --with-gd --with-png-dir --with-curl --with-bz2 --with-freetype-dir --with-iconv-dir

--with-zlib-dir --enable-soap --with-pear=PREFIX/pear --enable-gd-native-ttf --enable-mbstring --enable-exif --disable-cgi --enable-cli --with-jpeg-dir --enable-bcmath --enable-sockets --disable-ip

v6 --with-mcrypt --with-mysql=mysqlnd --enable-ftp --enable-mysqlnd --with-mysqli=mysqlnd --enable-embedded-mysqli --enable-embedded-mysqli --disable-mysqlnd-compression-support --with-pdo-mys

ql=mysqlnd --with-openssl

234 make ; make install

235 history | grep iconv

236 history | grep iconv

237 history | grep iconv --color

240 ./configure --prefix=/work/libs/php-5.6.30 --enable-fpm --enable-bcmath --with-gd --enable-gd-native-ttf --with-gd --with-png-dir --with-curl --with-bz2 --with-freetype-dir --with-iconv-dir

--with-zlib-dir --enable-soap --with-pear=PREFIX/pear --enable-gd-native-ttf --enable-mbstring --enable-exif --disable-cgi --enable-cli --with-jpeg-dir --enable-bcmath --enable-sockets --disable-ip

v6 --with-mcrypt --with-mysql=mysqlnd --enable-ftp --enable-mysqlnd --with-mysqli=mysqlnd --enable-embedded-mysqli --disable-mysqlnd-compression-support --with-pdo-mysql=mysqlnd --with-openssl

241 make

242 ls

243 cd ..

244 ls

245 cd libiconv-1.15

246 ./configure --help

247 ./configure --prefix=/work/libs/libiconv-1.15

248 make;make install

249 cd ../php-5.6.30

250 ./configure --prefix=/work/libs/php-5.6.30 --enable-fpm --enable-bcmath --with-gd --enable-gd-native-ttf --with-gd --with-png-dir --with-curl --with-bz2 --with-freetype-dir --with-iconv-dir=

/work/libs/libiconv-1.15/ --with-zlib-dir --enable-soap --with-pear=PREFIX/pear --enable-gd-native-ttf --enable-mbstring --enable-exif --disable-cgi --enable-cli --with-jpeg-dir --enable-bcmath --e

nable-sockets --disable-ipv6 --with-mcrypt --with-mysql=mysqlnd --enable-ftp --enable-mysqlnd --with-mysqli=mysqlnd --enable-embedded-mysqli --compression-support --with-pdo-mysql=mysqlnd --wit

h-openssl

251 ./configure --prefix=/work/libs/php-5.6.30 --enable-fpm --enable-bcmath --with-gd --enable-gd-native-ttf --with-gd --with-png-dir --with-curl --with-bz2 --with-freetype-dir --with-iconv-dir=

/work/libs/libiconv-1.15/ --with-zlib-dir --enable-soap --with-pear=PREFIX/pear --enable-gd-native-ttf --enable-mbstring --enable-exif --disable-cgi --enable-cli --with-jpeg-dir --enable-bcmath --e

nable-sockets --disable-ipv6 --with-mcrypt --with-mysql=mysqlnd --enable-ftp --enable-mysqlnd --with-mysqli=mysqlnd --enable-embedded-mysqli --disable-mysqlnd-compression-support --with-pdo-mys

ql=mysqlnd --with-openssl

252 make

253 apt search iconv

254 vi Makefile

255 make

256 make install

257 cp php.ini-development /work/libs/php-5.6.30/lib/php.ini

258 cd ..

259 ls

260 tar -zxvf php-7.1.6.tar.gz

261 cd php-7.1.6

262 ./configure --prefix=/work/libs/php-7.1.6 --enable-fpm --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-mhash --with-openssl --with-zlib --with-bz2 --with-curl --with-libxml-dir --with-

gd --with-jpeg-dir --with-png-dir --with-zlib --enable-mbstring --with-mcrypt --enable-sockets --with-iconv-dir --with-xsl --enable-zip --with-pcre-dir --with-pear --enable-session --enable-gd-nat

ive-ttf --enable-xml --with-freetype-dir --enable-gd-jis-conv --enable-inline-optimization --enable-shared --enable-bcmath --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-mbregex --enab

le-pcntl --with-xmlrpc --with-gettext --enable-exif --with-readline --with-recode --with-tidy

263 apt search recode

264 apt-get install librecode-dev recode

265 apt-get install librecode-dev librecode

266 apt-get install librecode-dev recode

267 ./configure --prefix=/work/libs/php-7.1.6 --enable-fpm --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-mhash --with-openssl --with-zlib --with-bz2 --with-curl --with-libxml-dir --with-

gd --with-jpeg-dir --with-png-dir --with-zlib --enable-mbstring --with-mcrypt --enable-sockets --with-iconv-dir --with-xsl --enable-zip --with-pcre-dir --with-pear --enable-session --enable-gd-nat

ive-ttf --enable-xml --with-freetype-dir --enable-gd-jis-conv --enable-inline-optimization --enable-shared --enable-bcmath --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-mbregex --enab

le-pcntl --with-xmlrpc --with-gettext --enable-exif --with-readline --with-recode --with-tidy

268 apt search libxslt

269 apt-get install libxslt1-dev libxslt1.1

270 ./configure --prefix=/work/libs/php-7.1.6 --enable-fpm --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-mhash --with-openssl --with-zlib --with-bz2 --with-curl --with-libxml-dir --with-

gd --with-jpeg-dir --with-png-dir --with-zlib --enable-mbstring --with-mcrypt --enable-sockets --with-iconv-dir --with-xsl --enable-zip --with-pcre-dir --with-pear --enable-session --enable-gd-nat

ive-ttf --enable-xml --with-freetype-dir --enable-gd-jis-conv --enable-inline-optimization --enable-shared --enable-bcmath --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-mbregex --enable-pcntl --with-xmlrpc --with-gettext --enable-exif --with-readline --with-recode --with-tidy

271 make

./configure --prefix=/usr/local/php71 --enable-fpm --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-mhash --with-openssl --with-zlib --with-bz2 --with-curl --with-libxml-dir --with-gd --with-jpeg-dir --with-png-dir --with-zlib --enable-mbstring --with-mcrypt --enable-sockets --with-iconv-dir --with-xsl --enable-zip --with-pcre-dir --with-pear --enable-session --enable-gd-native-ttf --enable-xml --with-freetype-dir --enable-gd-jis-conv --enable-inline-optimization --enable-shared --enable-bcmath --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-mbregex --enable-pcntl --with-xmlrpc --with-gettext --enable-exif --with-readline --with-recode --with-tidy

./configure --prefix=/usr/local/php71 --with-apxs2 --with-config-file-path=/usr/local/php71/etc --enable-fpm --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-mhash --with-openssl --with-zlib --with-bz2 --with-curl --with-libxml-dir --with-gd --with-jpeg-dir --with-png-dir --with-zlib --enable-mbstring --with-mcrypt --enable-sockets --with-iconv-dir --with-xsl --enable-zip --with-pcre-dir --with-pear --enable-session --enable-gd-native-ttf --enable-xml --with-freetype-dir --enable-gd-jis-conv --enable-inline-optimization --enable-shared --enable-bcmath --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-mbregex --enable-pcntl --with-xmlrpc --with-gettext --enable-exif --with-readline --with-recode --with-tidy

这篇关于docker下debian8编译安装nginx+php的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/905834

相关文章

python管理工具之conda安装部署及使用详解

《python管理工具之conda安装部署及使用详解》这篇文章详细介绍了如何安装和使用conda来管理Python环境,它涵盖了从安装部署、镜像源配置到具体的conda使用方法,包括创建、激活、安装包... 目录pytpshheraerUhon管理工具:conda部署+使用一、安装部署1、 下载2、 安装3

解决systemctl reload nginx重启Nginx服务报错:Job for nginx.service invalid问题

《解决systemctlreloadnginx重启Nginx服务报错:Jobfornginx.serviceinvalid问题》文章描述了通过`systemctlstatusnginx.se... 目录systemctl reload nginx重启Nginx服务报错:Job for nginx.javas

龙蜥操作系统Anolis OS-23.x安装配置图解教程(保姆级)

《龙蜥操作系统AnolisOS-23.x安装配置图解教程(保姆级)》:本文主要介绍了安装和配置AnolisOS23.2系统,包括分区、软件选择、设置root密码、网络配置、主机名设置和禁用SELinux的步骤,详细内容请阅读本文,希望能对你有所帮助... ‌AnolisOS‌是由阿里云推出的开源操作系统,旨

Ubuntu系统怎么安装Warp? 新一代AI 终端神器安装使用方法

《Ubuntu系统怎么安装Warp?新一代AI终端神器安装使用方法》Warp是一款使用Rust开发的现代化AI终端工具,该怎么再Ubuntu系统中安装使用呢?下面我们就来看看详细教程... Warp Terminal 是一款使用 Rust 开发的现代化「AI 终端」工具。最初它只支持 MACOS,但在 20

mysql-8.0.30压缩包版安装和配置MySQL环境过程

《mysql-8.0.30压缩包版安装和配置MySQL环境过程》该文章介绍了如何在Windows系统中下载、安装和配置MySQL数据库,包括下载地址、解压文件、创建和配置my.ini文件、设置环境变量... 目录压缩包安装配置下载配置环境变量下载和初始化总结压缩包安装配置下载下载地址:https://d

LinuxMint怎么安装? Linux Mint22下载安装图文教程

《LinuxMint怎么安装?LinuxMint22下载安装图文教程》LinuxMint22发布以后,有很多新功能,很多朋友想要下载并安装,该怎么操作呢?下面我们就来看看详细安装指南... linux Mint 是一款基于 Ubuntu 的流行发行版,凭借其现代、精致、易于使用的特性,深受小伙伴们所喜爱。对

Linux(Centos7)安装Mysql/Redis/MinIO方式

《Linux(Centos7)安装Mysql/Redis/MinIO方式》文章总结:介绍了如何安装MySQL和Redis,以及如何配置它们为开机自启,还详细讲解了如何安装MinIO,包括配置Syste... 目录安装mysql安装Redis安装MinIO总结安装Mysql安装Redis搜索Red

python安装完成后可以进行的后续步骤和注意事项小结

《python安装完成后可以进行的后续步骤和注意事项小结》本文详细介绍了安装Python3后的后续步骤,包括验证安装、配置环境、安装包、创建和运行脚本,以及使用虚拟环境,还强调了注意事项,如系统更新、... 目录验证安装配置环境(可选)安装python包创建和运行Python脚本虚拟环境(可选)注意事项安装

gradle安装和环境配置全过程

《gradle安装和环境配置全过程》本文介绍了如何安装和配置Gradle环境,包括下载Gradle、配置环境变量、测试Gradle以及在IntelliJIDEA中配置Gradle... 目录gradle安装和环境配置1 下载GRADLE2 环境变量配置3 测试gradle4 设置gradle初始化文件5 i

centos7基于keepalived+nginx部署k8s1.26.0高可用集群

《centos7基于keepalived+nginx部署k8s1.26.0高可用集群》Kubernetes是一个开源的容器编排平台,用于自动化地部署、扩展和管理容器化应用程序,在生产环境中,为了确保集... 目录一、初始化(所有节点都执行)二、安装containerd(所有节点都执行)三、安装docker-