php7编译
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php7编译相关的知识,希望对你有一定的参考价值。
1994 cd ~/下载
1995 ls
1996 cd php-7.0.5/
1997 ls
1998 history|grep configure
1999 ./configure --prefix=/usr/local/php7 --with-pdo-mysql=mysqlnd
2000 /usr/local/php7/bin/php -m
2001 ls /usr/local/
2002 ./configure --prefix=/usr/local/php7 --with-pdo-mysql=/usr --with-curl --with-gd --with-freetype-dir --with-jpeg-dir --with-png-dir --enable-sockets --enable-fpm --enable-soap --enable-ftp --enable-mbstring --enable-bcmath --enable-opcache --with-zlib --with-openssl
2003 make
2004 sudo make install
2005 /usr/local/php7/bin/php -m
2006 ln -s /usr/local/php7/bin/php /usr/bin/php7
2007 sudo ln -s /usr/local/php7/bin/php /usr/bin/php7
2008 php7 -m
2009 php7 -v
2018 php7 -S 0.0.0.0:8001 -t public public/index.php
cd /usr/local/php7/lib/
ab -c 500 -n 2000 http://localhost:8001/m
以上是关于php7编译的主要内容,如果未能解决你的问题,请参考以下文章