ubuntu 16 server 安装lnmp所需依赖

此生再无相见时 提交于 2019-12-30 15:28:03

安装
1、nginx
build-essential
libc6
libpcre3
libpcre3-dev
libssl-dev
zliblg
zliblg-dev
lab-base
依赖库:
apt-get -y install build-essential libc6 libpcre3 libpcre3-dev libssl-dev zlib1g zlib1g-dev lsb-base
 
 
2、mysql
依赖库: libaio-dev
 
3、php
依赖库:
libxml2-dev
pkg-config
openssl
curl-dev
php7.0-curl / php-curl (最后手动编译安装curl解决)
jpeg8-dev
libpng12-dev
libfreetype6-dev
libmcrypt-dev
 
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-iconv --with-freetype-dir --with-jpeg-dir --with-png-dir --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-discard-path --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-fpm --enable-force-cgi-redirect --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-zlib --enable-pdo --with-pdo-mysql --enable-opcache --enable-exif
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!