首页 > 代码库 > ubuntu 16 server 安装lnmp所需依赖

ubuntu 16 server 安装lnmp所需依赖

安装
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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

ubuntu 16 server 安装lnmp所需依赖