./configure --prefix=/usr/local/php7.1.5 --with-curl --with-iconv-dir --with-mysqli --with-openssl --with-pcre-regex --with-pdo-mysql --with-pear --with-zlib --enable-fpm --enable-bcmath --enable-mbregex --enable-mbstring --enable-opcache --enable-pcntl --enable-sockets --enable-embedphp
configure: error: Don't know how to define struct flock on this system, set --enable-opcache=nomysql
vim /etc/ld.so.confnginx
/usr/local/mysql/libsql
ldconfigvim
yum install libxml2* libcurl-devel -yapi
./configure --prefix=/usr/local/php7.1.5 --with-curl --with-iconv-dir --with-mysqli --with-pcre-regex --with-pdo-mysql --with-pear --with-zlib --enable-fpm --enable-bcmath --enable-mbstring --enable-opcache=no --enable-socketsbash
wget http://www.ohse.de/uwe/releases/lrzsz-0.12.20.tar.gz服務器
tar zxvf lrzsz-0.12.20.tar.gz && cd lrzsz-0.12.20
./configure && make && make install
上面安裝過程默認把lsz和lrz安裝到了/usr/local/bin/目錄下,如今咱們並不能直接使用,下面建立軟連接,並命名爲rz/sz:
cd /usr/bin
ln -s /usr/local/bin/lrz rz
ln -s /usr/local/bin/lsz szsession
2)yum安裝
root 帳號登錄後執行如下命令:
yum install -y lrzsz
2.用說明
sz命令發送文件到本地:
# sz filename
rz命令本地上傳文件到服務器:
# rz
執行該命令後,在彈出框中選擇要上傳的文件便可。
說明:打開SecureCRT軟件 -> Options -> session options -> X/Y/Zmodem 下能夠設置上傳和下載的目錄php7
安裝http://blog.csdn.net/21aspnet/article/details/47708763
從新安裝libxml2和libxml2-devel包
yum install libxml2
yum install libxml2-devel -y
yum -y install curl-devel
tar zxvf php-7.0.2.tar.gz
cd php-7.0.2
簡約版
若是是php擴展debug,可不用下行
CFLAGS="-g -gdwarf-2 -g3" CXXFLAGS="-g -gdwarf-2 -g3"
./configure --prefix=/usr/local/php7.1.6 --with-curl --with-iconv-dir --with-kerberos --with-libdir=lib64 --with-libxml-dir --with-mysqli --with-openssl --with-pcre-regex --with-pdo-mysql --with-pear --with-zlib --enable-fpm --enable-bcmath --enable-mbregex --enable-mbstring --enable-opcache --enable-pcntl --enable-sockets --enable-zip --enable-embed --enable-debug
CFLAGS="-g -gdwarf-2 -g3" CXXFLAGS="-g -gdwarf-2 -g3"
./configure --prefix=/usr/local/php7 \
--with-curl \
--with-iconv-dir \
--with-kerberos \
--with-libdir=lib64 \
--with-libxml-dir \
--with-mysqli \
--with-openssl \
--with-pcre-regex \
--with-pdo-mysql \
--with-pear \
--with-zlib \
--enable-fpm \
--enable-bcmath \
--enable-mbregex \
--enable-mbstring \
--enable-opcache \
--enable-pcntl \
--enable-sockets \
--enable-zip
configure error xml2-config not found. please check your libxml2 installation
yum install libxml2
yum install libxml2-devel -y
configure: error: Please reinstall the libcurl distribution - easy.h should be in /include/curl/
# RetHat CentOS or Fedora 使用下面安裝命令 yum install curl curl-devel # Debian or Ubuntu使用下面的安裝命令 apt-get install curl apt-get install libcurl4-gnutls-dev |
CFLAGS="-g -gdwarf-2 -g3" CXXFLAGS="-g -gdwarf-2 -g3"
./configure --prefix=/usr/local/php7 \
--with-curl \
--enable-debug\
--with-freetype-dir \
--with-gd \
--with-gettext \
--with-iconv-dir \
--with-kerberos \
--with-libdir=lib64 \
--with-libxml-dir \
--with-mysqli \
--with-openssl \
--with-pcre-regex \
--with-pdo-mysql \
--with-pdo-sqlite \
--with-pear \
--with-png-dir \
--with-xmlrpc \
--with-xsl \
--with-zlib \
--enable-fpm \
--enable-bcmath \
--enable-libxml \
--enable-inline-optimization \
--enable-gd-native-ttf \
--enable-mbregex \
--enable-mbstring \
--enable-opcache \
--enable-pcntl \
--enable-shmop \
--enable-soap \
--enable-sockets \
--enable-sysvsem \
--enable-xml \
--enable-zip
簡約版
CFLAGS="-g -gdwarf-2 -g3" CXXFLAGS="-g -gdwarf-2 -g3" ./configure --prefix=/usr/local/php7.1.2 --enable-fpm --enable-sockets --enable-pdo --with-curl --enable-debug --enable-opcache
若是配置錯誤,須要安裝須要的模塊,直接yum一併安裝依賴庫
# yum -y install libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel MySQL pcre-devel libxslt-devel
錯誤:
解決:
配置文件