mac 下安装php7全过程介绍(2)

yum -y install lrzsz yum -y install openjade texinfo perl perl-XML-SAX.noarch rpm -ivh (centos6) rpm -ivh (centos7) cd /usr/bin/ ln -s db2x_docbook2texi docbook2x-texi cd /usr/local/src wget https://codeload.github.com/git/git/zip/v2.8.3 unzip v2.8.3 cd git-2.8.3 make prefix=https://www.jb51.net/usr install install-doc install-html install-info (yum install perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker) make install

安装php的yaf、redis扩展

cd /usr/local/src wget https://pecl.php.net/get/yaf-3.0.4.tgz tar -zxvf yaf-3.0.4.tgz cd yaf-3.0.4 /usr/local/php/bin/phpize ./configure --with-php-config=https://www.jb51.net/usr/local/php/bin/php-config make && make install cd /usr/local/src wget https://codeload.github.com/phpredis/phpredis/zip/php7 unzip phpredis-php7.zip cd phpredis-php7 /usr/local/php/bin/phpize ./configure --with-php-config=https://www.jb51.net/usr/local/php/bin/php-config make && make install vim /usr/local/php/lib/php.ini extension=https://www.jb51.net/usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/yaf.so extension=https://www.jb51.net/usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/redis.so extension=https://www.jb51.net/usr/local/php/lib/php/extensions/no-debug-non-zts-20160303/yaf.so extension=https://www.jb51.net/usr/local/php/lib/php/extensions/no-debug-non-zts-20160303/redis.so

安装redis

cd /usr/local/src/ //wget wget //tar xzf redis-3.2.8.tar.gz tar xzf redis-stable.tar.gz cd redis-3.2.8 cd redis-stable make cp src/redis-server /etc/init.d/redis cp redis.conf /etc/redis.conf chmod +x /etc/init.d/redis service redis /etc/redis.conf &

以上这篇mac 下安装php7全过程介绍就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持脚本之家。

您可能感兴趣的文章:

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/8a8f6d9216de97796189dd9c3d1f0547.html