Heim > Backend-Entwicklung > PHP-Tutorial > 快速安装php7 的shell脚本

快速安装php7 的shell脚本

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Freigeben: 2016-07-25 08:46:02
Original
862 Leute haben es durchsucht
PHP7 2015-12月正式发布,性能比5.6版本提高了不少,因此安装php7试试,在php.ini 配置
zend_extension=opcache.so
opcache.enable=1
opcache.enable_cli=1
果然性能提高了很多。
  1. #!/bin/bash
  2. apt-get update
  3. apt-get install -y git-core autoconf bison libxml2-dev libbz2-dev libmcrypt-dev libcurl4-openssl-dev libltdl-dev libpng-dev libpspell-dev libreadline-dev libicu-dev build-essential
  4. mkdir -p /usr/local/php7/etc/conf.d
  5. mkdir /usr/local/php7
  6. cd /tmp
  7. git clone http://git.php.net/repository/php-src.git --depth=1
  8. cd php-src
  9. ./buildconf
  10. ./configure --prefix=/usr/local/php7 --enable-intl --enable-fpm --with-fpm-user=www --with-fpm-group=www --enable-bcmath --with-bz2 --enable-exif --enable-dba --enable-ftp --with-gettext --with-gd --enable-mbstring --with-mcrypt --with-mhash --enable-mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-openssl --enable-pcntl --with-pspell --enable-shmop --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --with-zlib --enable-zip --with-readline --with-curl --with-config-file-path=/usr/local/php7/etc --with-config-file-scan-dir=/usr/local/php7/etc/conf.d
  11. make
  12. make install
复制代码
shell


Verwandte Etiketten:
Erklärung dieser Website
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage