検索
ホームページバックエンド開発PHP7Linux での php7 インストール コマンドを記録する

Linux での php7 インストール コマンドを記録する

推奨 (無料): PHP7

##Linux での php7 インストール コマンド レコード

<p style="line-height: 1.45em;">wget http://cn2.php.net/distributions/php-7.0.5.tar.gztar -zxvf php-7.0.5.tar.gz<br/><br/>cd php-7.0.5./configure \--prefix=/usr/local/php <br/>\  --with-curl  --with-freetype-dir  --with-gd  <br/>\--with-gettext  --with-iconv-dir  --with-kerberos  <br/>\--with-libdir=lib64  --with-libxml-dir  --with-mysqli <br/>\--with-openssl  --with-pcre-regex  --with-pdo-mysql  <br/>\--with-pdo-sqlite  --with-pear  --with-png-dir  <br/>\--with-xmlrpc  --with-xsl  --with-zlib  <br/>\--enable-fpm  --enable-bcmath  --enable-libxml  <br/>\--enable-inline-optimization  <br/>\--enable-gd-native-ttf  --enable-mbregex  <br/>\--enable-mbstring  --enable-opcache  <br/>\--enable-pcntl  --enable-shmop  <br/>\--enable-soap  --enable-sockets  <br/>\--enable-sysvsem  --enable-xml  <br/>\--enable-zip报错<br/> configure: error: Cannot find OpenSSL&#39;s <evp.h> <br/> yum install openssl openssl-devel<br/><br/>configure: error: Please reinstall the libcurl distribution -<br/>    easy.h should be in <curl-dir>/include/curl/<br/>yum install curl curl-devel<br/><br/>If configure fails try --with-webp-dir=<DIR><br/>If configure fails try --with-jpeg-dir=<DIR><br/>configure: error: png.h not found.<br/>yum install libpng libpng-devel<br/><br/>.....<br/>或者一次性把这些需要包全部安装<br/>yum -y install libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel<br/><br/>cp php.ini-development /etc/php7.ini<br/>cd /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf<br/>cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf<br/>cp /usr/local/php/etc/php-fpm.d/www.conf.default /usr/local/php/etc/php-fpm.d/www.conf<br/><br/>ln -s /usr/local/php/bin/php /bin/php<br/>ln -s /usr/local/php/sbin/php-fpm /bin/php7-fpm<br/>ln -s /usr/local/php/bin/php /bin/php7<br/></p>

以上がLinux での php7 インストール コマンドを記録するの詳細内容です。詳細については、PHP 中国語 Web サイトの他の関連記事を参照してください。

声明
この記事はCSDNで複製されています。侵害がある場合は、admin@php.cn までご連絡ください。

ホットAIツール

Undresser.AI Undress

Undresser.AI Undress

リアルなヌード写真を作成する AI 搭載アプリ

AI Clothes Remover

AI Clothes Remover

写真から衣服を削除するオンライン AI ツール。

Undress AI Tool

Undress AI Tool

脱衣画像を無料で

Clothoff.io

Clothoff.io

AI衣類リムーバー

AI Hentai Generator

AI Hentai Generator

AIヘンタイを無料で生成します。

ホットツール

EditPlus 中国語クラック版

EditPlus 中国語クラック版

サイズが小さく、構文の強調表示、コード プロンプト機能はサポートされていません

メモ帳++7.3.1

メモ帳++7.3.1

使いやすく無料のコードエディター

SecLists

SecLists

SecLists は、セキュリティ テスターの究極の相棒です。これは、セキュリティ評価中に頻繁に使用されるさまざまな種類のリストを 1 か所にまとめたものです。 SecLists は、セキュリティ テスターが必要とする可能性のあるすべてのリストを便利に提供することで、セキュリティ テストをより効率的かつ生産的にするのに役立ちます。リストの種類には、ユーザー名、パスワード、URL、ファジング ペイロード、機密データ パターン、Web シェルなどが含まれます。テスターはこのリポジトリを新しいテスト マシンにプルするだけで、必要なあらゆる種類のリストにアクセスできるようになります。

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

このプロジェクトは osdn.net/projects/mingw に移行中です。引き続きそこでフォローしていただけます。 MinGW: GNU Compiler Collection (GCC) のネイティブ Windows ポートであり、ネイティブ Windows アプリケーションを構築するための自由に配布可能なインポート ライブラリとヘッダー ファイルであり、C99 機能をサポートする MSVC ランタイムの拡張機能が含まれています。すべての MinGW ソフトウェアは 64 ビット Windows プラットフォームで実行できます。

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

強力な PHP 統合開発環境