日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > php >内容正文

php

php msf dev product,3 框架运行环境

發布時間:2023/12/31 php 26 豆豆
生活随笔 收集整理的這篇文章主要介紹了 php msf dev product,3 框架运行环境 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

# 3.0 框架運行環境

> 需要注意以下環境安裝文檔僅說明msf框架運行的環境依賴,我們已經將運行環境通過Docker標準化,無須手工一步一步安裝,如果對此部分不感興趣,請直接跳轉到[Docker](3.3docker.md)

- Linux,FreeBSD,MacOS(有兼容問題)

- Linux內核版本2.3.32以上(支持epoll)

- PHP-7.0及以上版本(生產環境建議使用PHP-7.1)

- gcc-4.4以上版本

- cmake-2.4+,編譯為libswoole.so作為C/C++庫時需要使用cmake

- [swoole-1.9.15](https://github.com/swoole/swoole-src/archive/v1.9.15.tar.gz)及以上版本(暫不支持Swoole-2.0)

- [hiredis-0.13.3](https://github.com/redis/hiredis/archive/v0.13.3.tar.gz)

- [yac](https://github.com/laruence/yac/archive/yac-2.0.2.tar.gz)

- [phpredis](http://pecl.php.net/get/redis-3.1.2.tgz)

- composer

## 約定

本手冊的所有示例代碼都是來自[php-msf-demo](https://github.com/pinguo/php-msf-demo),用戶可以克隆后,查看源代碼。

## CentOS-6.5

### export

```bash

$>export SRC_DIR=/home/worker/src/

$>export CURL_INSTALL_DIR=${HOME}/libcurl

$>export phpversion=7.1.8

$>export PHP_INSTALL_DIR=${HOME}/php

$>export LIB_MEMCACHED_INSTALL_DIR=/usr/local/

```

### yum

```bash

$>yum -y install \

ca-certificates gcc gcc-c++ perl-CPAN m4 autoconf apr-util yum-utils \

gd libjpeg libtool libpng zlib gettext libevent net-snmp net-snmp-devel net-snmp-libs\

freetype libtool-tldl libxml2 unixODBC inotify-tools \

libxslt libmcrypt freetds ImageMagick jemalloc jemalloc-devel \

gd-devel libjpeg-devel libpng-devel zlib-devel \

freetype-devel libtool-ltdl libtool-ltdl-devel \

libxml2-devel zlib-devel bzip2-devel gettext-devel \

curl-devel gettext-devel libevent-devel \

libxslt-devel expat-devel unixODBC-devel \

openssl-devel libmcrypt-devel freetds-devel \

ImageMagick-devel pcre-devel openldap openldap-devel libc-client-devel

```

### curl

```bash

$>cd ${SRC_DIR} \

&& wget -q -O curl-7.49.0.tar.gz https://curl.haxx.se/download/curl-7.49.0.tar.gz \

&& tar xzf curl-7.49.0.tar.gz \

&& cd curl-7.49.0 \

&& ./configure --prefix=${CURL_INSTALL_DIR} \

&& make 1>/dev/null \

&& make install

```

### libmemcached

```bash

$>cd ${SRC_DIR} \

&& wget -q -O libmemcached-1.0.18.tar.gz https://launchpad.net/libmemcached/1.0/1.0.18/+download/libmemcached-1.0.18.tar.gz \

&& tar xzf libmemcached-1.0.18.tar.gz \

&& cd libmemcached-1.0.18 \

&& ./configure --prefix=$LIB_MEMCACHED_INSTALL_DIR --with-memcached 1>/dev/null \

&& make 1>/dev/null \

&& make install

```

### PHP-7.1.8

```bash

$>cd ${SRC_DIR} \

&& wget -q -O php-${phpversion}.tar.gz http://cn2.php.net/distributions/php-${phpversion}.tar.gz \

&& tar xzf php-${phpversion}.tar.gz \

&& cd php-${phpversion} \

&& ./configure \

--prefix=${PHP_INSTALL_DIR} \

--with-config-file-path=${PHP_INSTALL_DIR}/etc \

--with-config-file-scan-dir=${PHP_INSTALL_DIR}/etc/php.d \

--sysconfdir=${PHP_INSTALL_DIR}/etc \

--with-libdir=lib64 \

--enable-mysqlnd \

--enable-zip \

--enable-exif \

--enable-ftp \

--enable-mbstring \

--enable-mbregex \

--enable-fpm \

--enable-bcmath \

--enable-pcntl \

--enable-soap \

--enable-sockets \

--enable-shmop \

--enable-sysvmsg \

--enable-sysvsem \

--enable-sysvshm \

--enable-gd-native-ttf \

--enable-wddx \

--enable-opcache \

--with-gettext \

--with-xsl \

--with-libexpat-dir \

--with-xmlrpc \

--with-snmp \

--with-ldap \

--enable-mysqlnd \

--with-mysqli=mysqlnd \

--with-pdo-mysql=mysqlnd \

--with-pdo-odbc=unixODBC,/usr \

--with-gd \

--with-jpeg-dir \

--with-png-dir \

--with-zlib-dir \

--with-freetype-dir \

--with-zlib \

--with-bz2 \

--with-openssl \

--with-curl=${CURL_INSTALL_DIR} \

--with-mcrypt \

--with-mhash \

&& make 1>/dev/null \

&& make install

```

### php-yaml

```bash

$>cd $SRC_DIR \

&& wget -O yaml-0.1.5.tar.gz http://pyyaml.org/download/libyaml/yaml-0.1.5.tar.gz \

&& tar xzf yaml-0.1.5.tar.gz \

&& cd yaml-0.1.5 \

&& ./configure --prefix=/usr/local \

&& make >/dev/null \

&& make install \

&& cd $SRC_DIR \

&& wget --http-user=pinguo-ops --http-passwd=iR0n6O3lNk5YtO3vH7Cd http://ops-packages.camera360.com/soft/yaml-2.0.0.tgz \

&& tar xzf yaml-2.0.0.tgz \

&& cd yaml-2.0.0 \

&& $PHP_INSTALL_DIR/bin/phpize \

&& ./configure --with-yaml=/usr/local --with-php-config=$PHP_INSTALL_DIR/bin/php-config \

&& make >/dev/null \

&& make install

```

### php-mongodb

```php

$>cd ${SRC_DIR} \

&& wget http://pecl.php.net/get/mongodb-1.2.8.tgz \

&& tar zxvf mongodb-1.2.8.tgz \

&& cd mongodb-1.2.8 \

&& ${PHP_INSTALL_DIR}/bin/phpize \

&& ./configure --with-php-config=$PHP_INSTALL_DIR/bin/php-config 1>/dev/null \

&& make clean \

&& make -j \

&& make install

```

### php-redis

```bash

$>cd ${SRC_DIR} \

&& wget http://pecl.php.net/get/redis-3.1.2.tgz \

&& tar zxvf redis-3.1.2.tgz \

&& cd redis-3.1.2 \

&& ${PHP_INSTALL_DIR}/bin/phpize \

&& ./configure --with-php-config=$PHP_INSTALL_DIR/bin/php-config 1>/dev/null \

&& make clean \

&& make 1>/dev/null \

&& make install

```

### php-imagick

```bash

$>cd ${SRC_DIR} \

&& wget http://pecl.php.net/get/imagick-3.4.3.tgz \

&& tar zxvf imagick-3.4.3.tgz \

&& cd imagick-3.4.3 \

&& ${PHP_INSTALL_DIR}/bin/phpize \

&& ./configure --with-php-config=$PHP_INSTALL_DIR/bin/php-config 1>/dev/null \

&& make clean \

&& make 1>/dev/null \

&& make install

```

### php-xdebug

```bash

$>cd ${SRC_DIR} \

&& wget http://pecl.php.net/get/xdebug-2.5.3.tgz \

&& tar zxvf xdebug-2.5.3.tgz \

&& cd xdebug-2.5.3 \

&& ${PHP_INSTALL_DIR}/bin/phpize \

&& ./configure --with-php-config=$PHP_INSTALL_DIR/bin/php-config 1>/dev/null \

&& make clean \

&& make 1>/dev/null \

&& make install

```

### php-igbinary

```bash

$cd ${SRC_DIR} \

&& wget http://pecl.php.net/get/igbinary-2.0.1.tgz \

&& tar zxvf igbinary-2.0.1.tgz \

&& cd igbinary-2.0.1 \

&& ${PHP_INSTALL_DIR}/bin/phpize \

&& ./configure --with-php-config=$PHP_INSTALL_DIR/bin/php-config 1>/dev/null \

&& make clean \

&& make 1>/dev/null \

&& make install

```

### php-memcached

```bash

$>cd ${SRC_DIR} \

&& wget http://pecl.php.net/get/memcached-3.0.3.tgz \

&& tar xzf memcached-3.0.3.tgz \

&& cd memcached-3.0.3 \

&& ${PHP_INSTALL_DIR}/bin/phpize \

&& ./configure --enable-memcached --with-php-config=$PHP_INSTALL_DIR/bin/php-config \

--with-libmemcached-dir=$LIB_MEMCACHED_INSTALL_DIR --disable-memcached-sasl 1>/dev/null \

&& make 1>/dev/null \

&& make install

```

### php-yac

```bash

$>cd ${SRC_DIR} \

&& wget https://github.com/laruence/yac/archive/yac-2.0.2.tar.gz \

&& tar zxvf yac-2.0.2.tar.gz \

&& cd yac-yac-2.0.2 \

&& ${PHP_INSTALL_DIR}/bin/phpize \

&& ./configure --with-php-config=${PHP_INSTALL_DIR}/bin/php-config \

&& make 1>/dev/null \

&& make install

```

### phpunit

```bash

$>cd ${SRC_DIR} \

&& wget -O phpunit.phar https://phar.phpunit.de/phpunit.phar \

&& mv phpunit.phar ${PHP_INSTALL_DIR}/bin/phpunit \

&& chmod +x ${PHP_INSTALL_DIR}/bin/phpunit

```

### composer

```bash

$>cd ${SRC_DIR} \

&& curl -sS https://getcomposer.org/installer | $PHP_INSTALL_DIR/bin/php \

&& chmod +x composer.phar \

&& mv composer.phar ${PHP_INSTALL_DIR}/bin/composer

```

### hiredis

```bash

$>cd ${SRC_DIR} \

&& wget -O hiredis-0.13.3.tar.gz https://github.com/redis/hiredis/archive/v0.13.3.tar.gz \

&& tar zxvf hiredis-0.13.3.tar.gz \

&& cd hiredis-0.13.3 \

&& make -j \

&& make install \

&& echo "/usr/local/lib" > /etc/ld.so.conf.d/local.conf \

&& ldconfig

```

### php-swoole

```bash

$>cd ${SRC_DIR} \

&& wget -q -O swoole-1.9.18.tar.gz https://github.com/swoole/swoole-src/archive/v1.9.18.tar.gz \

&& tar zxvf swoole-1.9.18.tar.gz \

&& cd swoole-src-1.9.18/ \

&& ${PHP_INSTALL_DIR}/bin/phpize \

&& ./configure --with-php-config=$PHP_INSTALL_DIR/bin/php-config --enable-async-redis --enable-openssl \

&& make clean 1>/dev/null \

&& make 1>/dev/null \

&& make install

```

### php-inotify

```bash

$>cd ${SRC_DIR} \

&& wget http://pecl.php.net/get/inotify-2.0.0.tgz \

&& tar zxvf inotify-2.0.0.tgz \

&& cd inotify-2.0.0 \

&& ${PHP_INSTALL_DIR}/bin/phpize \

&& ./configure --with-php-config=$PHP_INSTALL_DIR/bin/php-config 1>/dev/null \

&& make clean \

&& make 1>/dev/null \

&& make install

```

### jq

```bash

$>cd ${SRC_DIR} \

&& wget https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 \

&& mkdir -p /home/worker/bin \

&& mv jq-linux64 ${HOME}/bin/jq \

&& chmod +x ${HOME}/bin/jq

```

### git

```bash

$>cd ${SRC_DIR} \

&& mkdir -p ${SRC_DIR} \

&& yum -y remove git \

&& wget https://www.kernel.org/pub/software/scm/git/git-2.13.0.tar.gz \

&& tar zxvf git-2.13.0.tar.gz \

&& cd git-2.13.0 \

&& make configure \

&& ./configure --prefix=/usr/local/ --with-curl=${CURL_INSTALL_DIR} \

&& make -j \

&& make install

```

總結

以上是生活随笔為你收集整理的php msf dev product,3 框架运行环境的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 穿情趣内衣被c到高潮视频 欧美性猛交xxxx黑人猛交 | 中文字幕三区 | 日本少妇喷水 | 日韩有码在线视频 | 五月天啪啪 | 久久久午夜电影 | 国产成人 综合 亚洲 | 青青草免费在线观看 | av成人资源 | 香蕉啪啪网| 日本高清黄色电影 | 狠狠干夜夜操 | 噼里啪啦免费看 | 国产精品久久777777换脸 | jizz日本女人 | 色偷偷亚洲 | 日本黄网在线观看 | 欧美国产日韩一区二区三区 | 亚洲性图av| 欧美日韩精品一区二区三区视频播放 | 精品欧美激情精品一区 | 九九热视频在线播放 | 香蕉久久国产 | 最近中文字幕在线观看视频 | 97国产超碰| 久久大陆| av在线播放一区二区三区 | 爆乳熟妇一区二区三区霸乳 | av中文字幕亚洲 | 阿v天堂2014| 美国美女群体交乱 | 在线观看你懂的网站 | h无码动漫在线观看 | 成人av番号网 | 成人免费黄色网址 | 蜜桃成人av | 日本成人社区 | 欧美精品国产动漫 | 成人久久电影 | 中国人妖和人妖做爰 | 欧美性生交xxxxxdddd | 久久亚洲av无码精品色午夜麻豆 | 国产女人高潮毛片 | 日韩av在线免费观看 | 日噜噜夜噜噜 | 欧美性生交大片免费看app麻豆 | 日本一区二区高清不卡 | 久青草国产在线 | 亚洲激情三区 | 久草视频在线免费播放 | 爱露出| 女同在线视频 | 国产 日韩 欧美 综合 | 国产精品无码电影在线观看 | 99re这里都是精品 | 亚洲最大网站 | 午夜免费小视频 | 久久亚洲电影 | 免费a大片 | 91久久综合 | 日本少妇网站 | 中文字幕精品无码一区二区 | 亚洲三级久久 | 理论片在线观看视频 | 国产精品主播在线 | 日本在线激情 | 日本泡妞视频 | 看国产毛片 | 色播一区二区 | 国产无码精品合集 | 国产主播福利在线 | 69成人网| 美女啪啪动态图 | 日本伦理片在线看 | 欧美日韩影院 | 亚洲一区二区三区av无码 | 成年午夜视频 | 国内精品嫩模av私拍在线观看 | 日批视频免费在线观看 | 97自拍偷拍视频 | 精品人妻一区二区三区蜜桃 | 欧美3p在线观看 | 亚洲专区在线 | 国产一区二区三区四区五区六区 | 狠狠干天天射 | 色爽影院| 婷婷色图 | 婷婷综合在线观看 | 久久免费激情视频 | 四虎黄色影视 | 性高湖久久久久久久久aaaaa | 精品国产乱码久久久久久牛牛 | 国产中文字幕免费 | 成人a视频在线观看 | 午夜久久电影 | 免费人成网站 | 久久mm| 欧美一区二区高清 | 诱惑の诱惑筱田优在线播放 |