cygwin安装nginx php mysql redis mysql mongodb memcache postgresql

cd ..

wget http://cn2.php.net/get/php-5.3.17.tar.gz/from/this/mirror php-5.3.17.tar.gz

yum install gd libpng curl freetype zlib libjpeg

wget ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/libmcrypt/libmcrypt-2.5.7.tar.gz

tar -zxvf libmcrypt-2.5.7.tar.gz

cd libmcrypt-2.5.7

./configure --prefix=/usr/local/libmcrypt --disable-posix-threads

make && make install

yum install bison gcc gcc-c++ autoconf automake zlib* libxml* ncurses-devel libtool-ltdl-devel*

cd ..

tar -zxvf php-5.3.17.tar.gz

cd php-5.3.17

yum install bzip2*

yum install libcurl-devel libcurl

yum install libjpeg-devel

yum install libpng-devel gd-devel


使用安装文件安装gcc g++, pcre

wget http://nginx.org/download/nginx-1.9.9.tar.gz

wget http://cn2.php.net/get/php-5.6.17.tar.gz/from/this/mirror -O php-5.6.17.tar.gz

./configure --prefix=/home/Administrator/lib/nginx-1.9.9 --with-pcre && make && make install

Nginx (一)Windows下编译Nginx源码以及安装 nginx for windows方法步骤-CSDN博客

2008/01/12 16:34:56 [emerg] 2496#0: the maximum number of files supported by select() is 64的错误提示,这表示FD_SETSIZE的值比nginx配置文件中worker_connections指令所指定的值,你可以把nginx.conf里的worker_connections选项改小一些,比如44,加了--with-cc-opt="-D FD_SETSIZE=4096"后就不会碰到这问题

启动nginx

./sbin/nginx.exe

php

安装libxml2 BZip2 jpeg

./configure --prefix=/home/Administrator/lib/php-5.6.17 --enable-fpm --enable-bcmath --with-gd --enable-gd-native-ttf --with-mysql=mysqlnd --with-gd --with-png-dir --with-curl --with-bz2 --with-freetype-dir --with-iconv-dir --with-zlib-dir --enable-soap --with-pear=PREFIX/pear --enable-gd-native-ttf --enable-mbstring --enable-exif --disable-cgi --enable-cli --with-jpeg-dir --enable-bcmath --enable-sockets --disable-ipv6 --with-mcrypt --enable-mysqlnd --with-mysqli=mysqlnd --enable-embedded-mysqli --enable-embedded-mysqli --disable-mysqlnd-compression-support --with-pdo-mysql=mysqlnd

php 安装http 扩展_ext-http-CSDN博客

Administrator@My-THINK ~/lib/php/etc

$ php -i | grep 'php.ini'

Configuration File (php.ini) Path => /home/Administrator/lib/php-5.6.17/lib

Administrator@My-THINK ~/src/php-5.6.17

$ cp php.ini-development /home/Administrator/lib/php-5.6.17/ php.ini

Administrator@My-THINK ~/src/php-5.6.17

$ vi /home/Administrator/lib/php-5.6.17/ php.ini

date.timezone = PRC

php -r "echo date('Y-m-d H:i');"

nginx配置, 支持kohana

server {

listen 80;

server_name kohana;

root /cygdrive/d/github/kohana;

location / {

index index.php;

try_files $uri uri/ /index.php?uri&$args;

}

location ~ \.php$ {

fastcgi_pass 127.0.0.1:9000;

fastcgi_index index.php;

include fastcgi.conf;

}

}

nginx 下使用Kohana PHP的配置

http://www.oschina.net/code/snippet_54100_2711

Nginx+FastCGI 环境搭建 Kohana | icyleaf

安装http扩展(失败)

Administrator@My-THINK ~/src

$ wget http://pecl.php.net/get/raphf-1.1.0.tgz

Administrator@My-THINK ~/src

$ tar -zxvf raphf-1.1.0.tgz

Administrator@My-THINK ~/src/raphf-1.1.0

$ /home/Administrator/lib/php/bin/phpize

Administrator@My-THINK ~/src/raphf-1.1.0

$ ./configure --with-php-config=/home/Administrator/lib/php/bin/php-config

Administrator@My-THINK ~/src/raphf-1.1.0

$ vi /home/Administrator/lib/php/lib/php.ini

extension=raphf.so

wget http://pecl.php.net/get/pecl_http-2.5.3.tgz

$ cd extname

$

Administrator@My-THINK ~/src/pecl_http-2.5.3

$ ./configure --prefix=/home/Administrator/lib/pecl_http-2.5.3--with-php-config=/home/Administrator/lib/php/bin/php-config

$ make

make install

相关推荐
瓜牛_gn37 分钟前
mysql特性
数据库·mysql
Yaml46 小时前
Spring Boot 与 Vue 共筑二手书籍交易卓越平台
java·spring boot·后端·mysql·spring·vue·二手书籍
追风林6 小时前
mac 本地docker-mysql主从复制部署
mysql·macos·docker
龙哥·三年风水8 小时前
群控系统服务端开发模式-应用开发-个人资料
分布式·php·群控系统
Hsu_kk8 小时前
MySQL 批量删除海量数据的几种方法
数据库·mysql
编程学无止境8 小时前
第02章 MySQL环境搭建
数据库·mysql
knight-n8 小时前
MYSQL库的操作
数据库·mysql
eternal__day10 小时前
MySQL_聚合函数&分组查询
数据库·mysql
咕哧普拉啦10 小时前
乐尚代驾十订单支付seata、rabbitmq异步消息、redisson延迟队列
java·spring boot·mysql·spring·maven·乐尚代驾·java最新项目
春哥的魔法书11 小时前
数据库基础(5) . DCL
数据库·mysql