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

相关推荐
tan180°4 小时前
MySQL表的操作(3)
linux·数据库·c++·vscode·后端·mysql
DuelCode5 小时前
Windows VMWare Centos Docker部署Springboot 应用实现文件上传返回文件http链接
java·spring boot·mysql·nginx·docker·centos·mybatis
浪裡遊5 小时前
React Hooks全面解析:从基础到高级的实用指南
开发语言·前端·javascript·react.js·node.js·ecmascript·php
幽络源小助理5 小时前
SpringBoot基于Mysql的商业辅助决策系统设计与实现
java·vue.js·spring boot·后端·mysql·spring
爬山算法7 小时前
MySQL(116)如何监控负载均衡状态?
数据库·mysql·负载均衡
ejinxian12 小时前
PHP 超文本预处理器 发布 8.5 版本
开发语言·php
dyj09514 小时前
【Rancher Server + Kubernets】- Nginx-ingress日志持久化至宿主机
运维·nginx·rancher
zorro_z14 小时前
PHP语法基础篇(九):正则表达式
php
PanZonghui14 小时前
Centos项目部署之Nginx部署项目
linux·nginx
Hellc00716 小时前
Nginx 高级 CC 与 DDoS 防御策略指南
运维·nginx·ddos