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

相关推荐
Java水解20 小时前
Mysql查看执行计划、explain关键字详解(超详细)
后端·mysql
BingoGo1 天前
2025 年 PHP 常见面试题整理以及对应答案和代码示例
后端·php
知其然亦知其所以然1 天前
MySQL 社招必考题:如何优化查询过程中的数据访问?
后端·mysql·面试
DemonAvenger1 天前
NoSQL与MySQL混合架构设计:从入门到实战的最佳实践
数据库·mysql·性能优化
程序新视界1 天前
如何在MySQL中创建聚集索引?
mysql
AAA修煤气灶刘哥2 天前
后端人速藏!数据库PD建模避坑指南
数据库·后端·mysql
程序新视界2 天前
学习MySQL绕不开的两个基础概念:聚集索引与非聚集索引
mysql
RestCloud2 天前
跨境数据传输:ETL如何处理时区与日期格式差异
mysql·api
得物技术2 天前
MySQL单表为何别超2000万行?揭秘B+树与16KB页的生死博弈|得物技术
数据库·后端·mysql
xiaok2 天前
mysql中怎么创建一个可控权限数据库账号密码给到开发者
mysql