PHP开发环境安装

1.安装PHP5.6.37

./configure \
--prefix=/home/yaoxiaofeng/soft/php \
--with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-iconv-dir=/usr/local/libiconv \
--with-freetype-dir  \
--with-jpeg-dir \
--with-png-dir \
--with-zlib \
--with-libxml-dir=/usr \
--enable-xml \
--disable-rpath \
--enable-bcmath \
--enable-shmop \
--enable-sysvsem \
--enable-inline-optimization \
--with-curl \
--enable-mbregex \
--enable-ftp \
--enable-mbstring \
--with-mcrypt \
--with-gd \
--enable-gd-native-ttf \
--with-openssl \
--with-mhash \
--enable-pcntl \
--enable-sockets \
--with-xmlrpc \
--enable-zip \
--enable-soap \
--enable-short-tags \
--enable-static \
--with-xsl \
--with-fpm-user=nginx \
--with-fpm-group=nginx \
--enable-ftp \
--enable-fpm

cp php.ini-production /home/yaoxiaofeng/soft/php/etc/php.ini

cp php-fpm.conf.default  php-fpm.conf

 

2.安装nginx
wget http://nginx.org/download/nginx-1.10.0.tar.gz
tar -zxvf nginx-1.10.0.tar.gz
./configure    --prefix=/home/yaoxiaofeng/soft/nginx --conf-path=/home/yaoxiaofeng/etc/nginx/nginx.conf --user=nginx --group=nginx 

3.安装redis
wget http://download.redis.io/releases/redis-4.0.8.tar.gz
tar xzvf redis-4.0.8.tar.gz
cd redis-4.0.8
make
cd src
make PREFIX=/home/yaoxiaofeng/soft/redis install
cd ..
cp redis.conf /home/yaoxiaofeng/etc/redis.conf
vi /home/yaoxiaofeng/etc/redis.conf //将daemonize no 改成daemonize yes
/home/yaoxiaofeng/soft/redis/bin/redis-server /home/yaoxiaofeng/etc/redis.conf

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值